KVM: x86: Inter-privilege level ret emulation is not implemeneted
authorNadav Amit <namit@cs.technion.ac.il>
Sun, 15 Jun 2014 13:12:59 +0000 (16:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Sep 2014 23:28:35 +0000 (16:28 -0700)
commit8277c1d67e4c273858e5a423a9d091074056cc06
tree689f327f64952cab2811e8661ac1680c349197e1
parent68344064b7c978712e32448d03935ad1ac6d75cd
KVM: x86: Inter-privilege level ret emulation is not implemeneted

commit 9e8919ae793f4edfaa29694a70f71a515ae9942a upstream.

Return unhandlable error on inter-privilege level ret instruction.  This is
since the current emulation does not check the privilege level correctly when
loading the CS, and does not pop RSP/SS as needed.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/emulate.c