aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorLuck, Tony <[email protected]>2021-06-15 17:44:19 +0000
committerTony Luck <[email protected]>2021-06-18 01:23:14 +0000
commitf0a029fff4a50eb01648810a77ba1873e829fdd4 (patch)
tree4dcfcf68d9881200894ea621a81b611c9e7e354e /net/switchdev/switchdev.c
parentEDAC/igen6: Add Intel Alder Lake SoC support (diff)
downloadkernel-f0a029fff4a50eb01648810a77ba1873e829fdd4.tar.gz
kernel-f0a029fff4a50eb01648810a77ba1873e829fdd4.zip
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: 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 <[email protected]> Signed-off-by: Tony Luck <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions