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)
commit4a1e10d5b5d8c5ebe0908fb9d3859a5602bf5cf1
treec9ddc18303f852feff187814c764b45bd21f6697
parentac0a48c39af31fe27bdb1afca7b26f109ff1c704
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