OSDN Git Service

nvme: support NVME_VOLATILE_WRITE_CACHE feature
authorChristoph Hellwig <hch@lst.de>
Thu, 30 Apr 2015 09:44:17 +0000 (11:44 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 May 2015 15:08:00 +0000 (17:08 +0200)
commitaacd5650c68ef2e9e19079ba60cb0df51e15880c
treeb67b475e17bcda3701145c78a0fdd6b79bda44e4
parentecbda7a22576591a84f44de1be0150faf6001f1c
nvme: support NVME_VOLATILE_WRITE_CACHE feature

The SCSI emulation in the Linux NVMe driver really wants to know
if a device has a volatile write cache.  Given that qemu has moved
away from a model where we report the backing store WCE bit to
one where the WCE bit is supposed to be part of the migratable
guest-visible state we always return 1 here.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/nvme.c