[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/2] vdpa: Fix SIGSEGV on failed vdpa devices
From: |
Eugenio Pérez |
Subject: |
[PATCH v2 0/2] vdpa: Fix SIGSEGV on failed vdpa devices |
Date: |
Thu, 25 Nov 2021 11:16:12 +0100 |
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