File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -355,10 +355,15 @@ static void bsp_determine_snp(struct cpuinfo_x86 *c)
355
355
/*
356
356
* RMP table entry format is not architectural and is defined by the
357
357
* per-processor PPR. Restrict SNP support on the known CPU models
358
- * for which the RMP table entry format is currently defined for.
358
+ * for which the RMP table entry format is currently defined or for
359
+ * processors which support the architecturally defined RMPREAD
360
+ * instruction.
359
361
*/
360
362
if (!cpu_has (c , X86_FEATURE_HYPERVISOR ) &&
361
- c -> x86 >= 0x19 && snp_probe_rmptable_info ()) {
363
+ (cpu_feature_enabled (X86_FEATURE_ZEN3 ) ||
364
+ cpu_feature_enabled (X86_FEATURE_ZEN4 ) ||
365
+ cpu_feature_enabled (X86_FEATURE_RMPREAD )) &&
366
+ snp_probe_rmptable_info ()) {
362
367
cc_platform_set (CC_ATTR_HOST_SEV_SNP );
363
368
} else {
364
369
setup_clear_cpu_cap (X86_FEATURE_SEV_SNP );
You can’t perform that action at this time.
0 commit comments