summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-03-27 08:59:21 +0000
committermav <mav@FreeBSD.org>2015-03-27 08:59:21 +0000
commit9d1b41e02f8c695a4b71aedd1f7cd4f94b39b6ac (patch)
treee9f372eb5bbae73a6cc5e369a77ddc46c6ce482a /usr.sbin
parent1240a4ece17b63a7bab4c07412fe6ca6a2ed8440 (diff)
downloadFreeBSD-src-9d1b41e02f8c695a4b71aedd1f7cd4f94b39b6ac.zip
FreeBSD-src-9d1b41e02f8c695a4b71aedd1f7cd4f94b39b6ac.tar.gz
MFC r280154:
Report that we may have write cache, and that we do support FLUSH.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bhyve/pci_virtio_block.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/bhyve/pci_virtio_block.c b/usr.sbin/bhyve/pci_virtio_block.c
index 163fa06..985272b 100644
--- a/usr.sbin/bhyve/pci_virtio_block.c
+++ b/usr.sbin/bhyve/pci_virtio_block.c
@@ -64,6 +64,7 @@ __FBSDID("$FreeBSD$");
/* Capability bits */
#define VTBLK_F_SEG_MAX (1 << 2) /* Maximum request segments */
#define VTBLK_F_BLK_SIZE (1 << 6) /* cfg block size valid */
+#define VTBLK_F_FLUSH (1 << 9) /* Cache flush support */
#define VTBLK_F_TOPOLOGY (1 << 10) /* Optimal I/O alignment */
/*
@@ -72,6 +73,7 @@ __FBSDID("$FreeBSD$");
#define VTBLK_S_HOSTCAPS \
( VTBLK_F_SEG_MAX | \
VTBLK_F_BLK_SIZE | \
+ VTBLK_F_FLUSH | \
VTBLK_F_TOPOLOGY | \
VIRTIO_RING_F_INDIRECT_DESC ) /* indirect descriptors */
OpenPOWER on IntegriCloud