[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/2] vhost: implement VHOST_SET_VRING_ERR
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v2 0/2] vhost: implement VHOST_SET_VRING_ERR |
Date: |
Thu, 23 Jun 2022 19:13:23 +0300 |
Both vhost-user and kernel vhost can inform Qemu about virt-queue error
through separate eventfd. Let's use this possibility.
For now just dump a message on error like elsewhere in vhost.c.
Further plan is implement QAPI event for this and may be some other
vhost/virtio errors to make it possible to instantly notify user about
problems in vm. That would be a separate patch or patchset.
v2: don't add QAPI event for now. Let's first realize the vhost
interface.
Yandex-ST: CLOUD-101375
Konstantin Khlebnikov (2):
vhost: add method vhost_set_vring_err
vhost: setup error eventfd and dump errors
hw/virtio/vhost-backend.c | 7 ++++++
hw/virtio/vhost-user.c | 6 +++++
hw/virtio/vhost.c | 37 +++++++++++++++++++++++++++++++
include/hw/virtio/vhost-backend.h | 3 +++
include/hw/virtio/vhost.h | 1 +
5 files changed, 54 insertions(+)
--
2.25.1
- [PATCH v2 0/2] vhost: implement VHOST_SET_VRING_ERR,
Vladimir Sementsov-Ogievskiy <=