diff --git a/vhost_user_block/src/lib.rs b/vhost_user_block/src/lib.rs index eb120a296..acf943dac 100644 --- a/vhost_user_block/src/lib.rs +++ b/vhost_user_block/src/lib.rs @@ -337,6 +337,7 @@ impl VhostUserBackendMut for VhostUserBlkBackend { VhostUserProtocolFeatures::CONFIG | VhostUserProtocolFeatures::MQ | VhostUserProtocolFeatures::CONFIGURE_MEM_SLOTS + | VhostUserProtocolFeatures::DEVICE_STATE } fn set_event_idx(&mut self, enabled: bool) { @@ -452,6 +453,21 @@ impl VhostUserBackendMut for VhostUserBlkBackend { ) -> VhostUserBackendResult<()> { Ok(()) } + + fn set_device_state_fd( + &mut self, + _direction: VhostTransferStateDirection, + _phase: VhostTransferStatePhase, + _file: File, + ) -> VhostUserBackendResult> { + // This device completes requests synchronously and keeps no inflight + // state. + Ok(None) + } + + fn check_device_state(&self) -> VhostUserBackendResult<()> { + Ok(()) + } } struct VhostUserBlkBackendConfig {