]> git.proxmox.com Git - mirror_qemu.git/commit - hw/virtio/vhost-user.c
vhost: add method vhost_set_vring_err
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Thu, 23 Jun 2022 16:13:24 +0000 (19:13 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Jun 2022 22:53:18 +0000 (18:53 -0400)
commit60dc3c5be9ce67f4195c432b22a88d8af6429d80
tree2253b8c09ca3744b574f53f7902fc56bc2a3abaa
parent71e3d004824724fe55cd1c4dba34477361a38319
vhost: add method vhost_set_vring_err

Kernel and user vhost may report virtqueue errors via eventfd.
This is only reliable way to get notification about protocol error.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Message-Id: <20220623161325.18813-2-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>
hw/virtio/vhost-backend.c
hw/virtio/vhost-user.c
include/hw/virtio/vhost-backend.h