Re: [PATCH 2/2] x86/CPU/AMD: Improve the erratum 1386 workaround

From: Maciej S. Szmigiero
Date: Thu Mar 21 2024 - 11:45:29 EST


On 21.03.2024 13:05, Borislav Petkov wrote:
From: "Borislav Petkov (AMD)" <bp@xxxxxxxxx>

Disable XSAVES only on machines which haven't loaded the microcode
revision containing the erratum fix.

This will come in handy when running archaic OSes as guests. OSes whose
brilliant programmers thought that CPUID is overrated and one should not
query it but use features directly, ala shoot first, ask questions
later... but only if you're alive after the shooting.

Signed-off-by: Borislav Petkov (AMD) <bp@xxxxxxxxx>
Cc: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
Cc: "Maciej S. Szmigiero" <maciej.szmigiero@xxxxxxxxxx>
---

Tested-by: Maciej S. Szmigiero <maciej.szmigiero@xxxxxxxxxx>

Thanks,
Maciej