Re: [PATCH] EDAC/amd64: Do not load EDAC driver when running as a guest

From: Borislav Petkov
Date: Tue Jul 06 2021 - 01:34:15 EST


On Tue, Jul 06, 2021 at 07:08:33AM +0200, Jack Wang wrote:
> Similar to commit f0a029fff4a5 ("EDAC/Intel: Do not load EDAC driver when running as a guest")
>
> There's little to no point in loading an EDAC driver running in a guest.
>
> Add a check in each of the Intel EDAC drivers for X86_FEATURE_HYPERVISOR
> and simply return -ENODEV in the init routine.

Did you even read this sentence before leaving it in the commit message
or you simply copied the commit message of f0a029fff4a5 blindly?

Also:

https://lore.kernel.org/linux-edac/20210628172740.245689-1-Smita.KoralahalliChannabasappa@xxxxxxx/

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette