diff options
author | Christoph Hellwig <hch@lst.de> | 2015-06-11 12:01:38 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-07-14 15:55:19 +0200 |
commit | 8b9d74e0eebb2106b767d66355d38086be72ad2b (patch) | |
tree | f8246254f1da2bf524ff673848dcb8dbd0787f63 /hw/block/nvme.h | |
parent | f3a1b5068cea303a55e2a21a97e66d057eaae638 (diff) |
nvme: implement the Flush command
Implement a real flush instead of faking it. This is especially important
as Qemu assume Write back cashing by default and thus requires a working
cache flush operation for data integrity.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/block/nvme.h')
-rw-r--r-- | hw/block/nvme.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/block/nvme.h b/hw/block/nvme.h index b6ccb655a6..bf3a3ccac8 100644 --- a/hw/block/nvme.h +++ b/hw/block/nvme.h @@ -638,6 +638,7 @@ typedef struct NvmeRequest { struct NvmeSQueue *sq; BlockAIOCB *aiocb; uint16_t status; + bool has_sg; NvmeCqe cqe; BlockAcctCookie acct; QEMUSGList qsg; |