Skip to content

Commit da7e423

Browse files
ubizjakbonzini
authored andcommitted
KVM: VMX: Remove unnecessary exception trampoline in vmx_vmenter
The exception trampoline in .fixup section is not needed, the exception handling code can jump directly to the label in the .text section. Changes since v1: - Fix commit message. Cc: Sean Christopherson <[email protected]> Cc: Paolo Bonzini <[email protected]> Reviewed-by: Sean Christopherson <[email protected]> Signed-off-by: Uros Bizjak <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 199cd1d commit da7e423

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

arch/x86/kvm/vmx/vmenter.S

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,8 @@ SYM_FUNC_START(vmx_vmenter)
5858
ret
5959
4: ud2
6060

61-
.pushsection .fixup, "ax"
62-
5: jmp 3b
63-
.popsection
64-
65-
_ASM_EXTABLE(1b, 5b)
66-
_ASM_EXTABLE(2b, 5b)
61+
_ASM_EXTABLE(1b, 3b)
62+
_ASM_EXTABLE(2b, 3b)
6763

6864
SYM_FUNC_END(vmx_vmenter)
6965

0 commit comments

Comments
 (0)