qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Emulate status feature in vhost-vdpa net
@ 2022-10-26  9:53 Eugenio Pérez
  2022-10-26  9:53 ` [PATCH 1/3] virtio_net: Modify virtio_net_get_config to early return Eugenio Pérez
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Eugenio Pérez @ 2022-10-26  9:53 UTC (permalink / raw)
  To: qemu-devel
  Cc: Gautam Dawar, Parav Pandit, Zhu Lingshan, Stefano Garzarella,
	Jason Wang, Michael S. Tsirkin, Cindy Lu, Eli Cohen,
	Laurent Vivier, Si-Wei Liu, Liuxiangdong, Harpreet Singh Anand

The net config space is already copied from the device so it can me modified
by qemu. In particular, this is already done to fix cases where the NIC does
not expose the right fields.

It's trivial to emulate _F_STATE with qemu if not supported by the device,
sice a valid approach is to always show the link as up. If the feature is
already supported by the device, no config space modification is needed.

This is a pre requisite to use other features like _F_GUEST_ANNOUNCE, since
_F_STATUS is needed for the guest to access the status.

These patches are sent on top of [1] series, so trivial conflicts could arise
if it is applied directly on master. Future versions can be not based on
it is more convenient.

Eugenio Pérez (3):
  virtio_net: Modify virtio_net_get_config to early return
  virtio_net: Handle _F_STATUS emulation in virtio_net_get_config
  vdpa: Expose VIRTIO_NET_F_STATUS unconditionally

 include/net/vhost-vdpa.h |  1 +
 hw/net/vhost_net.c       | 16 ++++++++++++++--
 hw/net/virtio-net.c      | 39 ++++++++++++++++++++++++---------------
 net/vhost-vdpa.c         |  3 +++
 4 files changed, 42 insertions(+), 17 deletions(-)

-- 
2.31.1




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

end of thread, other threads:[~2022-11-07  9:26 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-26  9:53 [PATCH 0/3] Emulate status feature in vhost-vdpa net Eugenio Pérez
2022-10-26  9:53 ` [PATCH 1/3] virtio_net: Modify virtio_net_get_config to early return Eugenio Pérez
2022-10-26 13:38   ` Philippe Mathieu-Daudé
2022-10-26  9:53 ` [PATCH 2/3] virtio_net: Handle _F_STATUS emulation in virtio_net_get_config Eugenio Pérez
2022-10-26  9:53 ` [PATCH 3/3] vdpa: Expose VIRTIO_NET_F_STATUS unconditionally Eugenio Pérez
2022-10-27  4:31   ` Jason Wang
2022-10-27  6:46     ` Eugenio Perez Martin
2022-10-27  6:54       ` Jason Wang
2022-10-27 10:17         ` Eugenio Perez Martin
2022-10-28  1:58           ` Jason Wang
2022-10-28  9:29             ` Eugenio Perez Martin
2022-11-01  8:09               ` Jason Wang
2022-11-02 11:18                 ` Eugenio Perez Martin
2022-11-03  3:21                   ` Jason Wang
2022-11-03  8:11                     ` Eugenio Perez Martin
2022-11-07  7:51                       ` Jason Wang
2022-11-07  9:25                         ` Eugenio Perez Martin
2022-10-26 20:53 ` [PATCH 0/3] Emulate status feature in vhost-vdpa net Michael S. Tsirkin

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