virtio: add support for configure interrupt
commit081f864f56307551f59c5e934e3f30a7290d0faa
authorCindy Lu <lulu@redhat.com>
Thu, 4 Nov 2021 16:48:23 +0000 (5 00:48 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 6 Jan 2022 11:11:39 +0000 (6 06:11 -0500)
tree2e9da4b30e4bfc96238574b5a876b0b9cd9e701f
parent634f7c89fbd78f57d00d5d6b39c0ade9df1fe27f
virtio: add support for configure interrupt

Add the functions to support the configure interrupt in virtio
The function virtio_config_guest_notifier_read will notify the
guest if there is an configure interrupt.
The function virtio_config_set_guest_notifier_fd_handler is
to set the fd hander for the notifier

Signed-off-by: Cindy Lu <lulu@redhat.com>
Message-Id: <20211104164827.21911-7-lulu@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio.c
include/hw/virtio/virtio.h