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

[Xen-changelog] [xen-4.1-testing] Revert 23092:0f2b9b6c5a74



# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1313504059 -3600
# Node ID c8987be040d03acf69b068379ba063c446ce97ac
# Parent  84e3706df07a1963e23cd3875d8603917657d462
Revert 23092:0f2b9b6c5a74

It has broken unmodified Windows HVM guests for some users:

Signed-off-by: Keir Fraser <keir@xxxxxxx>
---


diff -r 84e3706df07a -r c8987be040d0 xen/arch/x86/irq.c
--- a/xen/arch/x86/irq.c        Fri Aug 12 11:33:41 2011 +0100
+++ b/xen/arch/x86/irq.c        Tue Aug 16 15:14:19 2011 +0100
@@ -1869,8 +1869,14 @@
 
 int hvm_domain_use_pirq(struct domain *d, int pirq)
 {
+    int emuirq;
+    
     if ( !is_hvm_domain(d) || pirq < 0 )
         return 0;
 
-    return (domain_pirq_to_emuirq(d, pirq) != IRQ_UNBOUND);
+    emuirq = domain_pirq_to_emuirq(d, pirq);
+    if ( emuirq != IRQ_UNBOUND && d->pirq_to_evtchn[pirq] != 0 )
+        return 1;
+    else
+        return 0;
 }

_______________________________________________
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®.