virtio: add support for configure interrupt
commit7d847d0c9b93b91160f40d69a65c904d76f1edd8
authorCindy Lu <lulu@redhat.com>
Thu, 22 Dec 2022 07:04:47 +0000 (22 15:04 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 8 Jan 2023 06:54:22 +0000 (8 01:54 -0500)
tree15df50e6f4d4ca368ce07fc0f7b31540ed9512c4
parent259f3acc1c675dd77ebbdb28a483f5d0220bdbf6
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: <20221222070451.936503-7-lulu@redhat.com>
Acked-by: Jason Wang <jasowang@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