virtio-pci: decouple notifier from interrupt process
commite3480ef81f6fb61cc9c04e3b5be8b7e84484fc05
authorCindy Lu <lulu@redhat.com>
Thu, 4 Nov 2021 16:48:19 +0000 (5 00:48 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 6 Jan 2022 11:11:39 +0000 (6 06:11 -0500)
tree2f43ef74cd5b3b9174397f6a27f36c005d5d7c95
parentbf1d85c166c19af95dbd27b1faba1d2909732323
virtio-pci: decouple notifier from interrupt process

To reuse the notifier process in configure interrupt.
Use the virtio_pci_get_notifier function to get the notifier.
the INPUT of this function is the IDX, the OUTPUT is notifier and
the vector

Signed-off-by: Cindy Lu <lulu@redhat.com>
Message-Id: <20211104164827.21911-3-lulu@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-pci.c