Cindy Lu bf1d85c166 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>
2022-01-06 06:11:39 -05:00
..
2020-12-10 12:15:18 -05:00
2017-03-27 12:14:45 +02:00
2021-05-12 18:20:25 +02:00
2021-11-09 16:42:49 +01:00
2020-05-18 15:43:51 +02:00
2021-03-19 15:18:43 +01:00
2021-12-21 10:50:21 +04:00
2019-08-16 13:31:52 +02:00