From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: [PATCH 0/3] Rework guest debug interface Date: Fri, 23 May 2008 03:50:46 +0200 Message-ID: <483622F6.8020805@web.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8DD1D5E434A51A3C34513A37" To: Jan Kiszka Return-path: Received: from fmmailgate01.web.de ([217.72.192.221]:43789 "EHLO fmmailgate01.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762884AbYEWB6K (ORCPT ); Thu, 22 May 2008 21:58:10 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8DD1D5E434A51A3C34513A37 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable The existing guest debugging interface of kvm is limited in several ways:= - depends on hardware breakpoints, thus suffers from running out of this scarce resource. - assumes that there are only 4 hardware breakpoints (even if some archs may once provide more) - doesn't support watchpoint or additional arch-specific debugging features This patch series reworks the interface, providing usable software-based breakpoint support, but also laying the ground for patches under development that will add full hardware debugging features. Content: Patch 1 - Replace KVM_DEBUG_GUEST with KVM_SET_GUEST_DEBUG interface, implement kernel side support Patch 2 - Tiny helper that allows pause and resume for a single vcpu Patch 3 - Userland changes that adopt KVM_SET_GUEST_DEBUG and switch to software breakpoints Depends on: - "Fix monitor and gdbstub deadlocks v2" [1] - "Proper vm_stop on debug events" [2] It's late here and the series is still fresh, but everything seems to works nicely - even using gdb inside the guest while the host has active breakpoints on the guest as well. Looking forward to feedback and review. Jan [1] http://permalink.gmane.org/gmane.comp.emulators.kvm.devel/17444 [2] http://permalink.gmane.org/gmane.comp.emulators.kvm.devel/17775 --------------enig8DD1D5E434A51A3C34513A37 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFINiMEniDOoMHTA+kRAmPTAJ4sj1S/z6TNKKN8WcQJPH8u7/aYWACcCyG4 9b7kIfK5XjRBSGLDKPd9G08= =Inzv -----END PGP SIGNATURE----- --------------enig8DD1D5E434A51A3C34513A37--