qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] vhost: implement VHOST_SET_VRING_ERR
@ 2022-06-23 16:13 Vladimir Sementsov-Ogievskiy
  2022-06-23 16:13 ` [PATCH v2 1/2] vhost: add method vhost_set_vring_err Vladimir Sementsov-Ogievskiy
  2022-06-23 16:13 ` [PATCH v2 2/2] vhost: setup error eventfd and dump errors Vladimir Sementsov-Ogievskiy
  0 siblings, 2 replies; 5+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2022-06-23 16:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: mst, vsementsov, yc-core, rvkagan, armbru

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-24 13:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-23 16:13 [PATCH v2 0/2] vhost: implement VHOST_SET_VRING_ERR Vladimir Sementsov-Ogievskiy
2022-06-23 16:13 ` [PATCH v2 1/2] vhost: add method vhost_set_vring_err Vladimir Sementsov-Ogievskiy
2022-06-24 11:47   ` Roman Kagan
2022-06-23 16:13 ` [PATCH v2 2/2] vhost: setup error eventfd and dump errors Vladimir Sementsov-Ogievskiy
2022-06-24 13:11   ` Roman Kagan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).