From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGl96-0007sm-4o for qemu-devel@nongnu.org; Wed, 26 Sep 2012 02:30:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGl94-00024a-Of for qemu-devel@nongnu.org; Wed, 26 Sep 2012 02:30:56 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:64758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGl94-000242-HF for qemu-devel@nongnu.org; Wed, 26 Sep 2012 02:30:54 -0400 Received: by wiwc10 with SMTP id c10so2871980wiw.10 for ; Tue, 25 Sep 2012 23:30:53 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5062A11B.6090003@redhat.com> Date: Wed, 26 Sep 2012 08:30:51 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1348577763-12920-1-git-send-email-pbonzini@redhat.com> <1348577763-12920-7-git-send-email-pbonzini@redhat.com> <87wqzhn54c.fsf@codemonkey.ws> In-Reply-To: <87wqzhn54c.fsf@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 06/17] aio: introduce AioContext, move bottom halves there List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org Il 25/09/2012 23:51, Anthony Liguori ha scritto: >> > typedef struct QEMUTimer QEMUTimer; >> > typedef struct QEMUFile QEMUFile; >> > +typedef struct QEMUBH QEMUBH; >> > typedef struct DeviceState DeviceState; >> > >> > struct Monitor; > Any reason to do this here vs. just #include "qemu-aio.h" in > qemu-common.h? > > I don't see an obvious dependency on qemu-common.h in qemu-aio.h other > than this typedef. I thought we were moving away from including everything in qemu-common.h. In fact, the only includes from QEMU in qemu-common.h are: #ifdef _WIN32 #include "qemu-os-win32.h" #endif #ifdef CONFIG_POSIX #include "qemu-os-posix.h" #endif #include "osdep.h" #include "bswap.h" #include "cpu.h" where cpu.h could probably be removed---perhaps should. Paolo