virtio: introduce macro IRTIO_CONFIG_IRQ_IDX
To support configure interrupt for vhost-vdpa Introduce VIRTIO_CONFIG_IRQ_IDX -1 as configure interrupt's queue index, Then we can reuse the functions guest_notifier_mask and guest_notifier_pending. Add the check of queue index in these drivers, if the driver does not support configure interrupt, the function will just return Signed-off-by:Cindy Lu <lulu@redhat.com> Message-Id: <20211104164827.21911-2-lulu@redhat.com> Reviewed-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Michael S. Tsirkin <mst@redhat.com>
Showing
- hw/display/vhost-user-gpu.c 6 additions, 0 deletionshw/display/vhost-user-gpu.c
- hw/net/virtio-net.c 8 additions, 2 deletionshw/net/virtio-net.c
- hw/virtio/vhost-user-fs.c 6 additions, 0 deletionshw/virtio/vhost-user-fs.c
- hw/virtio/vhost-vsock-common.c 6 additions, 0 deletionshw/virtio/vhost-vsock-common.c
- hw/virtio/virtio-crypto.c 6 additions, 0 deletionshw/virtio/virtio-crypto.c
- include/hw/virtio/virtio.h 3 additions, 0 deletionsinclude/hw/virtio/virtio.h
Loading
Please register or sign in to comment