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

[Xen-devel] [PATCH] fix x86_64 ia32 userspace support

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] fix x86_64 ia32 userspace support
From: Chris Wright <chrisw@xxxxxxxxxxxx>
Date: Tue, 7 Feb 2006 00:46:19 -0800
Delivery-date: Tue, 07 Feb 2006 11:05:45 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
Running ia32 binaries causes double fault on x86_64.  We used to have
USE_INT80 defined, re-enabling fixes my systems.

ffffffff8011caa0 T ia32_sysenter_target

(XEN) CPU:    0
(XEN) RIP:    0010:[<ffffffff8011caa0>] ???
(XEN) RFLAGS: 0000000000010046   CONTEXT: hypervisor
(XEN) rax: 0000000000000021   rbx: 0000000000c201ae   rcx: 0000000000000000
(XEN) rdx: 0000000000c22108   rsi: 0000000000c22008   rdi: 0000000000000002
(XEN) rbp: 00000000ffffc4ac   rsp: 0000000000000000   r8: 0000000000000000
(XEN) r9:  0000000000000000   r10: 0000000000000000   r11: 0000000000000000
(XEN) r12: 0000000000000000   r13: 0000000000000000   r14: 0000000000000000
(XEN) r15: 0000000000000000   cr0: 000000008005003b   cr3: 000000004b3a7000
(XEN) Xen stack trace from rsp=0000000000000000:
(XEN)    Stack empty.
(XEN) Xen call trace:
(XEN)    [<ffffffff8011caa0>] ???
(XEN)
(XEN) ************************************
(XEN) CPU0 FATAL TRAP 8 (double fault), ERROR_CODE 0000, IN INTERRUPT CONTEXT.
(XEN) System shutting down -- need manual reset.
(XEN) ************************************

Signed-off-by: Chris Wright <chrisw@xxxxxxxxxxxx>
---

diff -r 0defafc42af4 linux-2.6-xen-sparse/arch/x86_64/ia32/syscall32-xen.c
--- a/linux-2.6-xen-sparse/arch/x86_64/ia32/syscall32-xen.c     Mon Feb  6 
17:04:45 2006 +0100
+++ b/linux-2.6-xen-sparse/arch/x86_64/ia32/syscall32-xen.c     Tue Feb  7 
02:37:25 2006 -0500
@@ -14,6 +14,7 @@
 #include <asm/tlbflush.h>
 #include <asm/ia32_unistd.h>
 
+#define USE_INT80
 #ifdef USE_INT80
 extern unsigned char syscall32_int80[], syscall32_int80_end[];
 #endif
diff -r 0defafc42af4 
linux-2.6-xen-sparse/arch/x86_64/ia32/syscall32_syscall-xen.S
--- a/linux-2.6-xen-sparse/arch/x86_64/ia32/syscall32_syscall-xen.S     Mon Feb 
 6 17:04:45 2006 +0100
+++ b/linux-2.6-xen-sparse/arch/x86_64/ia32/syscall32_syscall-xen.S     Tue Feb 
 7 02:37:25 2006 -0500
@@ -2,6 +2,7 @@
 
        .section ".init.data","aw"
 
+#define USE_INT80
 #ifdef USE_INT80
 
        .globl syscall32_int80

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

<Prev in Thread] Current Thread [Next in Thread>