Skip to content

Commit f9f27c4

Browse files
kishonvijayabrahamsean-jc
authored andcommitted
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 <[email protected]> Reviewed-by: Tom Lendacky <[email protected]> Reviewed-by: Pankaj Gupta <[email protected]> Acked-by: Borislav Petkov (AMD) <[email protected]> Signed-off-by: Kim Phillips <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent 468c27a commit f9f27c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/include/asm/cpufeatures.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@
446446
#define X86_FEATURE_DEBUG_SWAP (19*32+14) /* "debug_swap" SEV-ES full debug state swap support */
447447
#define X86_FEATURE_RMPREAD (19*32+21) /* RMPREAD instruction */
448448
#define X86_FEATURE_SEGMENTED_RMP (19*32+23) /* Segmented RMP support */
449+
#define X86_FEATURE_ALLOWED_SEV_FEATURES (19*32+27) /* Allowed SEV Features */
449450
#define X86_FEATURE_SVSM (19*32+28) /* "svsm" SVSM present */
450451
#define X86_FEATURE_HV_INUSE_WR_ALLOWED (19*32+30) /* Allow Write to in-use hypervisor-owned pages */
451452

0 commit comments

Comments
 (0)