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] Modify vmx fault handler

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH] Modify vmx fault handler
From: SUZUKI Kazuhiro <kaz@xxxxxxxxxxxxxx>
Date: Tue, 07 Nov 2006 13:55:25 +0900 (JST)
Delivery-date: Mon, 06 Nov 2006 20:55:42 -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
Hi all,

This patch fixes the vmx fault handler to set the fault vector number
in r19. The r19 is used to display a fault message in
dispatch_to_fault_handler().

Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Signed-off-by: Kazuhiro Suzuki <kaz@xxxxxxxxxxxxxx>

Thanks,
KAZ
diff -r 11b718eb22c9 xen/arch/ia64/vmx/vmx_ivt.S
--- a/xen/arch/ia64/vmx/vmx_ivt.S       Thu Nov 02 12:43:04 2006 -0700
+++ b/xen/arch/ia64/vmx/vmx_ivt.S       Mon Nov 06 10:17:53 2006 +0900
@@ -95,6 +95,7 @@
 
 #define VMX_FAULT(n)    \
 vmx_fault_##n:;          \
+    mov r19=n;;          \
     br.sptk.many dispatch_to_fault_handler;         \
     ;;                  \
 
@@ -106,7 +107,7 @@ vmx_fault_##n:;          \
     ;;      \
     tbit.z p6,p7=r29,IA64_PSR_VM_BIT;       \
 (p7)br.sptk.many vmx_dispatch_reflection;        \
-    VMX_FAULT(n);            \
+    br.sptk.many dispatch_to_fault_handler;      \
 
 
 GLOBAL_ENTRY(vmx_panic)
_______________________________________________
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] Modify vmx fault handler, SUZUKI Kazuhiro <=