KVM: x86 emulator: make set_cr() callback return error if it fails
authorGleb Natapov <gleb@redhat.com>
Wed, 28 Apr 2010 16:15:31 +0000 (19:15 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:35:31 +0000 (10:35 +0300)
commit0f12244fe70e8a94a491f6cd7ed70a352ab6c26c
treea42fa2fd198e187c90abbed62ef35cd8acc9ff7e
parent79168fd1a307ffee46ee03b7f8711559241738c7
KVM: x86 emulator: make set_cr() callback return error if it fails

Make set_cr() callback return error if it fails instead of injecting #GP
behind emulator's back.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c
arch/x86/kvm/x86.c