Received: from eggs.gnu.org ([208.118.235.92]:38972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPFu5-0005Jf-F8 for qemu-devel@nongnu.org; Fri, 19 Oct 2012 12:58:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TPFu4-0004L1-9j for qemu-devel@nongnu.org; Fri, 19 Oct 2012 12:58:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPFu4-0004KM-1h for qemu-devel@nongnu.org; Fri, 19 Oct 2012 12:58:32 -0400 Date: Fri, 19 Oct 2012 13:59:09 -0300 From: Eduardo Habkost Message-ID: <20121019165909.GA627@otherpad.lan.raisama.net> References: <1350414523-8117-1-git-send-email-ehabkost@redhat.com> <1350414523-8117-12-git-send-email-ehabkost@redhat.com> <87y5j5t1cy.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 11/12] include core qdev code into *-user, too List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: riku.voipio@iki.fi, qemu-devel@nongnu.org, blauwirbel@gmail.com, Anthony Liguori , Igor Mammedov , Andreas =?iso-8859-1?Q?F=E4rber?= On Wed, Oct 17, 2012 at 08:21:17PM +0100, Peter Maydell wrote: > On 17 October 2012 19:11, Anthony Liguori wrote: > > It's dangerously close to bike-shedding, but i don't think qdev belongs > > in qom/. It's not core infrastructure. It's the device base class and > > belongs IMHO in hw/. > > "-user emulators don't get anything from hw/" is one of those semi > arbitrary but easily definable lines that I'd prefer it if we didn't > break. (Although IIRC there was a directory-renaming proposal recently > which maybe defines some different lines instead.) I just rememberd another reason for moving qdev-core to qom: the CPU class itself (that's going to be a child of DeviceState) is already inside qom. Keeping qdev-core it on hw/ would mean having a qom->hw->qom dependency chain (qom/cpu.c -> hw/qdev.c -> qom/object.c). So, by now I am keeping the proposed patch as-is (moving qdev-core to qom/). -- Eduardo