All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Lluís <xscript@gmx.net>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Guest to Qemu communication channel + static instrumentation
Date: Thu, 08 Jul 2010 12:53:14 -0500	[thread overview]
Message-ID: <4C36108A.309@codemonkey.ws> (raw)
In-Reply-To: <86lj9luamd.wl%lluis@ginnungagap.pc.ac.upc.edu>

On 07/08/2010 12:49 PM, Lluís wrote:
> Hi there.
>
> I'm porting into qemu some code I had for bochs. For this purpose, the first
> part is a backdoor communication channel, such that code in the guest will be
> able to directly communicate with qemu in a pre-defined manner (namely, the
> decode of an illegal instruction).
>    

At least for x86, there is a well defined instruction for these purposes 
(vmcall and vmmcall respectively).  I think qemu implementing 
vmcall/vmmcall emulation for TCG is not a bad idea.

> Right now, this comes with a '--with-backdoor=PATH' flag in the configure
> script, which lets the user activate the communication channel, and make qemu
> compile all '.c' files in PATH as target code.
>
> In those files, the user can place any code, plus backdoor callbacks (these are
> a must), which are free to interact with any other piece of code in qemu.
>
> Are you interested on merging this kind of functionality?
>
> The only reason for this is to control the behaviour of the other piece of code
> I'm working on (which I would very much like to integrate into qemu).
>
> This other piece is a set of static instrumentation points using macros that the
> user can re-define at compile time.
>
> For an example of how it would look like:
>      http://bochs.sourceforge.net/cgi-bin/lxr/source/instrument/
>    

It's not immediately clear to me how this would map to TCG so I'm 
unclear about it's utility.

Regards,

Anthony Liguori

> Read you,
>       Lluis
>
>    

  reply	other threads:[~2010-07-08 18:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-08 17:49 [Qemu-devel] Guest to Qemu communication channel + static instrumentation Lluís
2010-07-08 17:53 ` Anthony Liguori [this message]
2010-07-08 18:53   ` Lluís

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=4C36108A.309@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.org \
    --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.