mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2026-01-05 00:39:40 +00:00
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:
parent
0dfe1f9410
commit
6d4eea1cf8
@ -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
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user