Skip to content

Commit

Permalink
Report that we may have write cache, and that we do support FLUSH.
Browse files Browse the repository at this point in the history
FreeBSD guest driver does not use that legacy flag, but Linux seems does.

MFC after:	2 weeks
  • Loading branch information
amotin committed Mar 16, 2015
1 parent 05fdbce commit 55b7ea0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usr.sbin/bhyve/pci_virtio_block.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

/*
Expand All @@ -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 */

Expand Down

0 comments on commit 55b7ea0

Please sign in to comment.