OSDN Git Service

vhost: setup error eventfd and dump errors
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Thu, 23 Jun 2022 16:13:25 +0000 (19:13 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Jun 2022 22:53:18 +0000 (18:53 -0400)
commitae50ae0b91bb5bebb0d074afaecba027d8da16a1
tree93f8cb1f2a146a1d5f36ed5dbaa71fb830ab8b68
parent60dc3c5be9ce67f4195c432b22a88d8af6429d80
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>
hw/virtio/vhost.c
include/hw/virtio/vhost.h