mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 06:04:44 +01:00
x86/sev: Indicate the SEV-SNP guest supports Secure AVIC
Now that Secure AVIC support is complete, make it part of to the SNP present features. Co-developed-by: Kishon Vijay Abraham I <kvijayab@amd.com> Signed-off-by: Kishon Vijay Abraham I <kvijayab@amd.com> Signed-off-by: Neeraj Upadhyay <Neeraj.Upadhyay@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Tianyu Lan <tiala@microsoft.com> Link: https://lore.kernel.org/20250828113225.209174-1-Neeraj.Upadhyay@amd.com
This commit is contained in:
parent
952aefeebb
commit
27a17e0241
1 changed files with 8 additions and 1 deletions
|
|
@ -238,13 +238,20 @@ bool sev_es_check_ghcb_fault(unsigned long address)
|
|||
MSR_AMD64_SNP_SECURE_AVIC | \
|
||||
MSR_AMD64_SNP_RESERVED_MASK)
|
||||
|
||||
#ifdef CONFIG_AMD_SECURE_AVIC
|
||||
#define SNP_FEATURE_SECURE_AVIC MSR_AMD64_SNP_SECURE_AVIC
|
||||
#else
|
||||
#define SNP_FEATURE_SECURE_AVIC 0
|
||||
#endif
|
||||
|
||||
/*
|
||||
* SNP_FEATURES_PRESENT is the mask of SNP features that are implemented
|
||||
* by the guest kernel. As and when a new feature is implemented in the
|
||||
* guest kernel, a corresponding bit should be added to the mask.
|
||||
*/
|
||||
#define SNP_FEATURES_PRESENT (MSR_AMD64_SNP_DEBUG_SWAP | \
|
||||
MSR_AMD64_SNP_SECURE_TSC)
|
||||
MSR_AMD64_SNP_SECURE_TSC | \
|
||||
SNP_FEATURE_SECURE_AVIC)
|
||||
|
||||
u64 snp_get_unsupported_features(u64 status)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue