From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxP3v-0006Gc-Db for qemu-devel@nongnu.org; Wed, 27 Sep 2017 23:00:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxP3q-0001xj-GG for qemu-devel@nongnu.org; Wed, 27 Sep 2017 23:00:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52078) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dxP3q-0001xX-AZ for qemu-devel@nongnu.org; Wed, 27 Sep 2017 23:00:26 -0400 From: Peter Xu Date: Thu, 28 Sep 2017 10:59:53 +0800 Message-Id: <20170928025958.1420-1-peterx@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v4 0/5] iothread: allow to create internal iothreads List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , "Daniel P . Berrange" , Stefan Hajnoczi , Fam Zheng , peterx@redhat.com, =?UTF-8?q?Andreas=20F=C3=A4rber?= , Manos Pitsidianakis , "Dr . David Alan Gilbert" v4: - fix comment in patch 1 [Fam, Stefan] - add one more patch from Stefan to fix the aio glib warning v3: - pick up r-bs (one missing for Fam's on last patch) - fix patch 1 to create isolated internal container v2: - add one patch to provide object_get_internal_root() [Daniel] - patch 2: use the new object_get_internal_root() - patch 3: fix commit message, "reentrant" is wrongly used by me. it should be "called multiple times"; move iothread->ctx check into iothread_stop() [Fam] - patch 4: add one paragraph in commit message, mention about the glib issue. [Fam] When trying to support monitor OOB (out-of-band) commands, I found that the monitor IO thread I did looks just like iothread. It would be best if I can use iothread directly. However it seems that it was mostly used by "-object iothread" before but not friendly to internal usages. This series tries to export essential functions to do it. Also, I think patch 2 also fixes a bug in iothread_stop(). Please review. Thanks. Peter Xu (4): qom: provide root container for internal objs iothread: provide helpers for internal use iothread: export iothread_stop() iothread: delay the context release to finalize Stefan Hajnoczi (1): aio: fix assert when remove poll during destroy include/qom/object.h | 11 +++++++++++ include/sysemu/iothread.h | 9 +++++++++ iothread.c | 46 ++++++++++++++++++++++++++++++++++++-----= ----- qom/object.c | 11 +++++++++++ util/aio-posix.c | 9 ++++++++- 5 files changed, 75 insertions(+), 11 deletions(-) --=20 2.13.5