KVM: x86: Return UNHANDLABLE on unsupported SYSENTER
authorNadav Amit <namit@cs.technion.ac.il>
Sun, 2 Nov 2014 09:55:01 +0000 (11:55 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 8 Nov 2014 07:20:52 +0000 (08:20 +0100)
commitb2c9d43e6c0f821bde0c1c840038d159d18f1519
tree55ab7c34dad126e8a511c78e7888e3544f7a3272
parentdb324fe6f20b0ad118d230da23107ddb12784e8c
KVM: x86: Return UNHANDLABLE on unsupported SYSENTER

Now that KVM injects #UD on "unhandlable" error, it makes better sense to
return such error on sysenter instead of directly injecting #UD to the guest.
This allows to track more easily the unhandlable cases the emulator does not
support.

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