]> 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)
commit2f13bb5d95025485cd8c9195d208e8c9d38b771a
treec9ddc18303f852feff187814c764b45bd21f6697
parent36f05579089291824c61be916cda15d105f6d5ab
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