diff --git a/vhost_user_backend/src/lib.rs b/vhost_user_backend/src/lib.rs index fb2d6fcc5..6de50798d 100644 --- a/vhost_user_backend/src/lib.rs +++ b/vhost_user_backend/src/lib.rs @@ -64,9 +64,12 @@ pub trait VhostUserBackend: Send + Sync + 'static { /// Depth of each queue. fn max_queue_size(&self) -> usize; - /// Virtio features. + /// Available virtio features. fn features(&self) -> u64; + /// Acked virtio features. + fn acked_features(&mut self, _features: u64) {} + /// Virtio protocol features. fn protocol_features(&self) -> VhostUserProtocolFeatures; @@ -577,6 +580,11 @@ impl VhostUserSlaveReqHandler for VhostUserHandler { vring.write().unwrap().enabled = vring_enabled; } + self.backend + .write() + .unwrap() + .acked_features(self.acked_features); + Ok(()) }