Liran Alon 1f4dcb3b21 KVM: x86: emulator: Return to user-mode on L1 CPL=0 emulation failure
On this case, handle_emulation_failure() fills kvm_run with
internal-error information which it expects to be delivered
to user-mode for further processing.
However, the code reports a wrong return-value which makes KVM to never
return to user-mode on this scenario.

Fixes: 6d77dbfc88e3 ("KVM: inject #UD if instruction emulation fails and exit to
userspace")

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>
2017-11-17 13:20:11 +01:00
..
2017-11-15 15:01:28 -08:00
2017-11-17 13:20:01 +01:00
2017-11-17 13:20:01 +01:00
2017-11-14 18:25:40 -08:00
2017-11-15 15:01:28 -08:00
2017-11-15 18:21:03 -08:00
2017-11-14 16:54:12 -08:00
2017-11-15 15:01:28 -08:00
2017-11-15 18:21:00 -08:00
2017-11-14 16:54:12 -08:00
2017-11-14 18:25:40 -08:00
2017-11-14 18:25:40 -08:00
2017-11-16 11:41:22 -08:00
2017-11-14 18:25:40 -08:00
2017-11-15 18:21:04 -08:00
2017-11-15 15:01:28 -08:00
2017-11-15 10:49:15 -08:00
2017-11-16 13:00:24 -08:00
2017-11-15 15:01:28 -08:00