aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/hvm
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-03-11 10:05:00 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-03-11 10:05:00 +0000
commit8c28e3d47d14e30566bc5ea3cf527c812ee3f9a2 (patch)
tree9cd528c48322be09113cad98772c77d1d2feb33d /xen/include/xen/hvm
parente8ebaf831c53b0188b2670fdfab89923169f0130 (diff)
downloadxen-8c28e3d47d14e30566bc5ea3cf527c812ee3f9a2.tar.gz
xen-8c28e3d47d14e30566bc5ea3cf527c812ee3f9a2.tar.bz2
xen-8c28e3d47d14e30566bc5ea3cf527c812ee3f9a2.zip
passthrough: allow pass-through devices to share virtual GSI
Allow multiple pass-through devices to use the same guest_gsi. The motivation for this is: * Allow multi-function devices to be passed through as multi-function devices * Allow more than two pass-through devices. - This will place more contention on the GSI-space, and allocation becomes a lot simpler if GSI sharing is allowed. Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'xen/include/xen/hvm')
-rw-r--r--xen/include/xen/hvm/irq.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/include/xen/hvm/irq.h b/xen/include/xen/hvm/irq.h
index 854be8bf7e..1a879d630b 100644
--- a/xen/include/xen/hvm/irq.h
+++ b/xen/include/xen/hvm/irq.h
@@ -60,7 +60,7 @@ struct hvm_mirq_dpci_mapping {
};
struct hvm_girq_dpci_mapping {
- uint8_t valid;
+ struct list_head list;
uint8_t device;
uint8_t intx;
uint8_t machine_gsi;
@@ -75,7 +75,7 @@ struct hvm_irq_dpci {
DECLARE_BITMAP(mapping, NR_IRQS);
struct hvm_mirq_dpci_mapping mirq[NR_IRQS];
/* Guest IRQ to guest device/intx mapping. */
- struct hvm_girq_dpci_mapping girq[NR_IRQS];
+ struct list_head girq[NR_IRQS];
uint8_t msi_gvec_pirq[NR_VECTORS];
DECLARE_BITMAP(dirq_mask, NR_IRQS);
/* Record of mapped ISA IRQs */