qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: Avi Kivity <avi@redhat.com>
Cc: qemu-devel@nongnu.org, Craig Brozefsky <craig@red-bean.com>
Subject: Re: [Qemu-devel] Re: software breakpoints disappearing/reappearing in	KVM/qemu
Date: Sun, 10 Apr 2011 16:23:32 +0200	[thread overview]
Message-ID: <4DA1BD64.6000108@web.de> (raw)
In-Reply-To: <4DA1B81C.8000506@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 699 bytes --]

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 guests
>> 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,
> 
> 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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

  reply	other threads:[~2011-04-10 14:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-08 18:50 [Qemu-devel] software breakpoints disappearing/reappearing in KVM/qemu Craig Brozefsky
2011-04-08 20:16 ` Blue Swirl
2011-04-08 20:37   ` Craig Brozefsky
2011-04-08 20:52 ` [Qemu-devel] " Jan Kiszka
2011-04-10 14:01   ` Avi Kivity
2011-04-10 14:23     ` Jan Kiszka [this message]
2011-04-10 14:41       ` Avi Kivity
2011-04-10 15:16         ` Jan Kiszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DA1BD64.6000108@web.de \
    --to=jan.kiszka@web.de \
    --cc=avi@redhat.com \
    --cc=craig@red-bean.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).