From 1e1cbc53c18cf7bcca8dff022450abdb987ef4d2 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Fri, 5 Mar 2021 16:17:03 +0100 Subject: [PATCH] vhost_user_blk: Enable CONFIGURE_MEM_SLOTS protocol feature In order to support GET_MAX_MEM_SLOTS, ADD_MEM_REG and REM_MEM_REG, the protocol feature CONFIGURE_MEM_SLOTS must be enabled. Signed-off-by: Sebastien Boeuf --- vhost_user_block/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vhost_user_block/src/lib.rs b/vhost_user_block/src/lib.rs index 2a1d24ec1..5fa84fe30 100644 --- a/vhost_user_block/src/lib.rs +++ b/vhost_user_block/src/lib.rs @@ -308,6 +308,8 @@ impl VhostUserBackend for VhostUserBlkBackend { fn protocol_features(&self) -> VhostUserProtocolFeatures { VhostUserProtocolFeatures::CONFIG + | VhostUserProtocolFeatures::MQ + | VhostUserProtocolFeatures::CONFIGURE_MEM_SLOTS } fn set_event_idx(&mut self, enabled: bool) {