qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/1] vhost: Fix last queue index of devices with no cvq
@ 2021-11-02 11:40 Eugenio Pérez
  2021-11-02 11:40 ` [PATCH v2 1/1] " Eugenio Pérez
  0 siblings, 1 reply; 5+ messages in thread
From: Eugenio Pérez @ 2021-11-02 11:40 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jason Wang, Michael S. Tsirkin, Juan Quintela

The -1 assumes that all devices with no cvq have an spare vq allocated
for them, but with no offer of VIRTIO_NET_F_CTRL_VQ. This is an invalid
device by the standard, so just stick to the right number of device
models.

This is not a problem to vhost-net, but it is to vhost-vdpa, which
device model trust to reach the last index to finish starting the
device.

Tested with vp_vdpa with host's vhost=on and vhost=off.

v2:
* Delete all the conditional code instead of ROUND_DOWN in a
  deinitely too-bit-tricky way.

Eugenio Pérez (1):
  vhost: Fix last queue index of devices with no cvq

 hw/net/vhost_net.c | 4 ----
 1 file changed, 4 deletions(-)

-- 
2.27.0




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

end of thread, other threads:[~2021-11-03  7:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-02 11:40 [PATCH v2 0/1] vhost: Fix last queue index of devices with no cvq Eugenio Pérez
2021-11-02 11:40 ` [PATCH v2 1/1] " Eugenio Pérez
2021-11-02 14:09   ` Juan Quintela
2021-11-03  2:50   ` Jason Wang
2021-11-03  7:39     ` Eugenio Perez Martin

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).