From: Jan Kiszka <jan.kiszka@siemens.com>
To: Michael Le <mvle@CS.UCLA.EDU>
Cc: kvm@vger.kernel.org
Subject: Re: guest hardware breakpoint
Date: Fri, 31 Oct 2008 11:11:26 +0100 [thread overview]
Message-ID: <490AD9CE.9030705@siemens.com> (raw)
In-Reply-To: <Pine.SOC.4.64.0810302150580.16815@panther.cs.ucla.edu>
Michael Le wrote:
> Hi,
>
> I'm trying to set a hardware breakpoint inside the guest using gdb. This
> doesn't seem to work. Execution just skips right over it. I've have also
> tried writing some code to set a breakpoint by directly accessing the db
> registers from the guest. This also did not cause a breakpoint to be
> generated in the guest. Is it possible to use hardware breakpoints
> inside the guest? Is there some configuration that must be set in qemu
> or in the kvm modules?
>
> The guest vm is running linux 2.6.18.
>
> I'm using kvm-77 with linux kernel 2.6.27. I used the kvm kernel modules
> that came with the linux kernel and not from kvm-77. I have an x86
> machine. The command I use to run the vm is the following:
>
> ../kvm/qemu-system-x86_64 main.img -m 512 -vnc :0
For now you need these patch queues for hw breakpoint support:
http://thread.gmane.org/gmane.comp.emulators.kvm.devel/22838
http://thread.gmane.org/gmane.comp.emulators.kvm.devel/22818
Dunno if they applied to -77, but I can provide rebases against latest
git on request.
Jan
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
prev parent reply other threads:[~2008-10-31 10:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-31 5:01 guest hardware breakpoint Michael Le
2008-10-31 10:11 ` Jan Kiszka [this message]
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=490AD9CE.9030705@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=kvm@vger.kernel.org \
--cc=mvle@CS.UCLA.EDU \
/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