From e6fd6d63602658d6c86935b18684ad1d1afc5ede Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Mon, 18 May 2020 09:58:47 +0100 Subject: [PATCH] vhost_user_block: Implement VIRTIO_BLK_F_FLUSH As the parsing code is reused the flush feature is already implemented and ready to be used. Fixes: #1197 Signed-off-by: Rob Bradford --- vhost_user_block/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/vhost_user_block/src/lib.rs b/vhost_user_block/src/lib.rs index 4fde1a97d..ba1753301 100644 --- a/vhost_user_block/src/lib.rs +++ b/vhost_user_block/src/lib.rs @@ -259,6 +259,7 @@ impl VhostUserBackend for VhostUserBlkBackend { | 1 << VIRTIO_BLK_F_CONFIG_WCE | 1 << VIRTIO_RING_F_EVENT_IDX | 1 << VIRTIO_F_VERSION_1 + | 1 << VIRTIO_BLK_F_FLUSH | VhostUserVirtioFeatures::PROTOCOL_FEATURES.bits(); if self.rdonly {