KVM: x86: do not fail if software breakpoint has already been removed
commitc6986f16a7022ccfb73d91bc7676c8e1d15e5342
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Mar 2021 11:02:44 +0000 (1 12:02 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 6 Mar 2021 10:41:54 +0000 (6 11:41 +0100)
tree315d164b674c90d94ceaaf55b7753a91e37a667d
parente586edcb410543768ef009eaa22a2d9dd4a53846
KVM: x86: do not fail if software breakpoint has already been removed

If kvm_arch_remove_sw_breakpoint finds that a software breakpoint does not
have an INT3 instruction, it fails.  This can happen if one sets a
software breakpoint in a kernel module and then reloads it.  gdb then
thinks the breakpoint cannot be deleted and there is no way to add it
back.

Suggested-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm/kvm.c