diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2012-10-02 13:22:07 -0600 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2012-10-29 17:59:06 +0200 |
commit | 39b9bc626a436837f0068cb600aaf91c0e8aa937 (patch) | |
tree | 3a7521400f23152428e7ac794fffa850623b6aaf /hw/msi.h | |
parent | 4774d7b258e0c4a6595a7b0bc6960c1751365bbf (diff) |
msi: Add msi_get_message()
vfio-pci and pci-assign both do this on their own for setting up
direct MSI injection through KVM. Provide a helper function for
this in MSI code.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/msi.h')
-rw-r--r-- | hw/msi.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -32,6 +32,7 @@ struct MSIMessage { extern bool msi_supported; void msi_set_message(PCIDevice *dev, MSIMessage msg); +MSIMessage msi_get_message(PCIDevice *dev, unsigned int vector); bool msi_enabled(const PCIDevice *dev); int msi_init(struct PCIDevice *dev, uint8_t offset, unsigned int nr_vectors, bool msi64bit, bool msi_per_vector_mask); |