qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/5] Guest announce feature emulation using Shadow VirtQueue
@ 2022-10-18 15:53 Eugenio Pérez
  2022-10-18 15:53 ` [RFC PATCH 1/5] vdpa: Save emulated features list in vhost_vdpa Eugenio Pérez
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Eugenio Pérez @ 2022-10-18 15:53 UTC (permalink / raw)
  To: qemu-devel
  Cc: Si-Wei Liu, Laurent Vivier, Eli Cohen, Gautam Dawar,
	Michael S. Tsirkin, Zhu Lingshan, Harpreet Singh Anand,
	Liuxiangdong, Cindy Lu, Parav Pandit, Stefano Garzarella,
	Jason Wang

A gratuitous ARP is recommended after a live migration to reduce the amount of
time needed by the network links to be aware of the new location. A hypervisor
may not have the knowledge of the guest network configuration, and this is
especially true on passthrough devices, so its simpler to ask the guest to
do it.

However, the device control part of this feature can be totally emulated by
qemu and shadow virtqueue, not needing any special feature from the actual
vdpa device.

Sending as RFC for the moment as VIRTIO_NET_F_STATUS is also needed for the
guest to access the status of virtio net config to check if an announcement
is needed.

Eugenio Pérez (5):
  vdpa: Save emulated features list in vhost_vdpa
  vdpa: Remove shadow CVQ command check
  vdpa: handle VIRTIO_NET_CTRL_ANNOUNCE in
    vhost_vdpa_net_handle_ctrl_avail
  vhost_net: return VIRTIO_NET_S_ANNOUNCE is device model has it set
  vdpa: Offer VIRTIO_NET_F_GUEST_ANNOUNCE feature if SVQ is enabled

 include/hw/virtio/vhost-vdpa.h |  2 +
 hw/net/vhost_net.c             | 30 ++++++++++++++-
 hw/virtio/vhost-vdpa.c         |  8 ++--
 net/vhost-vdpa.c               | 70 +++++++++-------------------------
 4 files changed, 54 insertions(+), 56 deletions(-)

-- 
2.31.1




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

end of thread, other threads:[~2022-10-18 16:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-18 15:53 [RFC PATCH 0/5] Guest announce feature emulation using Shadow VirtQueue Eugenio Pérez
2022-10-18 15:53 ` [RFC PATCH 1/5] vdpa: Save emulated features list in vhost_vdpa Eugenio Pérez
2022-10-18 15:53 ` [RFC PATCH 2/5] vdpa: Remove shadow CVQ command check Eugenio Pérez
2022-10-18 15:53 ` [RFC PATCH 3/5] vdpa: handle VIRTIO_NET_CTRL_ANNOUNCE in vhost_vdpa_net_handle_ctrl_avail Eugenio Pérez
2022-10-18 15:53 ` [RFC PATCH 4/5] vhost_net: return VIRTIO_NET_S_ANNOUNCE is device model has it set Eugenio Pérez
2022-10-18 15:53 ` [RFC PATCH 5/5] vdpa: Offer VIRTIO_NET_F_GUEST_ANNOUNCE feature if SVQ is enabled Eugenio Pérez

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