Luck, Tony f5a90d44a1 EDAC/Intel: Do not load EDAC driver when running as a guest
[ Upstream commit f0a029fff4a50eb01648810a77ba1873e829fdd4 ]

There's little to no point in loading an EDAC driver running in a guest:
1) The CPU model reported by CPUID may not represent actual h/w
2) The hypervisor likely does not pass in access to memory controller devices
3) Hypervisors generally do not pass corrected error details to guests

Add a check in each of the Intel EDAC drivers for X86_FEATURE_HYPERVISOR
and simply return -ENODEV in the init routine.

Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20210615174419.GA1087688@agluck-desk2.amr.corp.intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-14 16:56:00 +02:00
..
2017-07-17 13:42:48 +02:00
2020-02-19 21:00:27 +01:00
2017-07-17 13:42:48 +02:00
2020-10-12 13:26:49 -07:00
2017-07-17 13:42:48 +02:00
2017-07-17 13:42:48 +02:00
2011-04-19 00:23:22 +02:00
2017-07-17 13:42:48 +02:00