linux-stable/arch/x86
Paolo Bonzini dbf1ef2dc0 KVM: x86: introduce is_pae_paging
[ Upstream commit bf03d4f933 ]

Checking for 32-bit PAE is quite common around code that fiddles with
the PDPTRs.  Add a function to compress all checks into a single
invocation.

Moving to the common helper also fixes a subtle bug in kvm_set_cr3()
where it fails to check is_long_mode() and results in KVM incorrectly
attempting to load PDPTRs for a 64-bit guest.

Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
[sean: backport to 4.x; handle vmx.c split in 5.x, call out the bugfix]
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-20 18:45:10 +01:00
..
boot x86/boot/compressed/64: Fix missing initialization in find_trampoline_placement() 2019-09-10 10:33:53 +01:00
configs
crypto crypto: x86/crct10dif-pcl - fix use via crypto_shash_digest() 2019-05-22 07:37:37 +02:00
entry x86/entry/64: Use JMP instead of JMPQ 2019-08-06 19:06:58 +02:00
events perf/x86/uncore: Fix event group support 2019-11-12 19:21:07 +01:00
hyperv x86/hyper-v: Fix overflow bug in fill_gva_list() 2019-09-21 07:17:13 +02:00
ia32 x86/ia32: Fix ia32_restore_sigcontext() AC leak 2019-05-31 06:46:27 -07:00
include kvm: x86: mmu: Recovery of shattered NX large pages 2019-11-12 19:21:46 +01:00
kernel kvm: mmu: ITLB_MULTIHIT mitigation 2019-11-12 19:21:44 +01:00
kvm KVM: x86: introduce is_pae_paging 2019-11-20 18:45:10 +01:00
lib x86/asm: Fix MWAITX C-state hint value 2019-10-17 13:45:43 -07:00
math-emu x86: math-emu: Hide clang warnings for 16-bit overflow 2019-08-06 19:06:51 +02:00
mm x86/mm/pti: Handle unaligned address gracefully in pti_clone_pagetable() 2019-10-05 13:09:52 +02:00
net bpf, x64: fix stack layout of JITed bpf code 2019-07-14 08:11:12 +02:00
oprofile
pci x86/PCI: Fix PCI IRQ routing table memory leak 2019-06-15 11:54:07 +02:00
platform efi/x86: Do not clean dummy variable in kexec path 2019-11-06 13:05:53 +01:00
power x86/CPU/AMD: Clear RDRAND CPUID bit on AMD family 15h/16h 2019-08-29 08:28:53 +02:00
purgatory x86/purgatory: Disable the stackleak GCC plugin for the purgatory 2019-10-11 18:21:18 +02:00
ras
realmode x86/realmode: Don't leak the trampoline kernel address 2019-05-04 09:20:21 +02:00
tools x86/relocs: Add __end_rodata_aligned to S_REL 2018-08-09 20:42:07 +02:00
um um: Drop own definition of PTRACE_SYSEMU/_SINGLESTEP 2018-11-21 09:19:16 +01:00
video
xen x86/xen: Return from panic notifier 2019-11-06 13:05:55 +01:00
.gitignore
Kbuild
Kconfig x86/tsx: Add config options to set tsx=on|off|auto 2019-11-12 19:21:35 +01:00
Kconfig.cpu
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Makefile x86/build: Add -Wnoaddress-of-packed-member to REALMODE_CFLAGS, to silence GCC9 build warning 2019-09-19 09:09:41 +02:00
Makefile.um kbuild: rename LDFLAGS to KBUILD_LDFLAGS 2018-08-24 08:22:08 +09:00
Makefile_32.cpu