From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZbXr-0004u2-4f for qemu-devel@nongnu.org; Wed, 09 Sep 2015 05:19:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZbXm-0006RZ-96 for qemu-devel@nongnu.org; Wed, 09 Sep 2015 05:19:59 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:35191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZbXm-0006Qa-24 for qemu-devel@nongnu.org; Wed, 09 Sep 2015 05:19:54 -0400 Received: by wicge5 with SMTP id ge5so146852674wic.0 for ; Wed, 09 Sep 2015 02:19:53 -0700 (PDT) Date: Wed, 9 Sep 2015 10:19:51 +0100 From: Stefan Hajnoczi Message-ID: <20150909091951.GD9777@stefanha-thinkpad.redhat.com> References: <1441596538-4412-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1441596538-4412-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH] iohandler: Use aio API List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Paolo Bonzini , qemu-devel@nongnu.org On Mon, Sep 07, 2015 at 11:28:58AM +0800, Fam Zheng wrote: > iohandler.c shares the same interface with aio, but with duplicated > code. It's better to rebase iohandler, also because that aio is a > more friendly interface to multi-threads. > > Create a global AioContext instance and let its GSource handle the > iohandler events. > > Signed-off-by: Fam Zheng > --- > include/qemu/main-loop.h | 3 +- > iohandler.c | 115 +++++++---------------------------------------- > main-loop.c | 5 ++- > 3 files changed, 21 insertions(+), 102 deletions(-) Reviewed-by: Stefan Hajnoczi