diff options
author | Emmanuel Ackaouy <ack@xensource.com> | 2007-01-05 17:32:00 +0000 |
---|---|---|
committer | Emmanuel Ackaouy <ack@xensource.com> | 2007-01-05 17:32:00 +0000 |
commit | 8f2348c03c7ac1a1f6baa91590eb0b5938bf727b (patch) | |
tree | 29365b97b287c3c0c3c6d4912264646e24bc34df /xen/include/asm-x86/ldt.h | |
parent | 1f2d77695e961365537c7ef9809c5f494991bc79 (diff) | |
download | xen-8f2348c03c7ac1a1f6baa91590eb0b5938bf727b.tar.gz xen-8f2348c03c7ac1a1f6baa91590eb0b5938bf727b.tar.bz2 xen-8f2348c03c7ac1a1f6baa91590eb0b5938bf727b.zip |
Introduce _DOMF_compat and infrastructure as well as several conditionals
dealing with operations that need to distinguish between native and
compatibility mode guests.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/include/asm-x86/ldt.h')
-rw-r--r-- | xen/include/asm-x86/ldt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/include/asm-x86/ldt.h b/xen/include/asm-x86/ldt.h index 107e67720b..27f4750558 100644 --- a/xen/include/asm-x86/ldt.h +++ b/xen/include/asm-x86/ldt.h @@ -17,7 +17,8 @@ static inline void load_LDT(struct vcpu *v) else { cpu = smp_processor_id(); - desc = gdt_table + __LDT(cpu) - FIRST_RESERVED_GDT_ENTRY; + desc = (!IS_COMPAT(v->domain) ? gdt_table : compat_gdt_table) + + __LDT(cpu) - FIRST_RESERVED_GDT_ENTRY; _set_tssldt_desc(desc, LDT_VIRT_START(v), ents*8-1, 2); __asm__ __volatile__ ( "lldt %%ax" : : "a" (__LDT(cpu)<<3) ); } |