Skip to content

Commit 5def7a4

Browse files
jgross1KAGA-KOKO
authored andcommitted
x86/paravirt: Remove unused paravirt bits
The macros ENABLE_INTERRUPTS_SYSEXIT, GET_CR0_INTO_EAX and PARAVIRT_ADJUST_EXCEPTION_FRAME are used nowhere. Remove their definitions. Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: xen-devel@lists.xenproject.org Cc: virtualization@lists.linux-foundation.org Cc: akataria@vmware.com Cc: rusty@rustcorp.com.au Cc: boris.ostrovsky@oracle.com Cc: hpa@zytor.com Link: https://lkml.kernel.org/r/20180828074026.820-10-jgross@suse.com
1 parent 5c83511 commit 5def7a4

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

arch/x86/include/asm/irqflags.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ static inline notrace unsigned long arch_local_irq_save(void)
135135
*/
136136
#define SWAPGS_UNSAFE_STACK swapgs
137137

138-
#define PARAVIRT_ADJUST_EXCEPTION_FRAME /* */
139-
140138
#define INTERRUPT_RETURN jmp native_iret
141139
#define USERGS_SYSRET64 \
142140
swapgs; \
@@ -150,8 +148,6 @@ static inline notrace unsigned long arch_local_irq_save(void)
150148
#endif
151149
#else
152150
#define INTERRUPT_RETURN iret
153-
#define ENABLE_INTERRUPTS_SYSEXIT sti; sysexit
154-
#define GET_CR0_INTO_EAX movl %cr0, %eax
155151
#endif
156152

157153

arch/x86/include/asm/paravirt.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -887,14 +887,7 @@ extern void default_banner(void);
887887
call PARA_INDIRECT(pv_ops+PV_IRQ_irq_enable); \
888888
PV_RESTORE_REGS(clobbers | CLBR_CALLEE_SAVE);)
889889

890-
#ifdef CONFIG_X86_32
891-
#define GET_CR0_INTO_EAX \
892-
push %ecx; push %edx; \
893-
ANNOTATE_RETPOLINE_SAFE; \
894-
call PARA_INDIRECT(pv_ops+PV_CPU_read_cr0); \
895-
pop %edx; pop %ecx
896-
#else /* !CONFIG_X86_32 */
897-
890+
#ifdef CONFIG_X86_64
898891
/*
899892
* If swapgs is used while the userspace stack is still current,
900893
* there's no way to call a pvop. The PV replacement *must* be

arch/x86/kernel/asm-offsets.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ void common(void) {
6969
OFFSET(PV_IRQ_irq_disable, paravirt_patch_template, irq.irq_disable);
7070
OFFSET(PV_IRQ_irq_enable, paravirt_patch_template, irq.irq_enable);
7171
OFFSET(PV_CPU_iret, paravirt_patch_template, cpu.iret);
72-
OFFSET(PV_CPU_read_cr0, paravirt_patch_template, cpu.read_cr0);
7372
OFFSET(PV_MMU_read_cr2, paravirt_patch_template, mmu.read_cr2);
7473
#endif
7574

0 commit comments

Comments
 (0)