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-3.1-testing] x86 hvm: hvm_maybe_deassert_evtchn_irq

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.1-testing] x86 hvm: hvm_maybe_deassert_evtchn_irq() needs to be called early in
From: "Xen patchbot-3.1-testing" <patchbot-3.1-testing@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 14 Jan 2008 09:20:31 -0800
Delivery-date: Mon, 14 Jan 2008 09:26:10 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1200049582 0
# Node ID 5a64f1bf9460c601bd3aa8089a3419535ec740ba
# Parent  f479c2af0825f79b5082779c7f09c4cdd204993c
x86 hvm: hvm_maybe_deassert_evtchn_irq() needs to be called early in
vmexit handling, before IO-APIC can be EOIed or unmasked and resample
the fake INTx line.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   16705:e4fd457a3dd5eebf059b49340bb7f3aea1239d8f
xen-unstable date:        Fri Jan 11 10:53:44 2008 +0000
---
 xen/arch/x86/hvm/svm/intr.c |    1 -
 xen/arch/x86/hvm/svm/svm.c  |    2 ++
 xen/arch/x86/hvm/vmx/intr.c |    2 --
 xen/arch/x86/hvm/vmx/vmx.c  |    2 ++
 4 files changed, 4 insertions(+), 3 deletions(-)

diff -r f479c2af0825 -r 5a64f1bf9460 xen/arch/x86/hvm/svm/intr.c
--- a/xen/arch/x86/hvm/svm/intr.c       Thu Jan 10 22:58:05 2008 +0000
+++ b/xen/arch/x86/hvm/svm/intr.c       Fri Jan 11 11:06:22 2008 +0000
@@ -125,7 +125,6 @@ asmlinkage void svm_intr_assist(void)
 
     /* Crank the handle on interrupt state and check for new interrrupts. */
     pt_update_irq(v);
-    hvm_maybe_deassert_evtchn_irq();
 
     do {
         if ( !cpu_has_pending_irq(v) )
diff -r f479c2af0825 -r 5a64f1bf9460 xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c        Thu Jan 10 22:58:05 2008 +0000
+++ b/xen/arch/x86/hvm/svm/svm.c        Fri Jan 11 11:06:22 2008 +0000
@@ -2451,6 +2451,8 @@ asmlinkage void svm_vmexit_handler(struc
     perfc_incra(svmexits, exit_reason);
     eip = vmcb->rip;
 
+    hvm_maybe_deassert_evtchn_irq();
+
     switch ( exit_reason )
     {
     case VMEXIT_INTR:
diff -r f479c2af0825 -r 5a64f1bf9460 xen/arch/x86/hvm/vmx/intr.c
--- a/xen/arch/x86/hvm/vmx/intr.c       Thu Jan 10 22:58:05 2008 +0000
+++ b/xen/arch/x86/hvm/vmx/intr.c       Fri Jan 11 11:06:22 2008 +0000
@@ -110,8 +110,6 @@ asmlinkage void vmx_intr_assist(void)
 
     pt_update_irq(v);
 
-    hvm_maybe_deassert_evtchn_irq();
-
     update_tpr_threshold(vcpu_vlapic(v));
 
     do {
diff -r f479c2af0825 -r 5a64f1bf9460 xen/arch/x86/hvm/vmx/vmx.c
--- a/xen/arch/x86/hvm/vmx/vmx.c        Thu Jan 10 22:58:05 2008 +0000
+++ b/xen/arch/x86/hvm/vmx/vmx.c        Fri Jan 11 11:06:22 2008 +0000
@@ -2912,6 +2912,8 @@ asmlinkage void vmx_vmexit_handler(struc
     if ( unlikely(exit_reason & VMX_EXIT_REASONS_FAILED_VMENTRY) )
         return vmx_failed_vmentry(exit_reason, regs);
 
+    hvm_maybe_deassert_evtchn_irq();
+
     switch ( exit_reason )
     {
     case EXIT_REASON_EXCEPTION_NMI:

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.1-testing] x86 hvm: hvm_maybe_deassert_evtchn_irq() needs to be called early in, Xen patchbot-3.1-testing <=