diff options
author | mav <mav@FreeBSD.org> | 2015-03-16 20:13:25 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-03-16 20:13:25 +0000 |
commit | 55b7ea0246ccf2153ff8f1541fa8963f4d186659 (patch) | |
tree | d691f0d9e675064e2315abd7d1e27757f750e8b6 /usr.sbin/bhyve | |
parent | 05fdbce0f6097f8b69be407751438159006c7ca2 (diff) | |
download | FreeBSD-src-55b7ea0246ccf2153ff8f1541fa8963f4d186659.zip FreeBSD-src-55b7ea0246ccf2153ff8f1541fa8963f4d186659.tar.gz |
Report that we may have write cache, and that we do support FLUSH.
FreeBSD guest driver does not use that legacy flag, but Linux seems does.
MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/bhyve')
-rw-r--r-- | usr.sbin/bhyve/pci_virtio_block.c | 2 |
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 */ |