x86/sev: Add SEV-SNP guest feature negotiation support
[platform/kernel/linux-starfive.git] / arch / x86 / boot / compressed / ident_map_64.c
index d4a314c..321a501 100644 (file)
@@ -180,6 +180,12 @@ void initialize_identity_maps(void *rmode)
 
        /* 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,