All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] vdpa: Fix SIGSEGV on failed vdpa devices
@ 2021-11-25 10:16 Eugenio Pérez
  2021-11-25 10:16 ` [PATCH v2 1/2] vdpa: Add dummy receive callback Eugenio Pérez
  2021-11-25 10:16 ` [PATCH v2 2/2] virtio-net: Fix log message Eugenio Pérez
  0 siblings, 2 replies; 7+ messages in thread
From: Eugenio Pérez @ 2021-11-25 10:16 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Jason Wang, qemu-stable, Cindy Lu,
	Michael S. Tsirkin

Qemu falls back on userland handlers even if vhost-user and vhost-vdpa
cases. These assumes a tap device can handle the packets.

If a vdpa device fail to start, it can trigger a sigsegv because of
that. Add dummy receivers that return no progress so it can keep
running.

Tested with a modified version of vp_vdpa to fail negotiation.

v2:
* Replace dummy receive_{iov,raw} with receive callback.
* Delete fix indentation commit, we don't touch that code anymore.

Eugenio Pérez (2):
  vdpa: Add dummy receive callback
  virtio-net: Fix log message

 hw/net/virtio-net.c | 11 ++++++-----
 net/vhost-vdpa.c    |  8 ++++++++
 2 files changed, 14 insertions(+), 5 deletions(-)

-- 
2.27.0




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

end of thread, other threads:[~2021-11-29 14:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-25 10:16 [PATCH v2 0/2] vdpa: Fix SIGSEGV on failed vdpa devices Eugenio Pérez
2021-11-25 10:16 ` [PATCH v2 1/2] vdpa: Add dummy receive callback Eugenio Pérez
2021-11-26  2:54   ` Jason Wang
2021-11-25 10:16 ` [PATCH v2 2/2] virtio-net: Fix log message Eugenio Pérez
2021-11-26  2:54   ` Jason Wang
2021-11-29 13:43     ` Michael S. Tsirkin
2021-11-29 14:56       ` Eugenio Perez Martin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.