qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: [PATCH 03/12] Refactor and enhance break/watchpoint API
Date: Sat, 15 Nov 2008 10:12:49 -0600	[thread overview]
Message-ID: <491EF501.5080205@codemonkey.ws> (raw)
In-Reply-To: <491E8887.7010004@web.de>

Jan Kiszka wrote:
> Jan Kiszka wrote:
>   
>> Anthony Liguori wrote:
>>     
>>> Jan Kiszka wrote:
>>>       
>>>> This patch prepares the QEMU cpu_watchpoint/breakpoint API to allow the
>>>> succeeding enhancements this series comes with.
>>>>
>>>> First of all, it overcomes MAX_BREAKPOINTS/MAX_WATCHPOINTS by switching
>>>> to dynamically allocated data structures that are kept in linked lists.
>>>> This also allows to return a stable reference to the related objects,
>>>> required for later introduced x86 debug register support.
>>>>
>>>> Breakpoints and watchpoints are stored with their full information set
>>>> and an additional flag field that makes them easily extensible for use
>>>> beyond pure guest debugging.
>>>>
>>>> Finally, this restructuring lays the foundation for KVM to hook into
>>>> the debugging infrastructure, providing its own services where hardware
>>>> virtualization demands it. Once QEMUAccel is considered for merge,
>>>> those entry point should be included into its abstraction layer so that
>>>> accellerators can hook in even more cleanly.
>>>>   
>>>>         
>>> We've merged KVM support (although not QEMUAccel), so perhaps you can
>>> also add the KVM hooks in this series that you are thinking of?
>>>       
>> I will check how much of my kvm patches for guest debugging can already
>> be ported over.
>>
>> That topic is more complex - if you recall my according series - as kvm
>> requires kernel changes to gain full guest debugging support. I'm not
>> even sure if it makes sense to add support for the current kernel
>> interface as it is too restricted (no watchpoints, only 4 breakpoints).
>> However, will re-check if some patch re-ordering may help the migration.
>>
>>     
>
> I had a closer look meanwhile. Given the fact that there are no kvm bits
> for supporting guest debugging in qemu yet and that it would take some
> additional effort for me to establish this for the old interface, I
> would like to skip this step and suggest a different roadmap instead:
>
>  o integrate plain qemu bits for full guest debugging (this series)
>  o wait for Avi to merge them into kvm-userspace
>  o rebase my kvm guest debugging series over kvm-userspace
>    (kernel bits are already up to date) and submit it for review/merge
>  o port stabilized kvm guest debugging over to qemu, but demanding the
>    new kernel ABI
>   

Yeah, that's fine.

Regards,

ANthony Liguori

> OK? Time is a scarce resource, so I would really like to omit
> stabilizing a feature based on an outdated interface to a still too
> young (for daily use, including guest debugging) kvm support of qemu.
>
> Jan
>
>   

  reply	other threads:[~2008-11-15 16:12 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-03 10:35 [Qemu-devel] [PATCH 00/12] Enhance debugging support - 4th take Jan Kiszka
2008-11-03 10:35 ` [Qemu-devel] [PATCH 01/12] Refactor translation block CPU state handling Jan Kiszka
2008-11-13 20:42   ` Anthony Liguori
2008-11-03 10:36 ` [Qemu-devel] [PATCH 02/12] Return appropriate watch message to gdb Jan Kiszka
2008-11-13 20:45   ` Anthony Liguori
2008-11-13 22:55     ` [Qemu-devel] " Jan Kiszka
2008-11-03 10:36 ` [Qemu-devel] [PATCH 03/12] Refactor and enhance break/watchpoint API Jan Kiszka
2008-11-13 20:48   ` Anthony Liguori
2008-11-13 22:56     ` [Qemu-devel] " Jan Kiszka
2008-11-14  2:24       ` Jamie Lokier
2008-11-13 20:51   ` [Qemu-devel] " Anthony Liguori
2008-11-13 22:58     ` [Qemu-devel] " Jan Kiszka
2008-11-15  8:29       ` Jan Kiszka
2008-11-15 16:12         ` Anthony Liguori [this message]
2008-11-03 10:36 ` [Qemu-devel] [PATCH 04/12] Set mem_io_vaddr on io_read Jan Kiszka
2008-11-03 10:36 ` [Qemu-devel] [PATCH 05/12] Respect length of watchpoints Jan Kiszka
2008-11-03 10:36 ` [Qemu-devel] [PATCH 06/12] Restore pc on watchpoint hits Jan Kiszka
2008-11-03 10:36 ` [Qemu-devel] [PATCH 07/12] Remove premature memop TB terminations Jan Kiszka
2008-11-03 10:36 ` [Qemu-devel] [PATCH 08/12] qemu: gdbstub: manage CPUs as threads Jan Kiszka
2008-11-03 10:36 ` [Qemu-devel] [PATCH 09/12] Introduce BP_WATCHPOINT_HIT flag Jan Kiszka
2008-11-03 10:36 ` [Qemu-devel] [PATCH 10/12] Add debug exception hook Jan Kiszka
2008-11-03 10:36 ` [Qemu-devel] [PATCH 11/12] Introduce BP_CPU as a breakpoint type Jan Kiszka
2008-11-03 10:36 ` [Qemu-devel] [PATCH 12/12] x86: Debug register emulation Jan Kiszka
2008-11-13 20:38 ` [Qemu-devel] [PATCH 00/12] Enhance debugging support - 4th take Anthony Liguori
2008-11-13 22:55   ` [Qemu-devel] " Jan Kiszka
2008-11-13 22:06 ` [Qemu-devel] " Fabrice Bellard
2008-11-13 22:55   ` [Qemu-devel] " Jan Kiszka
2008-11-13 23:32     ` Anthony Liguori

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=491EF501.5080205@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --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).