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-ia64-devel

[Xen-ia64-devel] [PATCH 10/12] vti fault handler clean up take 2: introd

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH 10/12] vti fault handler clean up take 2: introduce VMX_SAVE_MIN_WITH_COVER_NO_PANIC for later use
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Mon, 3 Dec 2007 15:02:18 +0900
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Delivery-date: Sun, 02 Dec 2007 22:03:03 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
# HG changeset patch
# User yamahata@xxxxxxxxxxxxx
# Date 1196658772 -32400
# Node ID b9d0ace3bbb79161658a2bee119f68cbfee92479
# Parent  d2747dd30afa8e122bc74d7ae2118566a70d52ee
introduce VMX_SAVE_MIN_WITH_COVER_NO_PANIC for later use.
This is a version of VMX_SAVE_MIN_WITH_COVER which doesn't call vmx_panic
even when p6 is true.
PATCHNAME: vmx_save_min_with_cover_no_panic

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r d2747dd30afa -r b9d0ace3bbb7 xen/arch/ia64/vmx/vmx_minstate.h
--- a/xen/arch/ia64/vmx/vmx_minstate.h  Mon Dec 03 14:12:51 2007 +0900
+++ b/xen/arch/ia64/vmx/vmx_minstate.h  Mon Dec 03 14:12:52 2007 +0900
@@ -120,7 +120,7 @@
 (p6) movl out0=panic_string;            \
 (p6) br.call.spnt.few b6=panic;
 
-#define VMX_DO_SAVE_MIN(COVER,SAVE_IFS,EXTRA)                                  
         \
+#define VMX_DO_SAVE_MIN(COVER,SAVE_IFS,EXTRA,VMX_PANIC)                        
         \
     mov r27=ar.rsc;                     /* M */                                
         \
     mov r20=r1;                         /* A */                                
         \
     mov r25=ar.unat;                    /* M */                                
         \
@@ -134,10 +134,8 @@
     tbit.z p0,p15=r29,IA64_PSR_I_BIT;                                          
         \
     ;;                                                                         
         \
 (pUStk) tbit.nz.and p6,p0=r18,IA64_ISR_NI_BIT;                                 
         \
-    ;;                                                                         
         \
-    P6_BR_VMX_PANIC                                                            
         \
 (pUStk)VMX_MINSTATE_GET_CURRENT(r1);                                           
         \
-    /*    mov r21=r16;  */                                                     
         \
+    VMX_PANIC                                                                  
         \
     /* switch from user to kernel RBS: */                                      
         \
     ;;                                                                         
         \
     invala;                             /* M */                                
         \
@@ -299,9 +297,11 @@
     ;;                                  \
     st8 [r2]=r26;       /* eml_unat */
 
-#define VMX_SAVE_MIN_WITH_COVER     VMX_DO_SAVE_MIN(cover, mov r30=cr.ifs,)
-#define VMX_SAVE_MIN_WITH_COVER_R19 VMX_DO_SAVE_MIN(cover, mov r30=cr.ifs, mov 
r15=r19)
-#define VMX_SAVE_MIN                VMX_DO_SAVE_MIN(     , mov r30=r0, )
+#define VMX_SAVE_MIN_WITH_COVER     VMX_DO_SAVE_MIN(cover, mov r30=cr.ifs,, 
P6_BR_VMX_PANIC)
+#define VMX_SAVE_MIN_WITH_COVER_NO_PANIC    \
+                                    VMX_DO_SAVE_MIN(cover, mov r30=cr.ifs,, )
+#define VMX_SAVE_MIN_WITH_COVER_R19 VMX_DO_SAVE_MIN(cover, mov r30=cr.ifs, mov 
r15=r19, P6_BR_VMX_PANIC)
+#define VMX_SAVE_MIN                VMX_DO_SAVE_MIN(     , mov r30=r0,, 
P6_BR_VMX_PANIC)
 
 /*
  * Local variables:

Attachment: 16511_b9d0ace3bbb7_vmx_save_min_with_cover_no_panic.patch
Description: Text Data

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH 10/12] vti fault handler clean up take 2: introduce VMX_SAVE_MIN_WITH_COVER_NO_PANIC for later use, Isaku Yamahata <=