diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/paravirt.h | 9 | ||||
-rw-r--r-- | include/asm-x86/processor.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-x86/paravirt.h b/include/asm-x86/paravirt.h index 3286a0c63b42..3dc223da200b 100644 --- a/include/asm-x86/paravirt.h +++ b/include/asm-x86/paravirt.h | |||
@@ -189,6 +189,10 @@ struct pv_irq_ops { | |||
189 | void (*irq_enable)(void); | 189 | void (*irq_enable)(void); |
190 | void (*safe_halt)(void); | 190 | void (*safe_halt)(void); |
191 | void (*halt)(void); | 191 | void (*halt)(void); |
192 | |||
193 | #ifdef CONFIG_X86_64 | ||
194 | void (*adjust_exception_frame)(void); | ||
195 | #endif | ||
192 | }; | 196 | }; |
193 | 197 | ||
194 | struct pv_apic_ops { | 198 | struct pv_apic_ops { |
@@ -1544,6 +1548,11 @@ static inline unsigned long __raw_local_irq_save(void) | |||
1544 | movq %rax, %rcx; \ | 1548 | movq %rax, %rcx; \ |
1545 | xorq %rax, %rax; | 1549 | xorq %rax, %rax; |
1546 | 1550 | ||
1551 | #define PARAVIRT_ADJUST_EXCEPTION_FRAME \ | ||
1552 | PARA_SITE(PARA_PATCH(pv_irq_ops, PV_IRQ_adjust_exception_frame), \ | ||
1553 | CLBR_NONE, \ | ||
1554 | call PARA_INDIRECT(pv_irq_ops+PV_IRQ_adjust_exception_frame)) | ||
1555 | |||
1547 | #define USERGS_SYSRET64 \ | 1556 | #define USERGS_SYSRET64 \ |
1548 | PARA_SITE(PARA_PATCH(pv_cpu_ops, PV_CPU_usergs_sysret64), \ | 1557 | PARA_SITE(PARA_PATCH(pv_cpu_ops, PV_CPU_usergs_sysret64), \ |
1549 | CLBR_NONE, \ | 1558 | CLBR_NONE, \ |
diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h index 12b5ede14c7a..df2459f5ebbb 100644 --- a/include/asm-x86/processor.h +++ b/include/asm-x86/processor.h | |||
@@ -532,6 +532,8 @@ static inline void load_sp0(struct tss_struct *tss, | |||
532 | 532 | ||
533 | #define set_iopl_mask native_set_iopl_mask | 533 | #define set_iopl_mask native_set_iopl_mask |
534 | #define SWAPGS swapgs | 534 | #define SWAPGS swapgs |
535 | |||
536 | #define PARAVIRT_ADJUST_EXCEPTION_FRAME /* */ | ||
535 | #endif /* CONFIG_PARAVIRT */ | 537 | #endif /* CONFIG_PARAVIRT */ |
536 | 538 | ||
537 | /* | 539 | /* |