qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

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>

authored by

Peter Xu and committed by
Michael S. Tsirkin
afa26ecc d7bb469a

+2 -1
+1 -1
hw/pci/msi.c
··· 286 286 MSI_DEV_PRINTF(dev, "reset\n"); 287 287 } 288 288 289 - static bool msi_is_masked(const PCIDevice *dev, unsigned int vector) 289 + bool msi_is_masked(const PCIDevice *dev, unsigned int vector) 290 290 { 291 291 uint16_t flags = pci_get_word(dev->config + msi_flags_off(dev)); 292 292 uint32_t mask, data;
+1
include/hw/pci/msi.h
··· 39 39 bool msi_per_vector_mask, Error **errp); 40 40 void msi_uninit(struct PCIDevice *dev); 41 41 void msi_reset(PCIDevice *dev); 42 + bool msi_is_masked(const PCIDevice *dev, unsigned int vector); 42 43 void msi_notify(PCIDevice *dev, unsigned int vector); 43 44 void msi_send_message(PCIDevice *dev, MSIMessage msg); 44 45 void msi_write_config(PCIDevice *dev, uint32_t addr, uint32_t val, int len);