summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/abx500.h
diff options
context:
space:
mode:
authorLiran Alon <liran.alon@oracle.com>2017-11-05 16:56:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-03 17:38:55 +0100
commitdf54fc5c28d2921ae4eb0d3401db929cb0c62e56 (patch)
tree065278778184fb4d15a1c7d8b44665a3cdf92de2 /drivers/hwmon/abx500.h
parentfbd81f09793b8ab0696782da0c081599b6620efc (diff)
downloadlinux-stable-df54fc5c28d2921ae4eb0d3401db929cb0c62e56.tar.gz
linux-stable-df54fc5c28d2921ae4eb0d3401db929cb0c62e56.tar.bz2
linux-stable-df54fc5c28d2921ae4eb0d3401db929cb0c62e56.zip
KVM: x86: Don't re-execute instruction when not passing CR2 value
[ Upstream commit 9b8ae63798cb97e785a667ff27e43fa6220cb734 ] In case of instruction-decode failure or emulation failure, x86_emulate_instruction() will call reexecute_instruction() which will attempt to use the cr2 value passed to x86_emulate_instruction(). However, when x86_emulate_instruction() is called from emulate_instruction(), cr2 is not passed (passed as 0) and therefore it doesn't make sense to execute reexecute_instruction() logic at all. Fixes: 51d8b66199e9 ("KVM: cleanup emulate_instruction") Signed-off-by: Liran Alon <liran.alon@oracle.com> Reviewed-by: Nikita Leshenko <nikita.leshchenko@oracle.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Reviewed-by: Wanpeng Li <wanpeng.li@hotmail.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwmon/abx500.h')
0 files changed, 0 insertions, 0 deletions