summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kiszka2012-05-16 20:41:09 +0200
committerMarcelo Tosatti2012-05-16 23:04:44 +0200
commit14de9bab9e4aa47215c26d87de7385afbcb37afa (patch)
tree326b2655bb6effba364e30359e1d5e3757d23776
parentkvm: Refactor KVMState::max_gsi to gsi_count (diff)
downloadqemu-14de9bab9e4aa47215c26d87de7385afbcb37afa.tar.gz
qemu-14de9bab9e4aa47215c26d87de7385afbcb37afa.tar.xz
qemu-14de9bab9e4aa47215c26d87de7385afbcb37afa.zip
Introduce MSIMessage structure
Will be used for generating and distributing MSI messages, both in emulation mode and under KVM. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r--hw/msi.h5
-rw-r--r--qemu-common.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/hw/msi.h b/hw/msi.h
index 3040bb0b43..75747abc25 100644
--- a/hw/msi.h
+++ b/hw/msi.h
@@ -24,6 +24,11 @@
#include "qemu-common.h"
#include "pci.h"
+struct MSIMessage {
+ uint64_t address;
+ uint32_t data;
+};
+
extern bool msi_supported;
bool msi_enabled(const PCIDevice *dev);
diff --git a/qemu-common.h b/qemu-common.h
index 50f659af07..57fe28fd9a 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -248,6 +248,7 @@ typedef struct PCIEAERLog PCIEAERLog;
typedef struct PCIEAERErr PCIEAERErr;
typedef struct PCIEPort PCIEPort;
typedef struct PCIESlot PCIESlot;
+typedef struct MSIMessage MSIMessage;
typedef struct SerialState SerialState;
typedef struct IRQState *qemu_irq;
typedef struct PCMCIACardState PCMCIACardState;