KVM: VMX: Do not skip the instruction if handle_dr injects a fault
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 18 Dec 2013 18:16:24 +0000 (19:16 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Dec 2013 18:20:39 +0000 (19:20 +0100)
commit4c4d563b49830a66537c3f51070dad74d7a81d3a
tree85264314471e0e420e0226010044842191e20a79
parentca3f257ae570c37d3da30a524a2f61ce602c6c99
KVM: VMX: Do not skip the instruction if handle_dr injects a fault

If kvm_get_dr or kvm_set_dr reports that it raised a fault, we must not
advance the instruction pointer. Otherwise the exception will hit the
wrong instruction.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c