linux-stable/arch
Sean Christopherson 789a5b2d85 x86/virt: Drop unnecessary check on extended CPUID level in cpu_has_svm()
[ Upstream commit 5df8ecfe36 ]

Drop the explicit check on the extended CPUID level in cpu_has_svm(), the
kernel's cached CPUID info will leave the entire SVM leaf unset if said
leaf is not supported by hardware.  Prior to using cached information,
the check was needed to avoid false positives due to Intel's rather crazy
CPUID behavior of returning the values of the maximum supported leaf if
the specified leaf is unsupported.

Fixes: 682a810887 ("x86/kvm/svm: Simplify cpu_has_svm()")
Link: https://lore.kernel.org/r/20230721201859.2307736-13-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-23 10:47:01 +02:00
..
alpha alpha: remove __init annotation from exported page_is_ram() 2023-08-16 18:10:55 +02:00
arc arc: iounmap() arg is volatile 2022-11-03 23:50:54 +09:00
arm ARM: OMAP2+: Fix -Warray-bounds warning in _pwrdm_state_switch() 2023-09-23 10:46:59 +02:00
arm64 arm64: Add missing Set/Way CMO encodings 2023-06-28 10:14:20 +02:00
blackfin
c6x
cris
frv
h8300 h8300: Fix build errors from do_exit() to make_task_dead() transition 2023-02-06 07:46:34 +01:00
hexagon hexagon: Fix function name in die() 2023-02-06 07:46:34 +01:00
ia64 treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
m32r
m68k m68k: Fix invalid .section syntax 2023-09-23 10:46:53 +02:00
metag
microblaze exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
mips mmc: au1xmmc: force non-modular build and remove symbol_get usage 2023-09-23 10:46:52 +02:00
mn10300
nios2 nios2: dts: Fix tse_mac "max-frame-size" property 2023-06-21 15:38:58 +02:00
openrisc exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
parisc parisc: led: Fix LAN receive and transmit LEDs 2023-09-23 10:47:01 +02:00
powerpc powerpc/iommu: Fix notifiers being shared by PCI and VIO buses 2023-09-23 10:46:57 +02:00
riscv/include/uapi/asm riscv: Bump COMMAND_LINE_SIZE value to 1024 2023-04-05 11:14:16 +02:00
s390 treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
score
sh sh: dma: Fix DMA channel offset calculation 2023-08-11 11:33:41 +02:00
sparc sparc: fix up arch_cpu_finalize_init() build breakage. 2023-08-16 18:10:53 +02:00
tile
um um/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:48:24 +02:00
unicore32 linux/const.h: move UL() macro to include/linux/const.h 2022-11-10 15:47:24 +01:00
x86 x86/virt: Drop unnecessary check on extended CPUID level in cpu_has_svm() 2023-09-23 10:47:01 +02:00
xtensa xtensa: ISS: fix call to split_if_spec 2023-08-11 11:33:46 +02:00
.gitignore
Kconfig init: Provide arch_cpu_finalize_init() 2023-08-08 19:48:23 +02:00