]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: VMX: Drop obsolete branch hint prefixes from inline asm
authorUros Bizjak <ubizjak@gmail.com>
Wed, 11 Feb 2026 10:28:49 +0000 (11:28 +0100)
committerSean Christopherson <seanjc@google.com>
Mon, 2 Mar 2026 22:32:57 +0000 (14:32 -0800)
commit6dad59124e1536a38e0f177d45418ebe1e0eea1f
treeb3c0b647f8b0e34bd44d1908b9c3a6ed91fa0da1
parent11439c4635edd669ae435eec308f4ab8a0804808
KVM: VMX: Drop obsolete branch hint prefixes from inline asm

Remove explicit branch hint prefixes (.byte 0x2e / 0x3e) from VMX
inline assembly sequences.

These prefixes (CS/DS segment overrides used as branch hints on
very old x86 CPUs) have been ignored by modern processors for a
long time. Keeping them provides no measurable benefit and only
enlarges the generated code.

No functional change intended.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Thomas Gleixner <tglx@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Link: https://patch.msgid.link/20260211102928.100944-1-ubizjak@gmail.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/vmx_ops.h