From 1da37c7bb41d49dfa97a722932d159aee6a9481b Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Tue, 27 Jul 2021 18:39:42 +0200 Subject: [PATCH] vhost_user_net: Remove incorrect support for EVENT_IDX We didn't implement the vhost-user-net backend to support EVENT_IDX feature, hence it is incorrect to advertise VIRTIO_RING_F_EVENT_IDX to the VMM and the guest. Signed-off-by: Sebastien Boeuf --- vhost_user_net/src/lib.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/vhost_user_net/src/lib.rs b/vhost_user_net/src/lib.rs index ec860c37b..82261e1ce 100644 --- a/vhost_user_net/src/lib.rs +++ b/vhost_user_net/src/lib.rs @@ -24,7 +24,6 @@ use vhost::vhost_user::message::*; use vhost::vhost_user::Listener; use vhost_user_backend::{GuestMemoryMmap, VhostUserBackend, VhostUserDaemon, Vring, VringWorker}; use virtio_bindings::bindings::virtio_net::*; -use virtio_bindings::bindings::virtio_ring::VIRTIO_RING_F_EVENT_IDX; use vm_memory::GuestMemoryAtomic; use vmm_sys_util::eventfd::EventFd; @@ -174,7 +173,6 @@ impl VhostUserBackend for VhostUserNetBackend { | 1 << VIRTIO_NET_F_MAC | 1 << VIRTIO_F_NOTIFY_ON_EMPTY | 1 << VIRTIO_F_VERSION_1 - | 1 << VIRTIO_RING_F_EVENT_IDX | VhostUserVirtioFeatures::PROTOCOL_FEATURES.bits() }