All of lore.kernel.org
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: "Stefan Hajnoczi" <stefanha@gmail.com>,
	"Blue Swirl" <blauwirbel@gmail.com>, Lluís <xscript@gmx.net>,
	"Dhaval Giani" <dhaval.giani@gmail.com>,
	"Stefan Hajnoczi" <stefanha@linux.vnet.ibm.com>,
	qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH, RFC] trace: implement guest tracepoint passthrough
Date: Tue, 30 Aug 2011 18:58:19 +0000	[thread overview]
Message-ID: <CAAu8pHvbd7UxhWGFAEXCSoFbTvTrhqtTbtj6xptuf0i4gnzsiA@mail.gmail.com> (raw)
In-Reply-To: <87wrdwfkio.fsf@ginnungagap.bsc.es>

On Mon, Aug 29, 2011 at 12:51 PM, Lluís <xscript@gmx.net> wrote:
> Stefan Hajnoczi writes:
>
>> The ability to trace from the guest can be handy, so I think we should
>> have this feature.  Please add documentation on how to hook it up
>> (e.g. how people would use this for other firmware/guest code and/or
>> other architectures).
>
>> Guest and QEMU need to agree on event IDs.  The guest code needs to be
>> built with QEMU and they may not function with other QEMU builds or
>> guest builds.  This is fine for development but not feasible when QEMU
>> and the guest code are built or provided separately.
>
>> I suggest we merge this as a development feature that can be used when
>> bringing up new architectures, debugging guest code, or for some types
>> of performance work.  This feature falls under the Do-It-Yourself
>> area, where things could break relatively easy but developers who wish
>> to use it should be able to get it working in their area.
>
> This sounds is indeed interesting.
>
> I suppose I could even use this as a backdoor mechanism for the guest to
> communicate with QEMU.

Well, fw_cfg is intended for very low level BIOS code. Virtual PCI
devices would be better for OS level.

> The only problem I see is that fw_cfg is one-way
> (i.e., QEMU cannot return any data back to the guest), as opposed to a
> backdoor mechanism based on a virtual device or "magic" instructions.

This should be possible.

  reply	other threads:[~2011-08-30 18:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-26 19:06 [Qemu-devel] [PATCH, RFC] trace: implement guest tracepoint passthrough Blue Swirl
2011-08-29 12:17 ` Stefan Hajnoczi
2011-08-29 12:51   ` Lluís
2011-08-30 18:58     ` Blue Swirl [this message]
2011-08-30 18:43   ` Blue Swirl
2011-08-31  7:24     ` Stefan Hajnoczi
2011-08-31  8:38 ` Avi Kivity
2011-08-31  9:08   ` Stefan Hajnoczi
2011-08-31  9:11     ` Avi Kivity
2011-08-31 13:38       ` Stefan Hajnoczi
2011-08-31 18:01         ` Dhaval Giani
2011-08-31 10:54     ` Jan Kiszka
2011-08-31 17:58   ` Blue Swirl
2011-08-31 18:00     ` Dhaval Giani
2011-09-03  8:53       ` Blue Swirl
2011-09-03  9:26         ` Dhaval Giani
2011-09-03 10:55           ` Blue Swirl

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=CAAu8pHvbd7UxhWGFAEXCSoFbTvTrhqtTbtj6xptuf0i4gnzsiA@mail.gmail.com \
    --to=blauwirbel@gmail.com \
    --cc=dhaval.giani@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    --cc=stefanha@linux.vnet.ibm.com \
    --cc=xscript@gmx.net \
    /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.