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-unstable] [IA64] Fix for ptc.ga emulation

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Fix for ptc.ga emulation
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 03 Jul 2006 10:20:26 +0000
Delivery-date: Mon, 03 Jul 2006 03:26:00 -0700
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 awilliam@lappy
# Node ID c78f750a264ce0947fb3acb7dfbb528628a2b51d
# Parent  c5005be9ef91849da1d2fc732ff6ebc710af9803
[IA64] Fix for ptc.ga emulation

If switch to idle domain after vhpt_purge in ptc_ga emulation,
shouldn't switch rr7 and pta. Only disable VHPT needed. If no,
Smp VTi will hang whole system due to fault.

Signed-off-by: Zhang xiantao <xiantao.zhang@xxxxxxxxx>
Signed-off-by: Kevin Tian <kevin.tian@xxxxxxxxx>
---
 xen/arch/ia64/xen/regionreg.c |   26 ++++++++++++++++----------
 1 files changed, 16 insertions(+), 10 deletions(-)

diff -r c5005be9ef91 -r c78f750a264c xen/arch/ia64/xen/regionreg.c
--- a/xen/arch/ia64/xen/regionreg.c     Tue Jun 20 15:56:48 2006 -0600
+++ b/xen/arch/ia64/xen/regionreg.c     Tue Jun 20 16:05:17 2006 -0600
@@ -345,13 +345,19 @@ void load_region_regs(struct vcpu *v)
 
 void load_region_reg7_and_pta(struct vcpu *v)
 {
-       unsigned long rr7;
-
-       ia64_set_pta(VHPT_ADDR | (1 << 8) | (VHPT_SIZE_LOG2 << 2) |
-                    VHPT_ENABLED);
-
-       // TODO: These probably should be validated
-       rr7 =  VCPU(v,rrs[7]);
-       if (!set_one_rr(0xe000000000000000L, rr7))
-               panic_domain(0, "%s: can't set!\n", __func__);
-}
+       unsigned long rr7, pta;
+
+       if (!is_idle_domain(v->domain)) {  
+               ia64_set_pta(VHPT_ADDR | (1 << 8) | (VHPT_SIZE_LOG2 << 2) |
+                            VHPT_ENABLED);
+
+               // TODO: These probably should be validated
+               rr7 =  VCPU(v,rrs[7]);
+               if (!set_one_rr(0xe000000000000000L, rr7))
+                       panic_domain(0, "%s: can't set!\n", __func__);
+       }
+       else {
+               pta = ia64_get_pta();
+               ia64_set_pta(pta & ~VHPT_ENABLED);
+       }
+}

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Fix for ptc.ga emulation, Xen patchbot-unstable <=