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

[Xen-changelog] [xen-unstable] [IA64] Remove ar.rsc save/restore code in HV



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.