android_kernel_samsung_a7y1.../arch/x86
Sean Christopherson c403bdb631 KVM: VMX: Do not allow reexecute_instruction() when skipping MMIO instr
[ Upstream commit c4409905cd6eb42cfd06126e9226b0150e05a715 ]

Re-execution after an emulation decode failure is only intended to
handle a case where two or vCPUs race to write a shadowed page, i.e.
we should never re-execute an instruction as part of MMIO emulation.
As handle_ept_misconfig() is only used for MMIO emulation, it should
pass EMULTYPE_NO_REEXECUTE when using the emulator to skip an instr
in the fast-MMIO case where VM_EXIT_INSTRUCTION_LEN is invalid.

And because the cr2 value passed to x86_emulate_instruction() is only
destined for use when retrying or reexecuting, we can simply call
emulate_instruction().

Fixes: d391f1207067 ("x86/kvm/vmx: do not use vm-exit instruction length
                      for fast MMIO when running nested")
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 14:23:51 +02:00
..
boot x86/efistub: Disable paging at mixed mode entry 2020-04-07 13:37:47 +02:00
configs A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crypto crypto: x86/crct10dif-pcl - fix use via crypto_shash_digest() 2020-04-06 18:12:16 +02:00
entry x86/vdso: Provide missing include file 2020-04-07 13:56:27 +02:00
ia32 x86/ia32: Fix ia32_restore_sigcontext() AC leak 2020-04-06 18:19:56 +02:00
include x86/vdso: Use RDPID in preference to LSL when available 2020-04-07 13:54:58 +02:00
kernel perf/amd/uncore: Replace manual sampling check with CAP_NO_INTERRUPT flag 2020-04-07 14:13:32 +02:00
kvm KVM: VMX: Do not allow reexecute_instruction() when skipping MMIO instr 2020-04-07 14:23:51 +02:00
lguest A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lib x86/asm: Fix MWAITX C-state hint value 2020-04-07 08:15:35 +02:00
math-emu x86: math-emu: Hide clang warnings for 16-bit overflow 2020-04-06 20:27:16 +02:00
mm x86/mm: split vmalloc_sync_all() 2020-04-07 14:14:34 +02:00
net A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
oprofile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci x86/PCI: Avoid AMD FCH XHCI USB PME# from D0 defect 2020-04-07 12:43:56 +02:00
platform efi/x86: Map the entire EFI vendor string before copying it 2020-04-07 13:55:44 +02:00
power x86/CPU/AMD: Clear RDRAND CPUID bit on AMD family 15h/16h 2020-04-06 21:32:57 +02:00
purgatory A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ras A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
realmode x86/build: Specify elf_i386 linker emulation explicitly for i386 objects 2020-04-06 14:56:37 +02:00
tools x86/insn: Fix awk regexp warnings 2020-04-07 12:37:06 +02:00
um um: Compile with modern headers 2020-04-06 19:17:39 +02:00
video A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kbuild A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig x86/olpc: Fix build error with CONFIG_MFD_CS5535=m 2020-04-07 12:32:51 +02:00
Kconfig.cpu A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig.debug x86, perf: Fix the dependency of the x86 insn decoder selftest 2020-04-07 13:43:07 +02:00
Makefile x86/build: Add -Wnoaddress-of-packed-member to REALMODE_CFLAGS, to silence GCC9 build warning 2020-04-06 21:35:54 +02:00
Makefile_32.cpu A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile.um A750FXXU4CTBC 2020-03-27 21:51:54 +05:30