From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=49941 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8vYH-0008PK-6A for qemu-devel@nongnu.org; Sun, 10 Apr 2011 10:23:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8vYF-0007ed-Tw for qemu-devel@nongnu.org; Sun, 10 Apr 2011 10:23:44 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:50176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8vYF-0007dx-Nd for qemu-devel@nongnu.org; Sun, 10 Apr 2011 10:23:43 -0400 Message-ID: <4DA1BD64.6000108@web.de> Date: Sun, 10 Apr 2011 16:23:32 +0200 From: Jan Kiszka MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: software breakpoints disappearing/reappearing in KVM/qemu References: <4D9F7597.7020604@web.de> <4DA1B81C.8000506@redhat.com> In-Reply-To: <4DA1B81C.8000506@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6C04765879327863DC4DAC74" Sender: jan.kiszka@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: qemu-devel@nongnu.org, Craig Brozefsky This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6C04765879327863DC4DAC74 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2011-04-10 16:01, Avi Kivity wrote: > On 04/08/2011 11:52 PM, Jan Kiszka wrote: >> QEMU's gdbstub in KVM mode is simply not designed to account for guest= s >> swapping out code pages that contain breakpoints. Due to the fact that= >> the Linux kernel does not do these weird things to its own code, >=20 > It actually happily patches its own code at certain circumstances. If > you debug early boot or suspend/resume or cpu hotplug you're likely to > encounter them. Yes, it patches (alternates, jump_labels, mcount etc.), but it doesn't swap or move code pages. At least so far. If you need to break at such locations, there are still hardware breakpoints, though only 4. Jan --------------enig6C04765879327863DC4DAC74 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.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk2hvWgACgkQitSsb3rl5xSSGACgwfV0ThAdyOiF28Vkqj0TM0uu 3DcAoM7zjWN7BsAQAPyNdBdL8Ky/L4ss =HlYQ -----END PGP SIGNATURE----- --------------enig6C04765879327863DC4DAC74--