WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-4.1-testing] pv-on-hvm: hvm_domain_use_pirq return

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.1-testing] pv-on-hvm: hvm_domain_use_pirq return positive no matter if the evtchn is bound
From: Xen patchbot-4.1-testing <patchbot@xxxxxxx>
Date: Sat, 25 Jun 2011 23:55:11 +0100
Delivery-date: Sat, 25 Jun 2011 15:55:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
# Date 1308826918 -3600
# Node ID 0f2b9b6c5a74e40862e4b3aa125715e4c9f0e4e7
# Parent  8ddcd2dd21f35c494c9b3084ab9070824b81ab87
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>
xen-unstable changeset:   23550:fb5f0febeddc
xen-unstable date:        Thu Jun 16 16:17:35 2011 +0100
---


diff -r 8ddcd2dd21f3 -r 0f2b9b6c5a74 xen/arch/x86/irq.c
--- a/xen/arch/x86/irq.c        Thu Jun 23 12:01:11 2011 +0100
+++ b/xen/arch/x86/irq.c        Thu Jun 23 12:01:58 2011 +0100
@@ -1869,14 +1869,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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.1-testing] pv-on-hvm: hvm_domain_use_pirq return positive no matter if the evtchn is bound, Xen patchbot-4 . 1-testing <=