]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: handle hardware breakpoints during emulation
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 May 2013 09:48:30 +0000 (11:48 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 29 Jul 2013 07:01:14 +0000 (09:01 +0200)
commit41f146e5aad25abc92ccdb716a8ed1d02beb1d6c
treec9ddc18303f852feff187814c764b45bd21f6697
parentc9b2c00ef94c88d71b30e56c519338058ae80893
KVM: x86: handle hardware breakpoints during emulation

This lets debugging work better during emulation of invalid
guest state.

The check is done before emulating the instruction, and (in the case
of guest debugging) reuses EMULATE_DO_MMIO to exit with KVM_EXIT_DEBUG.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c