aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/entry_64.S4
-rw-r--r--arch/x86/kernel/paravirt.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S
index 70fe13a1c41d..07d69f262337 100644
--- a/arch/x86/kernel/entry_64.S
+++ b/arch/x86/kernel/entry_64.S
@@ -944,7 +944,7 @@ KPROBE_END(error_entry)
944 944
945 /* Reload gs selector with exception handling */ 945 /* Reload gs selector with exception handling */
946 /* edi: new selector */ 946 /* edi: new selector */
947ENTRY(load_gs_index) 947ENTRY(native_load_gs_index)
948 CFI_STARTPROC 948 CFI_STARTPROC
949 pushf 949 pushf
950 CFI_ADJUST_CFA_OFFSET 8 950 CFI_ADJUST_CFA_OFFSET 8
@@ -958,7 +958,7 @@ gs_change:
958 CFI_ADJUST_CFA_OFFSET -8 958 CFI_ADJUST_CFA_OFFSET -8
959 ret 959 ret
960 CFI_ENDPROC 960 CFI_ENDPROC
961ENDPROC(load_gs_index) 961ENDPROC(native_load_gs_index)
962 962
963 .section __ex_table,"a" 963 .section __ex_table,"a"
964 .align 8 964 .align 8
diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c
index b20c369cb89d..27819e3e4245 100644
--- a/arch/x86/kernel/paravirt.c
+++ b/arch/x86/kernel/paravirt.c
@@ -329,6 +329,9 @@ struct pv_cpu_ops pv_cpu_ops = {
329 .store_idt = native_store_idt, 329 .store_idt = native_store_idt,
330 .store_tr = native_store_tr, 330 .store_tr = native_store_tr,
331 .load_tls = native_load_tls, 331 .load_tls = native_load_tls,
332#ifdef CONFIG_X86_64
333 .load_gs_index = native_load_gs_index,
334#endif
332 .write_ldt_entry = native_write_ldt_entry, 335 .write_ldt_entry = native_write_ldt_entry,
333 .write_gdt_entry = native_write_gdt_entry, 336 .write_gdt_entry = native_write_gdt_entry,
334 .write_idt_entry = native_write_idt_entry, 337 .write_idt_entry = native_write_idt_entry,