Skip to content

Commit 94b827b

Browse files
jgross1ingomolnar
authored andcommitted
x86/paravirt: Clean up paravirt macros
Some paravirt macros are no longer used, delete them. Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20200815100641.26362-3-jgross@suse.com
1 parent 0cabf99 commit 94b827b

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

arch/x86/include/asm/paravirt.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -586,16 +586,9 @@ bool __raw_callee_save___native_vcpu_is_preempted(long cpu);
586586
#endif /* SMP && PARAVIRT_SPINLOCKS */
587587

588588
#ifdef CONFIG_X86_32
589-
#define PV_SAVE_REGS "pushl %ecx; pushl %edx;"
590-
#define PV_RESTORE_REGS "popl %edx; popl %ecx;"
591-
592589
/* save and restore all caller-save registers, except return value */
593590
#define PV_SAVE_ALL_CALLER_REGS "pushl %ecx;"
594591
#define PV_RESTORE_ALL_CALLER_REGS "popl %ecx;"
595-
596-
#define PV_FLAGS_ARG "0"
597-
#define PV_EXTRA_CLOBBERS
598-
#define PV_VEXTRA_CLOBBERS
599592
#else
600593
/* save and restore all caller-save registers, except return value */
601594
#define PV_SAVE_ALL_CALLER_REGS \
@@ -616,14 +609,6 @@ bool __raw_callee_save___native_vcpu_is_preempted(long cpu);
616609
"pop %rsi;" \
617610
"pop %rdx;" \
618611
"pop %rcx;"
619-
620-
/* We save some registers, but all of them, that's too much. We clobber all
621-
* caller saved registers but the argument parameter */
622-
#define PV_SAVE_REGS "pushq %%rdi;"
623-
#define PV_RESTORE_REGS "popq %%rdi;"
624-
#define PV_EXTRA_CLOBBERS EXTRA_CLOBBERS, "rcx" , "rdx", "rsi"
625-
#define PV_VEXTRA_CLOBBERS EXTRA_CLOBBERS, "rdi", "rcx" , "rdx", "rsi"
626-
#define PV_FLAGS_ARG "D"
627612
#endif
628613

629614
/*

0 commit comments

Comments
 (0)