[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] pv-on-hvm: hvm_domain_use_pirq return positive no matter if the evtchn is bound



# HG changeset patch
# User Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
# Date 1308237455 -3600
# Node ID fb5f0febeddc5ede042115595cb1448433235d26
# Parent  a574bf2f5059069db9f43f2c5039b7676296db71
pv-on-hvm: hvm_domain_use_pirq return positive no matter if the evtchn is bound

This patch fixes PV on HVM interrupt remapping with recent Linux
kernels and upstream qemu.  hvm_domain_use_pirq should return positive
even if the evtchn is not currently bound. If it doesn't assert_irq
ends up injecting legacy interrupts even after the guest disabled the
irq.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---


diff -r a574bf2f5059 -r fb5f0febeddc xen/arch/x86/irq.c
--- a/xen/arch/x86/irq.c        Thu Jun 16 16:14:51 2011 +0100
+++ b/xen/arch/x86/irq.c        Thu Jun 16 16:17:35 2011 +0100
@@ -1951,14 +1951,8 @@
 
 int hvm_domain_use_pirq(struct domain *d, int pirq)
 {
-    int emuirq;
-    
     if ( !is_hvm_domain(d) || pirq < 0 )
         return 0;
 
-    emuirq = domain_pirq_to_emuirq(d, pirq);
-    if ( emuirq != IRQ_UNBOUND && d->pirq_to_evtchn[pirq] != 0 )
-        return 1;
-    else
-        return 0;
+    return (domain_pirq_to_emuirq(d, pirq) != IRQ_UNBOUND);
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.