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

[Xen-changelog] [xen-unstable] [IA64] Remove unused arguments of vmx_switch_rr7



# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1189544862 21600
# Node ID c94683db19e9541409f759142be9d8dc67c444db
# Parent  fec8b52b1a7fa7c7f6a86a3e079880849556caeb
[IA64] Remove unused arguments of vmx_switch_rr7

Signed-off-by: Tristan Gingold <tgingold@xxxxxxx>
---
 xen/arch/ia64/vmx/vmx_entry.S    |   40 +++++++++++++++++----------------------
 xen/arch/ia64/vmx/vmx_phy_mode.c |    4 ---
 xen/arch/ia64/vmx/vmx_vcpu.c     |    5 +---
 xen/include/asm-ia64/vmx_vcpu.h  |    3 --
 4 files changed, 21 insertions(+), 31 deletions(-)

diff -r fec8b52b1a7f -r c94683db19e9 xen/arch/ia64/vmx/vmx_entry.S
--- a/xen/arch/ia64/vmx/vmx_entry.S     Tue Sep 11 19:11:02 2007 +0100
+++ b/xen/arch/ia64/vmx/vmx_entry.S     Tue Sep 11 15:07:42 2007 -0600
@@ -603,10 +603,8 @@ END(ia64_leave_hypercall)
 
 /*
  * in0: new rr7
- * in1: virtual address of shared_info
- * in2: virtual address of shared_arch_info (VPD)
- * in3: virtual address of guest_vhpt
- * in4: virtual address of pal code segment
+ * in1: virtual address of guest_vhpt
+ * in2: virtual address of pal code segment
  * r8: will contain old rid value
  */
 
@@ -622,7 +620,7 @@ GLOBAL_ENTRY(vmx_switch_rr7)
 GLOBAL_ENTRY(vmx_switch_rr7)
    // not sure this unwind statement is correct...
    .prologue ASM_UNW_PRLG_RP|ASM_UNW_PRLG_PFS, ASM_UNW_PRLG_GRSAVE(1)
-   alloc loc1 = ar.pfs, 5, 9, 0, 0
+   alloc loc1 = ar.pfs, 3, 7, 0, 0
 1: {
      mov r28  = in0        // copy procedure index
      mov r8   = ip         // save ip to compute branch
@@ -633,22 +631,20 @@ 1: {
     ;;
     tpa loc2 = loc2         // get physical address of per cpu date
     ;;
-    dep loc3 = 0,in1,60,4          // get physical address of shared_info
-    dep loc4 = 0,in2,60,4          // get physical address of shared_arch_info
-    dep loc5 = 0,in3,60,4          // get physical address of guest_vhpt
-    dep loc6 = 0,in4,60,4          // get physical address of pal code
-    ;;
-    mov loc7 = psr          // save psr
-    ;;
-    mov loc8 = ar.rsc           // save RSE configuration
+    dep loc5 = 0,in1,60,4          // get physical address of guest_vhpt
+    dep loc6 = 0,in2,60,4          // get physical address of pal code
+    ;;
+    mov loc4 = psr          // save psr
+    ;;
+    mov loc3 = ar.rsc           // save RSE configuration
     ;;
     mov ar.rsc = 0          // put RSE in enforced lazy, LE mode
     movl r16=PSR_BITS_TO_CLEAR
     movl r17=PSR_BITS_TO_SET
     ;;
-    or loc7 = loc7,r17      // add in psr the bits to set
-    ;;
-    andcm r16=loc7,r16      // removes bits to clear from psr
+    or loc4 = loc4,r17      // add in psr the bits to set
+    ;;
+    andcm r16=loc4,r16      // removes bits to clear from psr
     br.call.sptk.many rp=ia64_switch_mode_phys
 1:
    // now in physical mode with psr.i/ic off so do rr7 switch
@@ -709,10 +705,10 @@ 1:
    or loc5 = r25,loc5          // construct PA | page properties
    mov r23 = IA64_GRANULE_SHIFT <<2
    ;;
-   ptr.d   in3,r23
+   ptr.d   in1,r23
    ;;
    mov cr.itir=r23
-   mov cr.ifa=in3
+   mov cr.ifa=in1
    ;;
    itr.d dtr[r24]=loc5     // wire in new mapping...
    ;;
@@ -723,21 +719,21 @@ 1:
    or loc6 = r25,loc6          // construct PA | page properties
    mov r23 = IA64_GRANULE_SHIFT<<2
    ;;
-   ptr.i   in4,r23
+   ptr.i   in2,r23
    ;;
    mov cr.itir=r23
-   mov cr.ifa=in4
+   mov cr.ifa=in2
    ;;
    itr.i itr[r24]=loc6     // wire in new mapping...
    ;;
 
    // done, switch back to virtual and return
-   mov r16=loc7            // r16= original psr
+   mov r16=loc4            // r16= original psr
    br.call.sptk.many rp=ia64_switch_mode_virt // return to virtual mode
    mov ar.pfs = loc1
    mov rp = loc0
    ;;
-   mov ar.rsc=loc8         // restore RSE configuration
+   mov ar.rsc=loc3         // restore RSE configuration
    srlz.d              // seralize restoration of psr.l
    br.ret.sptk.many rp
 END(vmx_switch_rr7)
diff -r fec8b52b1a7f -r c94683db19e9 xen/arch/ia64/vmx/vmx_phy_mode.c
--- a/xen/arch/ia64/vmx/vmx_phy_mode.c  Tue Sep 11 19:11:02 2007 +0100
+++ b/xen/arch/ia64/vmx/vmx_phy_mode.c  Tue Sep 11 15:07:42 2007 -0600
@@ -104,8 +104,6 @@ physical_mode_init(VCPU *vcpu)
     vcpu->arch.mode_flags = GUEST_IN_PHY;
 }
 
-extern void vmx_switch_rr7(unsigned long ,shared_info_t*,void *,void *,void *);
-
 void
 physical_tlb_miss(VCPU *vcpu, u64 vadr, int type)
 {
@@ -185,8 +183,6 @@ vmx_load_all_rr(VCPU *vcpu)
                     vrrtomrr(vcpu, VMX(vcpu, vrr[VRN6])));
        ia64_dv_serialize_data();
        vmx_switch_rr7(vrrtomrr(vcpu,VMX(vcpu, vrr[VRN7])),
-                       (void *)vcpu->domain->shared_info,
-                       (void *)vcpu->arch.privregs,
                        (void *)vcpu->arch.vhpt.hash, pal_vaddr );
        ia64_set_pta(VMX(vcpu, mpta));
        vmx_ia64_set_dcr(vcpu);
diff -r fec8b52b1a7f -r c94683db19e9 xen/arch/ia64/vmx/vmx_vcpu.c
--- a/xen/arch/ia64/vmx/vmx_vcpu.c      Tue Sep 11 19:11:02 2007 +0100
+++ b/xen/arch/ia64/vmx/vmx_vcpu.c      Tue Sep 11 15:07:42 2007 -0600
@@ -165,9 +165,8 @@ IA64FAULT vmx_vcpu_set_rr(VCPU *vcpu, u6
     VMX(vcpu,vrr[reg>>VRN_SHIFT]) = val;
     switch((u64)(reg>>VRN_SHIFT)) {
     case VRN7:
-        vmx_switch_rr7(vrrtomrr(vcpu,val),vcpu->domain->shared_info,
-        (void *)vcpu->arch.privregs,
-        (void *)vcpu->arch.vhpt.hash, pal_vaddr );
+        vmx_switch_rr7(vrrtomrr(vcpu,val),
+                       (void *)vcpu->arch.vhpt.hash, pal_vaddr );
        break;
     case VRN4:
         rrval = vrrtomrr(vcpu,val);
diff -r fec8b52b1a7f -r c94683db19e9 xen/include/asm-ia64/vmx_vcpu.h
--- a/xen/include/asm-ia64/vmx_vcpu.h   Tue Sep 11 19:11:02 2007 +0100
+++ b/xen/include/asm-ia64/vmx_vcpu.h   Tue Sep 11 15:07:42 2007 -0600
@@ -114,8 +114,7 @@ extern void memwrite_v(VCPU * vcpu, thas
                        size_t s);
 extern void memwrite_p(VCPU * vcpu, u64 * src, u64 * dest, size_t s);
 extern void vcpu_load_kernel_regs(VCPU * vcpu);
-extern void vmx_switch_rr7(unsigned long, shared_info_t *, void *, void *,
-                           void *);
+extern void vmx_switch_rr7(unsigned long, void *, void *);
 
 extern void dtlb_fault(VCPU * vcpu, u64 vadr);
 extern void nested_dtlb(VCPU * vcpu);

_______________________________________________
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®.