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

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.