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] Remove ar.rsc save/restore code in

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Remove ar.rsc save/restore code in HV
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 15 Nov 2006 00:40:19 +0000
Delivery-date: Tue, 14 Nov 2006 16:40:51 -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 awilliam@xxxxxxxxxxx
# Node ID 0a490cf4b21d9746b6155297ccbe2c3d24c3f31f
# Parent  9c649ca5c1ccf745ec4c22944475ae2d9322b30d
[IA64] Remove ar.rsc save/restore code in HV

The patch remove codes which save/restore ar.rsc to/from vcpu->arch.old_rsc
when guest doing memory mode switch (virtual -> physical or physical->virtual).
Due to HV is transparent to guest, so there is no need to save/restore ar.rsc
by HV and guest kernel will do that while switching memory mode.

Signed-off-by: Zhang Xin <xing.z.zhang@xxxxxxxxx>
---
 xen/arch/ia64/vmx/vmx_phy_mode.c |    4 ----
 xen/include/asm-ia64/domain.h    |    1 -
 2 files changed, 5 deletions(-)

diff -r 9c649ca5c1cc -r 0a490cf4b21d xen/arch/ia64/vmx/vmx_phy_mode.c
--- a/xen/arch/ia64/vmx/vmx_phy_mode.c  Tue Oct 31 22:25:40 2006 -0700
+++ b/xen/arch/ia64/vmx/vmx_phy_mode.c  Thu Nov 02 12:38:54 2006 -0700
@@ -100,7 +100,6 @@ void
 void
 physical_mode_init(VCPU *vcpu)
 {
-    vcpu->arch.old_rsc = 0;
     vcpu->arch.mode_flags = GUEST_IN_PHY;
 }
 
@@ -245,13 +244,11 @@ switch_mm_mode(VCPU *vcpu, IA64_PSR old_
     case SW_V2P:
 //        printk("V -> P mode transition: (0x%lx -> 0x%lx)\n",
 //               old_psr.val, new_psr.val);
-        vcpu->arch.old_rsc = regs->ar_rsc;
         switch_to_physical_rid(vcpu);
         /*
          * Set rse to enforced lazy, to prevent active rse save/restor when
          * guest physical mode.
          */
-        regs->ar_rsc &= ~(IA64_RSC_MODE);
         vcpu->arch.mode_flags |= GUEST_IN_PHY;
         break;
     case SW_P2V:
@@ -262,7 +259,6 @@ switch_mm_mode(VCPU *vcpu, IA64_PSR old_
          * recover old mode which is saved when entering
          * guest physical mode
          */
-        regs->ar_rsc = vcpu->arch.old_rsc;
         vcpu->arch.mode_flags &= ~GUEST_IN_PHY;
         break;
     case SW_SELF:
diff -r 9c649ca5c1cc -r 0a490cf4b21d xen/include/asm-ia64/domain.h
--- a/xen/include/asm-ia64/domain.h     Tue Oct 31 22:25:40 2006 -0700
+++ b/xen/include/asm-ia64/domain.h     Thu Nov 02 12:38:54 2006 -0700
@@ -186,7 +186,6 @@ struct arch_vcpu {
     char hypercall_continuation;
 
     //for phycial  emulation
-    unsigned long old_rsc;
     int mode_flags;
     fpswa_ret_t fpswa_ret;     /* save return values of FPSWA emulation */
     struct timer hlt_timer;

_______________________________________________
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] Remove ar.rsc save/restore code in HV, Xen patchbot-unstable <=