virtio-pci: decouple the single vector from the interrupt process
commitee3b8dc6cc496ba7f4e27aed4493275c706a7942
authorCindy Lu <lulu@redhat.com>
Thu, 22 Dec 2022 07:04:44 +0000 (22 15:04 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 8 Jan 2023 06:54:22 +0000 (8 01:54 -0500)
tree9a3e8c7e96154e39f24a33b29df793b0ef9119b1
parent2e07f69d0c828e21515b63dc22884d548540b382
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.
We add new function kvm_virtio_pci_vector_use_one and _release_one.
These functions are used for the single vector, the whole process will
finish in the loop with vq number.

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