From: Jan Kiszka <jan.kiszka@web.de>
To: jyoung5@us.ibm.com
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH] [RFC] Fix for kvm qemu to return control to gdb stub on breakpoints
Date: Thu, 22 May 2008 21:04:03 +0200 [thread overview]
Message-ID: <4835C3A3.2010502@web.de> (raw)
In-Reply-To: <1211479817.6964.9.camel@thinkpadL>
[-- Attachment #1: Type: text/plain, Size: 1542 bytes --]
Jerone Young wrote:
> This is mainly to try and fix the current debug state with using
> hardware breakpoints (until your software breakpoint work is ready for
Well, you may be lucky with hw-breakpoints on Intel, given userland is
patched. But if you aren't (IIRC, current code leaks debug register
settings outside the guest, e.g.), I wouldn't invest time here. The
debug register handling requires a rewrite in order to support proper
virtualization + guest debugging.
Right now I'm trying the clean up my debug patches and get things out:
1. Reworked guest debug interface
2. Fixed and enhanced userland support (including soft-BPs)
3. debug register virtualization
4. guest debugging with hw-breakpoints/watchpoints
I hope step 1 & 2 can be completed tonight, 3 & 4 finally over the weekend.
> primetime). I actually do need to submit another patch outside of this
> for initialization of some variables (which I see is in your patch too),
> as it ends up passing down garbage.
Yeah, that was another issue.
>
> For now this is a patch mainly just to get qemu to break into the gdb
> stub when a debug interrupt comes in. Though I have a feeling more may
> be needed.
If you want to fix userland, you also have to ensure that the vcpu
thread that received the breakpoint doesn't continue to run - see my patch.
That said, if you have spare cycles left to spent on the debugging
thing, I would try to re-schedule my work and push some packages over to
your side. Just let me know! :)
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
prev parent reply other threads:[~2008-05-22 19:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-22 16:21 [PATCH] [RFC] Fix for kvm qemu to return control to gdb stub on breakpoints Jerone Young
2008-05-22 16:43 ` Jan Kiszka
2008-05-22 18:00 ` Anthony Liguori
2008-05-22 19:04 ` Jan Kiszka
2008-05-22 18:10 ` Jerone Young
2008-05-22 19:04 ` 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=4835C3A3.2010502@web.de \
--to=jan.kiszka@web.de \
--cc=jyoung5@us.ibm.com \
--cc=kvm@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.