qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Let event loop use non-default GMainContext


From: Eva Chen
Subject: [Qemu-devel] Let event loop use non-default GMainContext
Date: Mon, 16 Apr 2018 16:52:34 +0800

Hello,

It seems that AIO use global default GMainContext by
*g_main_context_default()*.
I want to replace all default GMainContext into another GMainContext by
*g_main_context_new()*, but I have no idea when and where to add
*g_main_context_new()*.

It should be only created new GMainContext once, then others use this new
GMainContext.
But it's hard to create a global variable that will not cause redefine
during make

Is there any suggestion which data structure is suitable for adding a
GMainContext?
or is there any advice for replacing default GMainContext?

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 will be grateful for any help, thanks.

Sincerely,
Eva



​


reply via email to

[Prev in Thread] Current Thread [Next in Thread]