qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [RESEND][PATCH] gdbstub: Add vCont support
Date: Thu, 15 Jan 2009 22:27:57 +0100	[thread overview]
Message-ID: <496FAA5D.3000403@web.de> (raw)
In-Reply-To: <496F9D75.4020802@codemonkey.ws>

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

Anthony Liguori wrote:
> Jan Kiszka wrote:
>> [ Also available via git://git.kiszka.org/qemu.git queue/gdb ]
>>
>> In order to set the VCPU for the next single-step command, you need gdb
>> 6.8 or better - and this patch. It enhances the existing support for
>> representing VCPUs as threads to the gdb frontend by introducing the
>> vCont remote gdb command. This is used by gdb to switch the debugging
>> focus for single-stepping multi-threaded targets.
>>
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>>   
> 
> I think the consensus from the last posting of this was that modeling
> threads was pretty broken and that we should model as processes.  Did I
> miss something there?

There was this concern brought up by Paul Brook. I looked into this
again, but the picture didn't change for me:

 a) Modeling cpus as processes buys us nothing compared to threads given
    the fact that we cannot provide a stable memory mapping to the gdb
    frontend anyway. (*)

 b) The model is already part of mainline qemu. This patch is just
    about adding even more usefulness to it.

Jan

(*) Process abstraction is, if used at all, guest business. At best we
could try to invent (likely OS-specific) heuristics to identify
identical mappings and call them processes. I don't see a reasonable
benefit compared to the expected effort and unreliability.


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

  reply	other threads:[~2009-01-15 21:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-14 14:44 [Qemu-devel] [RESEND][PATCH] gdbstub: Add vCont support Jan Kiszka
2009-01-14 15:03 ` Krumme, Chris
2009-01-14 16:30   ` [Qemu-devel] " Jan Kiszka
2009-01-15 20:32 ` [Qemu-devel] " Anthony Liguori
2009-01-15 21:27   ` Jan Kiszka [this message]
2009-01-16  0:15     ` [Qemu-devel] " Paul Brook
2009-01-16  8:05       ` Jan Kiszka
2009-01-16  8:38         ` Jan Kiszka
2009-01-16 17:05         ` Paul Brook
2009-01-16 19:25           ` Jan Kiszka
2009-01-16 20:42       ` Daniel Jacobowitz
2009-01-17 10:03       ` Jamie Lokier
2009-01-17 17:33         ` Paul Brook

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=496FAA5D.3000403@web.de \
    --to=jan.kiszka@web.de \
    --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).