All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Blue Swirl <blauwirbel@gmail.com>,
	qemu-devel@nongnu.org, xscript@gmx.net
Subject: [Qemu-devel] Re: backdoor [Was: Re: [PATCH 00/17] [RFC] static instrumentation]
Date: Mon, 25 Oct 2010 14:29:48 +0200	[thread overview]
Message-ID: <4CC5783C.8060009@redhat.com> (raw)
In-Reply-To: <87vd4q5yqd.fsf_-_@ginnungagap.bsc.es>

On 10/25/2010 12:54 PM, Lluís wrote:
> * Backdoor channels need to provide arguments.
> * It's better to provide the same mechanism for both *-user and softmmu
>    (otherwise the application to simulate or the interposed librariy
>    should be compiled differently on every case).

You can add the syscall and, if it returns with ENOSYS, fall back to 
MMIO/PIO (you don't really need a special driver, only some chmod since 
BARs are accessible from /sys) or watchpoint/breakpoint.

> * Some applications are not fully simulated, but just some pre-defined
>    loops are, such that I would run the application (on KVM mode if
>    possible) until the interesting loop starts executing, switch to
>    simulation mode, simulate an arbitrary number of loops, switch back to
>    non-simulated mode, run until another specific loop or iteration is
>    reached, repeat the process again.
>    This obviously requires some application modification to insert the
>    communication points, unless these can be identified using symbol
>    interposition (e.g., calls to the OpenMP runtime to simulate certain
>    parallel loops).

Switching between KVM and TCG is not possible at the moment, even though 
in principle it should be feasible for non-SMP guests.

Paolo

  reply	other threads:[~2010-10-25 12:29 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-22 18:32 [Qemu-devel] [PATCH 00/17] [RFC] static instrumentation Lluís
2010-10-22 18:53 ` Lluís
2010-10-18 17:24   ` [Qemu-devel] [PATCH 01/18] backdoor: Handle config-time activation Lluís
2010-10-18 17:40   ` [Qemu-devel] [PATCH 04/18] backdoor: Declare guest-side interface macros Lluís
2010-10-18 18:08   ` [Qemu-devel] [PATCH 06/18] backdoor: [i386] " Lluís
2010-10-18 18:27   ` [Qemu-devel] [PATCH 08/18] instrument: Handle config-time activation Lluís
2010-10-19 19:14   ` [Qemu-devel] [PATCH 05/18] backdoor: [i386] Decode backdoor instructions Lluís
2010-10-19 19:22   ` [Qemu-devel] [PATCH 02/18] backdoor: Declare host-side backdoor helpers Lluís
2010-10-19 19:33   ` [Qemu-devel] [PATCH 03/18] backdoor: [all] Include backdoor helper declarations Lluís
2010-10-19 20:05   ` [Qemu-devel] [PATCH 07/18] backdoor: Add a simple example Lluís
2010-10-19 21:11   ` [Qemu-devel] [PATCH 13/18] instrument: Add FETCH point Lluís
2010-10-19 21:12   ` [Qemu-devel] [PATCH 15/18] instrument: Add VMEM point Lluís
2010-10-19 21:36   ` [Qemu-devel] [PATCH 18/18] instrument: [i386] Call PLVL point Lluís
2010-10-19 21:36   ` [Qemu-devel] [PATCH 17/18] instrument: Add " Lluís
2010-10-19 21:37   ` [Qemu-devel] [PATCH 10/18] instrument: Dynamic per-CPU state of static instrumentation points Lluís
2010-10-19 21:40   ` [Qemu-devel] [PATCH 14/18] instrument: [i386] Call FETCH point Lluís
2010-10-21 14:36   ` [Qemu-devel] [PATCH 11/18] instrument: Code-generation macros Lluís
2010-10-21 17:42   ` [Qemu-devel] [PATCH 09/18] instrument: Add initial instrumentation example Lluís
2010-10-21 20:55   ` [Qemu-devel] [PATCH 12/18] instrument: [all] Include instrumentation helper declarations Lluís
2010-10-22 14:00   ` [Qemu-devel] [PATCH 16/18] instrument: [all] Call VMEM point Lluís
2010-10-23 12:40 ` [Qemu-devel] [PATCH 00/17] [RFC] static instrumentation Blue Swirl
2010-10-25 10:54   ` backdoor [Was: Re: [Qemu-devel] [PATCH 00/17] [RFC] static instrumentation] Lluís
2010-10-25 12:29     ` Paolo Bonzini [this message]
2010-10-25 13:37       ` [Qemu-devel] Re: backdoor Lluís
2010-10-25 21:20         ` Anthony Liguori
2010-10-25 22:48           ` Lluís
2010-10-25 23:06             ` Anthony Liguori
2010-10-26 20:03               ` Lluís
2010-10-25 17:27     ` backdoor [Was: Re: [Qemu-devel] [PATCH 00/17] [RFC] static instrumentation] Blue Swirl
2010-10-25 20:54       ` [Qemu-devel] Re: backdoor Lluís
2010-10-25 11:13   ` instrument [Was: Re: [Qemu-devel] [PATCH 00/17] [RFC] static instrumentation] Lluís
2010-10-25 18:31     ` Blue Swirl
2010-10-25 21:48       ` [Qemu-devel] Re: instrument 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=4CC5783C.8060009@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=blauwirbel@gmail.com \
    --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.