diff options
author | Steve Sistare <steven.sistare@oracle.com> | 2025-06-10 08:39:22 -0700 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2025-06-11 14:01:58 +0200 |
commit | 8df3fa3d6753332a64eca53780517972075966e1 (patch) | |
tree | 632875d9a38029902df08399b34c0243ce806ab1 | |
parent | eba1f657cbb1b525e2b069626de655da21084e3e (diff) | |
download | qemu-8df3fa3d6753332a64eca53780517972075966e1.zip qemu-8df3fa3d6753332a64eca53780517972075966e1.tar.gz qemu-8df3fa3d6753332a64eca53780517972075966e1.tar.bz2 |
pci: export msix_is_pending
Export msix_is_pending for use by cpr. No functional change.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://lore.kernel.org/qemu-devel/1749569991-25171-10-git-send-email-steven.sistare@oracle.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
-rw-r--r-- | hw/pci/msix.c | 2 | ||||
-rw-r--r-- | include/hw/pci/msix.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/hw/pci/msix.c b/hw/pci/msix.c index 66f27b9..8c7f670 100644 --- a/hw/pci/msix.c +++ b/hw/pci/msix.c @@ -72,7 +72,7 @@ static uint8_t *msix_pending_byte(PCIDevice *dev, int vector) return dev->msix_pba + vector / 8; } -static int msix_is_pending(PCIDevice *dev, int vector) +int msix_is_pending(PCIDevice *dev, unsigned int vector) { return *msix_pending_byte(dev, vector) & msix_pending_mask(vector); } diff --git a/include/hw/pci/msix.h b/include/hw/pci/msix.h index 0e6f257..11ef945 100644 --- a/include/hw/pci/msix.h +++ b/include/hw/pci/msix.h @@ -32,6 +32,7 @@ int msix_present(PCIDevice *dev); bool msix_is_masked(PCIDevice *dev, unsigned vector); void msix_set_pending(PCIDevice *dev, unsigned vector); void msix_clr_pending(PCIDevice *dev, int vector); +int msix_is_pending(PCIDevice *dev, unsigned vector); void msix_vector_use(PCIDevice *dev, unsigned vector); void msix_vector_unuse(PCIDevice *dev, unsigned vector); |