]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/cpufeatures: Add "Allowed SEV Features" Feature
authorKishon Vijay Abraham I <kvijayab@amd.com>
Mon, 10 Mar 2025 20:16:02 +0000 (15:16 -0500)
committerSean Christopherson <seanjc@google.com>
Fri, 25 Apr 2025 23:19:55 +0000 (16:19 -0700)
commitf9f27c4a377a8b45d6ece79279846b4fb3e27c96
treed182fb5d2c1678d28d2c9c7935de8f598b702fcf
parent468c27ae0215c14bc62c90fa7b2ce2bc9eb4564b
x86/cpufeatures: Add "Allowed SEV Features" Feature

Add CPU feature detection for "Allowed SEV Features" to allow the
Hypervisor to enforce that SEV-ES and SEV-SNP guest VMs cannot
enable features (via SEV_FEATURES) that the Hypervisor does not
support or wish to be enabled.

Signed-off-by: Kishon Vijay Abraham I <kvijayab@amd.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@amd.com>
Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Link: https://lore.kernel.org/r/20250310201603.1217954-2-kim.phillips@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/cpufeatures.h