]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/bugs: Decouple ALTERNATIVE usage from VERW macro definition
authorSean Christopherson <seanjc@google.com>
Thu, 13 Nov 2025 23:37:40 +0000 (15:37 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 19 Nov 2025 00:22:41 +0000 (16:22 -0800)
commitafb99ffbd5825bfbc88e8052bc5514e6ebdfec5e
tree36f3e5c296fb8a702c833b0ffaa7ce02f978aaee
parentaba7de6088be5a3b5d766c5f7fdb5d0790ff8f13
x86/bugs: Decouple ALTERNATIVE usage from VERW macro definition

Decouple the use of ALTERNATIVE from the encoding of VERW to clear CPU
buffers so that KVM can use ALTERNATIVE_2 to handle "always clear buffers"
and "clear if guest can access host MMIO" in a single statement.

No functional change intended.

Reviewed-by: Brendan Jackman <jackmanb@google.com>
Reviewed-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Link: https://patch.msgid.link/20251113233746.1703361-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/nospec-branch.h