aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/vmsi.c
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 /xen/arch/x86/hvm/vmsi.c
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 'xen/arch/x86/hvm/vmsi.c')
-rw-r--r--xen/arch/x86/hvm/vmsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/vmsi.c b/xen/arch/x86/hvm/vmsi.c
index cc9e9adde5..65682894e9 100644
--- a/xen/arch/x86/hvm/vmsi.c
+++ b/xen/arch/x86/hvm/vmsi.c
@@ -134,7 +134,7 @@ int vmsi_deliver(struct domain *d, int pirq)
"vector=%x trig_mode=%x\n",
dest, dest_mode, delivery_mode, vector, trig_mode);
- if ( !test_bit(_HVM_IRQ_DPCI_MSI, &hvm_irq_dpci->mirq[pirq].flags) )
+ if ( !( hvm_irq_dpci->mirq[pirq].flags & HVM_IRQ_DPCI_GUEST_MSI ) )
{
gdprintk(XENLOG_WARNING, "pirq %x not msi \n", pirq);
return 0;