mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
msix: Add msix_nr_vectors_allocated
Analogously to msi_nr_vectors_allocated, add a service for MSI-X. Will be used by the virtio-pci layer. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
bbf3b80401
commit
cb697aaab9
2 changed files with 7 additions and 0 deletions
|
@ -452,6 +452,11 @@ void msix_unuse_all_vectors(PCIDevice *dev)
|
|||
msix_free_irq_entries(dev);
|
||||
}
|
||||
|
||||
unsigned int msix_nr_vectors_allocated(const PCIDevice *dev)
|
||||
{
|
||||
return dev->msix_entries_nr;
|
||||
}
|
||||
|
||||
static int msix_set_notifier_for_vector(PCIDevice *dev, unsigned int vector)
|
||||
{
|
||||
MSIMessage msg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue