[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [XEN] x86-64: eliminate __GUEST_[CDS]S*
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Node ID 3dfb2eef0f054f4c1d595178e8590f7e55f7ea42 # Parent c6efd6c2feaa3ec851685cc872a1ce989d998220 [XEN] x86-64: eliminate __GUEST_[CDS]S* These duplicate the FLAT_KERNEL_* values also used for x86-32. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx> --- xen/arch/x86/domain.c | 4 ++-- xen/arch/x86/x86_64/entry.S | 8 ++++---- xen/arch/x86/x86_64/traps.c | 8 ++++---- xen/include/asm-x86/config.h | 6 ------ 4 files changed, 10 insertions(+), 16 deletions(-) diff -r c6efd6c2feaa -r 3dfb2eef0f05 xen/arch/x86/domain.c --- a/xen/arch/x86/domain.c Mon Nov 13 13:37:54 2006 +0000 +++ b/xen/arch/x86/domain.c Mon Nov 13 13:39:16 2006 +0000 @@ -587,9 +587,9 @@ static void load_segments(struct vcpu *n regs->entry_vector = TRAP_syscall; regs->rflags &= ~(X86_EFLAGS_AC|X86_EFLAGS_VM|X86_EFLAGS_RF| X86_EFLAGS_NT|X86_EFLAGS_TF); - regs->ss = __GUEST_SS; + regs->ss = FLAT_KERNEL_SS; regs->rsp = (unsigned long)(rsp-11); - regs->cs = __GUEST_CS; + regs->cs = FLAT_KERNEL_CS; regs->rip = nctxt->failsafe_callback_eip; } } diff -r c6efd6c2feaa -r 3dfb2eef0f05 xen/arch/x86/x86_64/entry.S --- a/xen/arch/x86/x86_64/entry.S Mon Nov 13 13:37:54 2006 +0000 +++ b/xen/arch/x86/x86_64/entry.S Mon Nov 13 13:39:16 2006 +0000 @@ -45,7 +45,7 @@ restore_all_guest: addq $8,%rsp popq %rcx # RIP popq %r11 # CS - cmpw $__GUEST_CS32,%r11 + cmpw $FLAT_KERNEL_CS32,%r11 popq %r11 # RFLAGS popq %rsp # RSP je 1f @@ -119,7 +119,7 @@ restore_all_xen: ALIGN ENTRY(syscall_enter) sti - movl $__GUEST_SS,24(%rsp) + movl $FLAT_KERNEL_SS,24(%rsp) pushq %rcx pushq $0 movl $TRAP_syscall,4(%rsp) @@ -298,9 +298,9 @@ FLT13: movq %rax,(%rsi) movl $TRAP_syscall,UREGS_entry_vector+8(%rsp) andl $~(X86_EFLAGS_AC|X86_EFLAGS_VM|X86_EFLAGS_RF|\ X86_EFLAGS_NT|X86_EFLAGS_TF),UREGS_eflags+8(%rsp) - movq $__GUEST_SS,UREGS_ss+8(%rsp) + movq $FLAT_KERNEL_SS,UREGS_ss+8(%rsp) movq %rsi,UREGS_rsp+8(%rsp) - movq $__GUEST_CS,UREGS_cs+8(%rsp) + movq $FLAT_KERNEL_CS,UREGS_cs+8(%rsp) movq TRAPBOUNCE_eip(%rdx),%rax testq %rax,%rax jz domain_crash_synchronous diff -r c6efd6c2feaa -r 3dfb2eef0f05 xen/arch/x86/x86_64/traps.c --- a/xen/arch/x86/x86_64/traps.c Mon Nov 13 13:37:54 2006 +0000 +++ b/xen/arch/x86/x86_64/traps.c Mon Nov 13 13:39:16 2006 +0000 @@ -290,9 +290,9 @@ void __init percpu_traps_init(void) stack[14] = 0x41; stack[15] = 0x53; - /* pushq $__GUEST_CS64 */ + /* pushq $FLAT_KERNEL_CS64 */ stack[16] = 0x68; - *(u32 *)&stack[17] = __GUEST_CS64; + *(u32 *)&stack[17] = FLAT_KERNEL_CS64; /* jmp syscall_enter */ stack[21] = 0xe9; @@ -322,9 +322,9 @@ void __init percpu_traps_init(void) stack[14] = 0x41; stack[15] = 0x53; - /* pushq $__GUEST_CS32 */ + /* pushq $FLAT_KERNEL_CS32 */ stack[16] = 0x68; - *(u32 *)&stack[17] = __GUEST_CS32; + *(u32 *)&stack[17] = FLAT_KERNEL_CS32; /* jmp syscall_enter */ stack[21] = 0xe9; diff -r c6efd6c2feaa -r 3dfb2eef0f05 xen/include/asm-x86/config.h --- a/xen/include/asm-x86/config.h Mon Nov 13 13:37:54 2006 +0000 +++ b/xen/include/asm-x86/config.h Mon Nov 13 13:39:16 2006 +0000 @@ -194,12 +194,6 @@ extern unsigned long _end; /* standard E #define __HYPERVISOR_DS32 0xe018 #define __HYPERVISOR_DS __HYPERVISOR_DS64 -#define __GUEST_CS64 0xe033 -#define __GUEST_CS32 0xe023 -#define __GUEST_CS __GUEST_CS64 -#define __GUEST_DS 0x0000 -#define __GUEST_SS 0xe02b - /* For generic assembly code: use macros to define operation/operand sizes. */ #define __OS "q" /* Operation Suffix */ #define __OP "r" /* Operand Prefix */ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |