Skip to content

vdpa: Fix SIGSEGV on failed vdpa devices

Eugenio Pérez qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesIn review
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vdpa: Add dummy receive callbacknet/vhost-vdpa.c+8 -01 reply
2/2virtio-net: Fix log messagehw/net/virtio-net.c+6 -53 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJason Wang
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] vdpa: Fix SIGSEGV on failed vdpa devices

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(-)
Signature · 1 line
2.27.0