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] [IA64] Fix RSE issue in VTI-domain

# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 70b7d520bda462b153344047fa9caf13345bb476
# Parent  3ab5ab4d6d75a7c585fd90814da92977ecbf175e
[IA64] Fix RSE issue in VTI-domain

Signed-off-by: Anthony Xu <anthony.xu@xxxxxxxxx>
---
 xen/arch/ia64/vmx/vmx_entry.S     |   11 ++++++++++-
 xen/arch/ia64/vmx/vmx_interrupt.c |    6 +++++-
 xen/arch/ia64/vmx/vmx_ivt.S       |    2 ++
 3 files changed, 17 insertions(+), 2 deletions(-)

diff -r 3ab5ab4d6d75 -r 70b7d520bda4 xen/arch/ia64/vmx/vmx_entry.S
--- a/xen/arch/ia64/vmx/vmx_entry.S     Mon May 08 12:47:54 2006 -0600
+++ b/xen/arch/ia64/vmx/vmx_entry.S     Mon May 08 12:49:53 2006 -0600
@@ -315,7 +315,9 @@ vmx_dorfirfi_back:
     adds r18=IA64_VPD_BASE_OFFSET,r21
     ;;
     ld8 r18=[r18]   //vpd
-    ;;
+    adds r17=IA64_VCPU_ISR_OFFSET,r21
+    ;;
+    ld8 r17=[r17]
     adds r19=VPD(VPSR),r18
     ;;
     ld8 r19=[r19]        //vpsr
@@ -337,6 +339,7 @@ GLOBAL_ENTRY(ia64_vmm_entry)
 /*
  *  must be at bank 0
  *  parameter:
+ *  r17:cr.isr
  *  r18:vpd
  *  r19:vpsr
  *  r20:__vsa_base
@@ -348,8 +351,14 @@ GLOBAL_ENTRY(ia64_vmm_entry)
     tbit.nz p1,p2 = r19,IA64_PSR_IC_BIT        // p1=vpsr.ic
     ;;
     (p1) add r29=PAL_VPS_RESUME_NORMAL,r20
+    (p1) br.sptk.many ia64_vmm_entry_out
+    ;;
+    tbit.nz p1,p2 = r17,IA64_ISR_IR_BIT                //p1=cr.isr.ir
+    ;;
+    (p1) add r29=PAL_VPS_RESUME_NORMAL,r20
     (p2) add r29=PAL_VPS_RESUME_HANDLER,r20
     ;;
+ia64_vmm_entry_out:    
     mov pr=r23,-2
     mov b0=r29
     ;;
diff -r 3ab5ab4d6d75 -r 70b7d520bda4 xen/arch/ia64/vmx/vmx_interrupt.c
--- a/xen/arch/ia64/vmx/vmx_interrupt.c Mon May 08 12:47:54 2006 -0600
+++ b/xen/arch/ia64/vmx/vmx_interrupt.c Mon May 08 12:49:53 2006 -0600
@@ -91,8 +91,12 @@ inject_guest_interruption(VCPU *vcpu, u6
 {
     u64 viva;
     REGS *regs;
+    ISR pt_isr;
     regs=vcpu_regs(vcpu);
-
+    // clear cr.isr.ri 
+    pt_isr.val = VMX(vcpu,cr_isr);
+    pt_isr.ir = 0;
+    VMX(vcpu,cr_isr) = pt_isr.val;
     collect_interruption(vcpu);
 
     vmx_vcpu_get_iva(vcpu,&viva);
diff -r 3ab5ab4d6d75 -r 70b7d520bda4 xen/arch/ia64/vmx/vmx_ivt.S
--- a/xen/arch/ia64/vmx/vmx_ivt.S       Mon May 08 12:47:54 2006 -0600
+++ b/xen/arch/ia64/vmx/vmx_ivt.S       Mon May 08 12:49:53 2006 -0600
@@ -172,6 +172,7 @@ vmx_itlb_loop:
     ;;
     srlz.i
     ;;
+    mov r17=cr.isr
     mov r23=r31
     mov r22=b0
     adds r16=IA64_VPD_BASE_OFFSET,r21
@@ -237,6 +238,7 @@ vmx_dtlb_loop:
     ;;
     srlz.d;
     ;;
+    mov r17=cr.isr
     mov r23=r31
     mov r22=b0
     adds r16=IA64_VPD_BASE_OFFSET,r21

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [IA64] Fix RSE issue in VTI-domain, Xen patchbot-unstable <=