KVM: x86 emulator: make (get|set)_dr() callback return error if it fails
authorGleb Natapov <gleb@redhat.com>
Wed, 28 Apr 2010 16:15:32 +0000 (19:15 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:35:32 +0000 (10:35 +0300)
commit338dbc9781eb5acd0b12809d95d4006135f29767
treeceb9fc9b2eb7e52c9352f094436590c82852d71f
parent0f12244fe70e8a94a491f6cd7ed70a352ab6c26c
KVM: x86 emulator: make (get|set)_dr() callback return error if it fails

Make (get|set)_dr() callback return error if it fails instead of
injecting exception behind emulator's back.

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