Received: from eggs.gnu.org ([208.118.235.92]:57775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UF2dr-0004uM-7W for qemu-devel@nongnu.org; Mon, 11 Mar 2013 09:19:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UF2dp-0004LO-Fl for qemu-devel@nongnu.org; Mon, 11 Mar 2013 09:19:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UF2dp-0004K9-6U for qemu-devel@nongnu.org; Mon, 11 Mar 2013 09:19:49 -0400 From: Markus Armbruster References: <1363000640-13398-1-git-send-email-pbonzini@redhat.com> <513DC5FA.30205@redhat.com> Date: Mon, 11 Mar 2013 14:19:45 +0100 In-Reply-To: (Peter Maydell's message of "Mon, 11 Mar 2013 12:39:25 +0000") Message-ID: <87mwuahy4u.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [RFC] Proposal for hw/ split List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Peter Crosthwaite , Paolo Bonzini , agraf@suse.de, qemu-devel@nongnu.org, afaerber@suse.de Peter Maydell writes: > On 11 March 2013 11:54, Paolo Bonzini wrote: >> Il 11/03/2013 12:31, Peter Maydell ha scritto: >>> On 11 March 2013 11:17, Paolo Bonzini wrote: >>>> hw/arm11mpcore.c hw/arm/arm11mpcore.c >>> >>> Two devices but I can split them if you insist. >> >> These are little more than SoC containers, aren't they? > > They're container devices, yes. But why should container devices > go under hw/$ARCH ? > >>>> hw/kvm/arm_gic.c hw/arm/kvm/arm_gic.c >>> >>> If we're going to move kvm specific devices out of hw/kvm I'd >>> rather they just went in hw/. It's an implementation detail that >>> a device's back end is KVM specific, so kvm_arm_gic.c should go >>> alongside arm_gic.c. >> >> I moved them to hw/ARCH because they really depend on the host kernel. > > That's backwards. To the extent hw/ARCH is anything, it's stuff > specific to guest ARCH, not host ARCH. > > I guess fundamentally my point here is I don't really see why > you're trying to move stuff into hw/ARCH at all. Better to find > a classification scheme that doesn't try to distinguish based > on guest architecture IMHO. > >> Even the very same device might have a different interface on a >> different kernel. But I can certainly move these to hw/SUBSYSTEM/kvm. >> >> (I think you said you disagree, but the next step for me would be to >> move hw/ARCH to target-ARCH/hw). > > Yeah. If nothing else, for practical reasons: Anthony will take > pullreqs for hw/ but not for target-ARCH. Also target-ARCH already > has a nice clean definition of what code goes in it: it's the > code related to emulation of the ARCH CPU. Putting device code > into it would just break that definition for no particularly > obvious reason I can see (whilst also breaking the definition > that devices live under hw/). Good point. I really, really like separating device models from TCG as clearly as possible.