OSDN Git Service

virtio-pci: decouple notifier from interrupt process
authorCindy Lu <lulu@redhat.com>
Thu, 22 Dec 2022 07:04:43 +0000 (15:04 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 8 Jan 2023 06:54:22 +0000 (01:54 -0500)
commit2e07f69d0c828e21515b63dc22884d548540b382
treed7ae537172028e881dde3cc4f08c2e140c7126f1
parent544f0278afcab2bebab61b14e4c2c58e65911f5b
virtio-pci: decouple notifier from interrupt process

To reuse the notifier process. We add the virtio_pci_get_notifier
to get the notifier and vector. The INPUT for this function is IDX,
The OUTPUT is the notifier and the vector

Signed-off-by: Cindy Lu <lulu@redhat.com>
Message-Id: <20221222070451.936503-3-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-pci.c