* guest hardware breakpoint
@ 2008-10-31 5:01 Michael Le
2008-10-31 10:11 ` Jan Kiszka
0 siblings, 1 reply; 2+ messages in thread
From: Michael Le @ 2008-10-31 5:01 UTC (permalink / raw)
To: kvm
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
Thanks,
Michael Le
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: guest hardware breakpoint
2008-10-31 5:01 guest hardware breakpoint Michael Le
@ 2008-10-31 10:11 ` Jan Kiszka
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2008-10-31 10:11 UTC (permalink / raw)
To: Michael Le; +Cc: kvm
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-31 10:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-31 5:01 guest hardware breakpoint Michael Le
2008-10-31 10:11 ` Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox