From: "Emilio G. Cota" <cota@braap.org>
To: nutarojj@ornl.gov
Cc: qemu-devel@nongnu.org, pbonzini@redhat.com
Subject: Re: [Qemu-devel] [PATCH V8] qqq: module for synchronizing with a simulation
Date: Mon, 23 Oct 2017 12:23:12 -0400 [thread overview]
Message-ID: <20171023162312.GA5089@flamenco> (raw)
In-Reply-To: <1505857386-23049-1-git-send-email-nutarojj@ornl.gov>
On Tue, Sep 19, 2017 at 17:43:06 -0400, nutarojj@ornl.gov wrote:
> += Synchronizing the virtual clock with an external source =
> +
> +QEMU has a protocol for synchronizing its virtual clock
> +with the clock of a simulator in which QEMU is embedded
> +as a component. This options is enabled with the -qqq
> +argument, and it should generally be accompanied by the
> +following additional command line arguments:
> +
> +-icount 1,sleep=off -rtc clock=vm
> + or
> +-enable-kvm -rtc clock=vm
> +
> +The -qqq argument is used to supply a file descriptor
> +for a Unix socket, which is used for synchronization.
> +The procedure for launching QEMU in is synchronization
> +mode has three steps:
> +
> +(1) Create a socket pair with the Linux socketpair function.
> + The code segment that does this might look like
I thought a little bit about this patch. I think the feature is useful
and should eventually be provided by QEMU.
The part I'm not sure about is the socket interface; for instance,
it isn't cross-platform.
A better alternative might be to expose this functionality to plugins,
and let the plugins deal with the external world--socket or whatever
IPC is appropriate on the platform they're meant to be run.
Of course the plugin interface is still under discussion. I think though
it should be fairly easy to expose this functionality to plugins. I'll take
a look at in the next few weeks, hopefully also supporting MTTCG instances
(with some collaboration/hack from the plugin, I'm afraid).
Thanks,
Emilio
prev parent reply other threads:[~2017-10-23 16:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-14 18:37 [Qemu-devel] [PATCH V8] qqq: module for synchronizing with a simulation James J. Nutaro
2017-06-02 14:42 ` Emilio G. Cota
2017-06-13 13:13 ` Nutaro, James J.
2017-09-19 21:43 ` nutarojj
2017-10-23 16:23 ` Emilio G. Cota [this message]
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=20171023162312.GA5089@flamenco \
--to=cota@braap.org \
--cc=nutarojj@ornl.gov \
--cc=pbonzini@redhat.com \
--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 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.