]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86: Advertise AMD_IBPB_RET to userspace
authorJim Mattson <jmattson@google.com>
Fri, 11 Oct 2024 21:43:52 +0000 (14:43 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 1 Nov 2024 16:22:19 +0000 (09:22 -0700)
commit71dd5d5300d228fbfd816a620250a62bfacdd902
tree3afcceee8fb911ce3bb006844aa92dc5a659e997
parent3ffe874ea3eb4c674334c92303a72c76a1141c42
KVM: x86: Advertise AMD_IBPB_RET to userspace

This is an inherent feature of IA32_PRED_CMD[0], so it is trivially
virtualizable (as long as IA32_PRED_CMD[0] is virtualized).

Suggested-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20241011214353.1625057-4-jmattson@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/cpuid.c