]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio: introduce macro IRTIO_CONFIG_IRQ_IDX
authorCindy Lu <lulu@redhat.com>
Thu, 4 Nov 2021 16:48:18 +0000 (00:48 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 6 Jan 2022 11:11:39 +0000 (06:11 -0500)
commitbf1d85c166c19af95dbd27b1faba1d2909732323
treeb5aa07ac6e4b08fe8b789723657d748b6dddf6bf
parent9bd6565ccee68f72d5012e24646e12a1c662827e
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>
hw/display/vhost-user-gpu.c
hw/net/virtio-net.c
hw/virtio/vhost-user-fs.c
hw/virtio/vhost-vsock-common.c
hw/virtio/virtio-crypto.c
include/hw/virtio/virtio.h