aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/paravirt.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-07-23 17:21:18 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-24 06:30:06 -0400
commit38ffbe66d59051fd9cfcfc8545f164700e2fa3bc (patch)
tree37e76db49cc86b3da550a62f36d101c7269d262e /arch/x86/kernel/paravirt.c
parent338b9bb3adac0d2c5a1e180491d9b001d624c402 (diff)
x86/paravirt/xen: properly fill out the ldt ops
LTP testing showed that Xen does not properly implement sys_modify_ldt(). This patch does the final little bits needed to make the ldt work properly. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/paravirt.c')
-rw-r--r--arch/x86/kernel/paravirt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c
index 94da4d52d798..d8f2277be5a0 100644
--- a/arch/x86/kernel/paravirt.c
+++ b/arch/x86/kernel/paravirt.c
@@ -348,6 +348,10 @@ struct pv_cpu_ops pv_cpu_ops = {
348 .write_ldt_entry = native_write_ldt_entry, 348 .write_ldt_entry = native_write_ldt_entry,
349 .write_gdt_entry = native_write_gdt_entry, 349 .write_gdt_entry = native_write_gdt_entry,
350 .write_idt_entry = native_write_idt_entry, 350 .write_idt_entry = native_write_idt_entry,
351
352 .alloc_ldt = paravirt_nop,
353 .free_ldt = paravirt_nop,
354
351 .load_sp0 = native_load_sp0, 355 .load_sp0 = native_load_sp0,
352 356
353#if defined(CONFIG_X86_32) || defined(CONFIG_IA32_EMULATION) 357#if defined(CONFIG_X86_32) || defined(CONFIG_IA32_EMULATION)