OSDN Git Service

virtio-pci: decouple the single vector from the interrupt process
authorCindy Lu <lulu@redhat.com>
Thu, 4 Nov 2021 16:48:20 +0000 (00:48 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 6 Jan 2022 11:11:39 +0000 (06:11 -0500)
commit316011b8a74e777eb3ba03171cd701a291c28867
treef690d812fcc1ca166cc693f918f51cd63decf614
parente3480ef81f6fb61cc9c04e3b5be8b7e84484fc05
virtio-pci: decouple the single vector from the interrupt process

To reuse the interrupt process in configure interrupt
Need to decouple the single vector from the interrupt process. Add new function
kvm_virtio_pci_vector_use_one and _release_one. These functions are use
for the single vector, the whole process will finish in a loop for the vq number.

Signed-off-by: Cindy Lu <lulu@redhat.com>
Message-Id: <20211104164827.21911-4-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