android_kernel_samsung_a7y1.../arch
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
..
alpha
arc ARC: define __ALIGN_STR and __ALIGN symbols for ARC 2020-04-07 14:11:40 +02:00
arm ARM: dts: dra7: Add "dma-ranges" property to PCIe RC DT nodes 2020-04-07 14:13:52 +02:00
arm64 arm64: smp: fix smp_send_stop() behaviour 2020-04-07 14:23:10 +02:00
avr32
blackfin
c6x
cris
frv
h8300
hexagon hexagon: work around compiler crash 2020-04-07 13:37:21 +02:00
ia64
m32r
m68k m68k: Call timer_interrupt() with interrupts disabled 2020-04-07 13:44:29 +02:00
metag
microblaze microblaze: Prevent the overflow of the start 2020-04-07 13:57:29 +02:00
mips MIPS: VPE: Fix a double free and a memory leak in 'release_vpe()' 2020-04-07 14:04:51 +02:00
mn10300
nios2 nios2: ksyms: Add missing symbol exports 2020-04-07 13:40:50 +02:00
openrisc openrisc: Fix broken paths to arch/or32 2020-04-07 12:42:07 +02:00
parisc parisc: Fix compiler warnings in debug_core.c 2020-04-07 13:29:00 +02:00
powerpc powerpc: Include .BTF section 2020-04-07 14:13:50 +02:00
s390 mm: prevent get_user_pages() from overflowing page refcount 2020-04-07 14:08:50 +02:00
score
sh pinctrl: sh-pfc: sh7269: Fix CAN function GPIOs 2020-04-07 13:56:29 +02:00
sparc sparc32: fix struct ipc64_perm type definition 2020-04-07 13:49:17 +02:00
tile locking/x86: Remove the unused atomic_inc_short() methd 2020-04-07 13:25:08 +02:00
um um: Make GCOV depend on !KCOV 2020-04-07 12:42:32 +02:00
unicore32
x86 KVM: VMX: Do not allow reexecute_instruction() when skipping MMIO instr 2020-04-07 14:23:51 +02:00
xtensa xtensa: fix TLB sanity checker 2020-04-07 13:12:45 +02:00
Kconfig