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

Eugenio Pérez posted 2 patches 1 week, 5 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20211125101614.76927-1-eperezma@redhat.com
hw/net/virtio-net.c | 11 ++++++-----
net/vhost-vdpa.c    |  8 ++++++++
2 files changed, 14 insertions(+), 5 deletions(-)

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

Posted by Eugenio Pérez 1 week, 5 days ago
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