diff options
author | Cindy Lu <lulu@redhat.com> | 2022-12-22 15:04:42 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-01-08 01:54:22 -0500 |
commit | 544f0278afcab2bebab61b14e4c2c58e65911f5b (patch) | |
tree | ba1f9052a42d1e1d0f714d8dd56598dabdcd5938 /hw/sparc | |
parent | c9bdc449f97422e62dc802fd2cbe11b840195595 (diff) |
virtio: introduce macro VIRTIO_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: <20221222070451.936503-2-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>
Diffstat (limited to 'hw/sparc')
0 files changed, 0 insertions, 0 deletions