aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-01-08 11:25:06 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-01-08 11:25:06 +0000
commit11f8ac5ebfa45c92daa128d58a42b265ceeb0e4c (patch)
tree827d0e9e83307c6256318c3b47924c029d749d10 /tools/libxc
parent6df92ebc3022fa27c6bcf5bbcda1c2ccd24c1c17 (diff)
downloadxen-11f8ac5ebfa45c92daa128d58a42b265ceeb0e4c.tar.gz
xen-11f8ac5ebfa45c92daa128d58a42b265ceeb0e4c.tar.bz2
xen-11f8ac5ebfa45c92daa128d58a42b265ceeb0e4c.zip
passthrough: MSI-INTx translation for HVM
The patch adds a new type of pt_irq: PT_IRQ_TYPE_MSI_TRANSLATE. With it, guest dpci irq can now use msi as the underlying pirq while injected as INTx irq. Signed-off-by: Qing He <qing.he@intel.com>
Diffstat (limited to 'tools/libxc')
-rw-r--r--tools/libxc/xc_domain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
index b508149b3f..af43b48e57 100644
--- a/tools/libxc/xc_domain.c
+++ b/tools/libxc/xc_domain.c
@@ -958,7 +958,8 @@ int xc_domain_bind_pt_irq(
bind->hvm_domid = domid;
bind->irq_type = irq_type;
bind->machine_irq = machine_irq;
- if ( irq_type == PT_IRQ_TYPE_PCI )
+ if ( irq_type == PT_IRQ_TYPE_PCI ||
+ irq_type == PT_IRQ_TYPE_MSI_TRANSLATE )
{
bind->u.pci.bus = bus;
bind->u.pci.device = device;