summaryrefslogtreecommitdiffstats
path: root/hw/pci
diff options
context:
space:
mode:
authorPeter Xu2019-01-16 04:08:14 +0100
committerMichael S. Tsirkin2019-02-05 16:58:33 +0100
commitafa26ecc3010d2851a065edc7817d31e07d236ec (patch)
tree7bfd362c5169d3e1ff805aaee455f2f6e63eb333 /hw/pci
parentintel_iommu: reset intr_enabled when system reset (diff)
downloadqemu-afa26ecc3010d2851a065edc7817d31e07d236ec.tar.gz
qemu-afa26ecc3010d2851a065edc7817d31e07d236ec.tar.xz
qemu-afa26ecc3010d2851a065edc7817d31e07d236ec.zip
pci/msi: export msi_is_masked()
It is going to be used later on outside MSI code to detect whether one MSI vector is masked out. Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci')
-rw-r--r--hw/pci/msi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci/msi.c b/hw/pci/msi.c
index 5e05ce5ec2..47d2b0f33c 100644
--- a/hw/pci/msi.c
+++ b/hw/pci/msi.c
@@ -286,7 +286,7 @@ void msi_reset(PCIDevice *dev)
MSI_DEV_PRINTF(dev, "reset\n");
}
-static bool msi_is_masked(const PCIDevice *dev, unsigned int vector)
+bool msi_is_masked(const PCIDevice *dev, unsigned int vector)
{
uint16_t flags = pci_get_word(dev->config + msi_flags_off(dev));
uint32_t mask, data;