From: Stefan Hajnoczi <stefanha@gmail.com>
To: Eva Chen <debby83729@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Let event loop use non-default GMainContext
Date: Fri, 20 Apr 2018 15:39:32 +0800 [thread overview]
Message-ID: <20180420073932.GI15181@stefanha-x1.localdomain> (raw)
In-Reply-To: <CAG0V3WRdK+p-qo9NmnKkKT6kMNBJBxj9vNuYBSzX7zrZU8FGiA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 741 bytes --]
On Mon, Apr 16, 2018 at 04:52:34PM +0800, Eva Chen wrote:
> The reason for replacing default GMainContext is that I simultaneously run
> two qemu, called A and B, in threads. However, these two QEMU using the
> same default GMainContext causes A QEMU to handle the event from B QEMU,
> and run B's handler instead of A's handler.
I think you will hit many other issues if you try to run two instances
of QEMU within a single process. There have been several efforts to
simulate heterogenous systems (e.g. different CPUs as part of one
computer). Some of them run multiple QEMU instances and communicate
between the processes.
Before going further, have you looked into existing work on emulating
heterogenous systems under QEMU?
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next prev parent reply other threads:[~2018-04-20 7:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-16 8:52 [Qemu-devel] Let event loop use non-default GMainContext Eva Chen
2018-04-20 7:39 ` Stefan Hajnoczi [this message]
[not found] ` <CAG0V3WTu2TBFRkcRyO7oHuGWxa=wuEAvRjkK6f39AcswDWNmxg@mail.gmail.com>
2018-04-21 10:04 ` Stefan Hajnoczi
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=20180420073932.GI15181@stefanha-x1.localdomain \
--to=stefanha@gmail.com \
--cc=debby83729@gmail.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 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).