]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6758dfa7cf3a2d2fa494a5a67df3c490656a2e35
tree85264314471e0e420e0226010044842191e20a79
parent5a94afcb70b8a8dabe35d5a7c2624b87de7e0306
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