qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] virtio-net: not enable vq reset feature unconditionally
@ 2023-05-04 10:14 Eugenio Pérez
  2023-05-06  2:13 ` Xuan Zhuo
  0 siblings, 1 reply; 13+ messages in thread
From: Eugenio Pérez @ 2023-05-04 10:14 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jason Wang, Michael S. Tsirkin, Xuan Zhuo, Lei Yang

The commit 93a97dc5200a ("virtio-net: enable vq reset feature") enables
unconditionally vq reset feature as long as the device is emulated.
This makes impossible to actually disable the feature, and it causes
migration problems from qemu version previous than 7.2.

The entire final commit is unneeded as device system already enable or
disable the feature properly.

This reverts commit 93a97dc5200a95e63b99cb625f20b7ae802ba413.
Fixes: 93a97dc5200a ("virtio-net: enable vq reset feature")
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>

---
Tested by checking feature bit at  /sys/devices/pci.../virtio0/features
enabling and disabling queue_reset virtio-net feature and vhost=on/off
on net device backend.
---
 hw/net/virtio-net.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
index 53e1c32643..4ea33b6e2e 100644
--- a/hw/net/virtio-net.c
+++ b/hw/net/virtio-net.c
@@ -805,7 +805,6 @@ static uint64_t virtio_net_get_features(VirtIODevice *vdev, uint64_t features,
     }
 
     if (!get_vhost_net(nc->peer)) {
-        virtio_add_feature(&features, VIRTIO_F_RING_RESET);
         return features;
     }
 
-- 
2.31.1



^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-05-09  8:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-04 10:14 [PATCH] virtio-net: not enable vq reset feature unconditionally Eugenio Pérez
2023-05-06  2:13 ` Xuan Zhuo
2023-05-07  6:01   ` Michael S. Tsirkin
2023-05-08  6:44     ` Jason Wang
2023-05-08  6:48       ` Michael S. Tsirkin
2023-05-08  7:49       ` Xuan Zhuo
2023-05-08  9:09   ` Eugenio Perez Martin
2023-05-08  9:44     ` Xuan Zhuo
2023-05-08 10:22     ` Michael S. Tsirkin
2023-05-08 17:31       ` Eugenio Perez Martin
2023-05-08 18:11         ` Michael S. Tsirkin
2023-05-09  8:33           ` Eugenio Perez Martin
2023-05-09  3:13         ` Jason Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).