We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 415a554 + ec75530 commit 050e761Copy full SHA for 050e761
arch/x86/kernel/cpu/amd.c
@@ -912,6 +912,17 @@ static void init_amd_zen4(struct cpuinfo_x86 *c)
912
{
913
if (!cpu_has(c, X86_FEATURE_HYPERVISOR))
914
msr_set_bit(MSR_ZEN4_BP_CFG, MSR_ZEN4_BP_CFG_SHARED_BTB_FIX_BIT);
915
+
916
+ /*
917
+ * These Zen4 SoCs advertise support for virtualized VMLOAD/VMSAVE
918
+ * in some BIOS versions but they can lead to random host reboots.
919
+ */
920
+ switch (c->x86_model) {
921
+ case 0x18 ... 0x1f:
922
+ case 0x60 ... 0x7f:
923
+ clear_cpu_cap(c, X86_FEATURE_V_VMSAVE_VMLOAD);
924
+ break;
925
+ }
926
}
927
928
static void init_amd_zen5(struct cpuinfo_x86 *c)
0 commit comments