summaryrefslogtreecommitdiffstats
path: root/include/hw/virtio
diff options
context:
space:
mode:
authorKonstantin Khlebnikov2022-06-23 18:13:25 +0200
committerMichael S. Tsirkin2022-06-28 00:53:18 +0200
commitae50ae0b91bb5bebb0d074afaecba027d8da16a1 (patch)
tree93f8cb1f2a146a1d5f36ed5dbaa71fb830ab8b68 /include/hw/virtio
parentvhost: add method vhost_set_vring_err (diff)
downloadqemu-ae50ae0b91bb5bebb0d074afaecba027d8da16a1.tar.gz
qemu-ae50ae0b91bb5bebb0d074afaecba027d8da16a1.tar.xz
qemu-ae50ae0b91bb5bebb0d074afaecba027d8da16a1.zip
vhost: setup error eventfd and dump errors
Vhost has error notifications, let's log them like other errors. For each virt-queue setup eventfd for vring error notifications. Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> [vsementsov: rename patch, change commit message and dump error like other errors in the file] Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Message-Id: <20220623161325.18813-3-vsementsov@yandex-team.ru> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Roman Kagan <rvkagan@yandex-team.ru>
Diffstat (limited to 'include/hw/virtio')
-rw-r--r--include/hw/virtio/vhost.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/virtio/vhost.h b/include/hw/virtio/vhost.h
index b291fe4e24..1e7cbd9a10 100644
--- a/include/hw/virtio/vhost.h
+++ b/include/hw/virtio/vhost.h
@@ -29,6 +29,7 @@ struct vhost_virtqueue {
unsigned long long used_phys;
unsigned used_size;
EventNotifier masked_notifier;
+ EventNotifier error_notifier;
struct vhost_dev *dev;
};