linux/drivers/platform/x86/intel/uncore-frequency
Srinivas Pandruvada 8d75f7b4a3 platform/x86: intel-uncore-freq: Prevent driver loading in guests
Loading this driver in guests results in unchecked MSR access error for
MSR 0x620.

There is no use of reading and modifying package/die scope uncore MSRs
in guests. So check for CPU feature X86_FEATURE_HYPERVISOR to prevent
loading of this driver in guests.

Fixes: dbce412a77 ("platform/x86/intel-uncore-freq: Split common and enumeration part")
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=215870
Suggested-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20220427100304.2562990-1-srinivas.pandruvada@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-04-27 16:55:54 +02:00
..
Kconfig
Makefile platform/x86/intel-uncore-freq: Split common and enumeration part 2022-02-17 13:20:30 +01:00
uncore-frequency-common.c platform/x86: intel-uncore-freq: fix uncore_freq_common_init() error codes 2022-03-08 16:33:23 +01:00
uncore-frequency-common.h platform/x86/intel-uncore-freq: Split common and enumeration part 2022-02-17 13:20:30 +01:00
uncore-frequency.c platform/x86: intel-uncore-freq: Prevent driver loading in guests 2022-04-27 16:55:54 +02:00