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
crypto
entry x86/vdso: Provide missing include file 2020-04-07 13:56:27 +02:00
ia32
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
lib
math-emu
mm x86/mm: split vmalloc_sync_all() 2020-04-07 14:14:34 +02:00
net
oprofile
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
purgatory
ras
realmode
tools x86/insn: Fix awk regexp warnings 2020-04-07 12:37:06 +02:00
um
video
xen
Kbuild
Kconfig x86/olpc: Fix build error with CONFIG_MFD_CS5535=m 2020-04-07 12:32:51 +02:00
Kconfig.cpu
Kconfig.debug x86, perf: Fix the dependency of the x86 insn decoder selftest 2020-04-07 13:43:07 +02:00
Makefile
Makefile_32.cpu
Makefile.um