]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: SVM,VMX: Use %rip-relative addressing to access kvm_rebooting
authorUros Bizjak <ubizjak@gmail.com>
Tue, 31 Oct 2023 07:52:40 +0000 (08:52 +0100)
committerSean Christopherson <seanjc@google.com>
Thu, 30 Nov 2023 20:51:54 +0000 (12:51 -0800)
commit15223c4f973a6120665ece9ce1ad17aec0be0e6c
tree21041c41a978dba22011ca3ccb40325d08c324a7
parentc52ffadc65e28ab461fd055e9991e8d8106a0056
KVM: SVM,VMX: Use %rip-relative addressing to access kvm_rebooting

Instruction with %rip-relative address operand is one byte shorter than
its absolute address counterpart and is also compatible with position
independent executable (-fpie) build.

No functional changes intended.

Cc: Sean Christopherson <seanjc@google.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Link: https://lore.kernel.org/r/20231031075312.47525-1-ubizjak@gmail.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/vmenter.S
arch/x86/kvm/vmx/vmenter.S