vsock: Set VhostUserProtocolFeatures::MQ

As per the vhost-user specification:

"Back-ends should always implement the VHOST_USER_PROTOCOL_F_MQ protocol
feature, even for devices with a fixed number of virtqueues, since it is
simple to implement and offers a degree of introspection."

Vsock backend support three virtqueues and hence this should be set.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
This commit is contained in:
Viresh Kumar 2024-10-30 14:04:46 +05:30 committed by Viresh Kumar
parent 0dfe1f9410
commit 6d4eea1cf8
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
## Unreleased
### Added
- [#755](https://github.com/rust-vmm/vhost-device/pull/755) Advertise `VhostUserProtocolFeatures::MQ` protocol feature
- [#698](https://github.com/rust-vmm/vhost-device/pull/698) vsock: add mdoc page
- [#706](https://github.com/rust-vmm/vhost-device/pull/706) Support proxying using vsock

View File

@ -306,7 +306,7 @@ impl VhostUserBackend for VhostUserVsockBackend {
}
fn protocol_features(&self) -> VhostUserProtocolFeatures {
VhostUserProtocolFeatures::CONFIG
VhostUserProtocolFeatures::MQ | VhostUserProtocolFeatures::CONFIG
}
fn set_event_idx(&self, enabled: bool) {