projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x86/sev: Add SEV-SNP guest feature negotiation support
[platform/kernel/linux-starfive.git]
/
arch
/
x86
/
boot
/
compressed
/
ident_map_64.c
diff --git
a/arch/x86/boot/compressed/ident_map_64.c
b/arch/x86/boot/compressed/ident_map_64.c
index
d4a314c
..
321a501
100644
(file)
--- a/
arch/x86/boot/compressed/ident_map_64.c
+++ b/
arch/x86/boot/compressed/ident_map_64.c
@@
-180,6
+180,12
@@
void initialize_identity_maps(void *rmode)
/* Load the new page-table. */
write_cr3(top_level_pgt);
/* Load the new page-table. */
write_cr3(top_level_pgt);
+
+ /*
+ * Now that the required page table mappings are established and a
+ * GHCB can be used, check for SNP guest/HV feature compatibility.
+ */
+ snp_check_features();
}
static pte_t *split_large_pmd(struct x86_mapping_info *info,
}
static pte_t *split_large_pmd(struct x86_mapping_info *info,