mbox series

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

Message ID 20211125101614.76927-1-eperezma@redhat.com
Headers show
Series vdpa: Fix SIGSEGV on failed vdpa devices | expand

Message

Eugenio Perez Martin Nov. 25, 2021, 10:16 a.m. UTC
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(-)