summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheng Yang <sheng@linux.intel.com>2009-03-17 11:50:10 +0800
committerAvi Kivity <avi@redhat.com>2009-03-18 15:44:11 +0200
commit727a5163e3031a7555049fc49e5567f4ec2c89eb (patch)
tree80971b47451d24fc74b58532af310934d26a56dc /hw/device-assignment.h
parentkvm: libkvm: allocate unused gsi for irq routing (diff)
downloadqemu-kvm-727a5163e3031a7555049fc49e5567f4ec2c89eb.tar.gz
qemu-kvm-727a5163e3031a7555049fc49e5567f4ec2c89eb.tar.bz2
qemu-kvm-727a5163e3031a7555049fc49e5567f4ec2c89eb.zip
Expose MSI capability to guest
(Alex: correct libpci usage) Signed-off-by: Sheng Yang <sheng@linux.intel.com> Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/device-assignment.h')
-rw-r--r--hw/device-assignment.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/device-assignment.h b/hw/device-assignment.h
index e6482403d..c6610d65b 100644
--- a/hw/device-assignment.h
+++ b/hw/device-assignment.h
@@ -81,6 +81,15 @@ typedef struct {
unsigned int h_devfn;
int irq_requested_type;
int bound;
+ struct pci_dev *pdev;
+ struct {
+#define ASSIGNED_DEVICE_CAP_MSI (1 << 0)
+ uint32_t available;
+#define ASSIGNED_DEVICE_MSI_ENABLED (1 << 0)
+ uint32_t state;
+ } cap;
+ int irq_entries_nr;
+ struct kvm_irq_routing_entry *entry;
} AssignedDevice;
typedef struct AssignedDevInfo AssignedDevInfo;