Skip to content

Commit

Permalink
KVM: VMX: Remove unnecessary exception trampoline in vmx_vmenter
Browse files Browse the repository at this point in the history
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 <sean.j.christopherson@intel.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Message-Id: <20200406202108.74300-1-ubizjak@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Uros Bizjak authored and Paolo Bonzini committed Apr 7, 2020
1 parent 199cd1d commit da7e423
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions arch/x86/kvm/vmx/vmenter.S
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,8 @@ SYM_FUNC_START(vmx_vmenter)
ret
4: ud2

.pushsection .fixup, "ax"
5: jmp 3b
.popsection

_ASM_EXTABLE(1b, 5b)
_ASM_EXTABLE(2b, 5b)
_ASM_EXTABLE(1b, 3b)
_ASM_EXTABLE(2b, 3b)

SYM_FUNC_END(vmx_vmenter)

Expand Down

0 comments on commit da7e423

Please sign in to comment.