Received: from eggs.gnu.org ([2001:4830:134:3::10]:46437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHDmT-0005bq-TT for qemu-devel@nongnu.org; Wed, 14 Dec 2016 12:55:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHDmQ-0005g0-Ri for qemu-devel@nongnu.org; Wed, 14 Dec 2016 12:55:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49138) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cHDmQ-0005fq-Jk for qemu-devel@nongnu.org; Wed, 14 Dec 2016 12:55:50 -0500 Date: Wed, 14 Dec 2016 15:55:46 -0200 From: Eduardo Habkost Message-ID: <20161214175546.GO3808@thinpad.lan.raisama.net> References: <1481706465-5636-1-git-send-email-thuth@redhat.com> <87lgviiwn0.fsf@dusky.pond.sub.org> <50196ce3-9320-da14-07d2-867e09ffdcfc@redhat.com> <87shpqcwyz.fsf@dusky.pond.sub.org> <8ca18f15-e2f6-965e-6eaa-7b935c83d9c4@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8ca18f15-e2f6-965e-6eaa-7b935c83d9c4@redhat.com> Subject: Re: [Qemu-devel] [PATCH for-2.9 v2] Move target-* CPU file into a target/ folder List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Markus Armbruster , Thomas Huth , Peter Maydell , Anthony Green , Mark Cave-Ayland , QEMU Developers , Max Filippov , Cornelia Huck , "Edgar E. Iglesias" , Guan Xuetao , Jia Liu , Alexander Graf , Christian Borntraeger , David Gibson , Artyom Tarasenko , James Hogan , Yongbok Kim , Richard Henderson , Peter Crosthwaite , Bastian Koppelmann , Marcelo Tosatti , Laurent Vivier , Michael Walle , Aurelien Jarno On Wed, Dec 14, 2016 at 06:42:49PM +0100, Paolo Bonzini wrote: > > > On 14/12/2016 17:11, Markus Armbruster wrote: > > Thomas Huth writes: > > > >> On 14.12.2016 12:33, Peter Maydell wrote: > >>> On 14 December 2016 at 11:21, Markus Armbruster wrote: > >>>> Thomas Huth writes: > >>>> > >>>>> We've currently got 18 architectures in QEMU, and thus 18 target-xxx > >>>>> folders in the root folder of the QEMU source tree. More architectures > >>>>> (e.g. RISC-V, AVR) are likely to be included soon, too, so the main > >>>>> folder of the QEMU sources slowly gets quite overcrowded with the > >>>>> target-xxx folders. > >>>>> To disburden the main folder a little bit, let's move the target-xxx > >>>>> folders into a dedicated target/ folder, so that target-xxx/ simply > >>>>> becomes target/xxx/ instead. > >>>> > >>>> The root directory is crowded, but hardly because of its 18 target-* > >>>> entries: > >>>> > >>>> $ git-ls-tree --name-only v2.8.0-rc3 | wc -l > >>>> 167 > >>>> > >>>> Getting the 18 target-* out of the way would help a little, but I hate > >>>> making the directory tree deeper. > >> > >> We already got folders in folders in a lot of places, so this is not > >> increasing the maximum depths ;-) > > > > Let me rephrase: I hate making directory tree *branches* deeper. > > > >>>> We have 110 files in the root directory. Moving some of them to > >>>> subdirectories looks more promising to me. > >>> > >>> True, but Thomas has done the work here already, so I don't think > >>> we lose anything by merging it rather than throwing it away. > >> > >> Yes, and please consider that there are more targets coming soon ... > >> RISC-V, AVR, ... and I am pretty sure that we won't stop there. > > > > Even doubling the number of target-* won't make our root directory > > appreciatively messier. > > Cutting down the number of toplevel directories by 1/3rd makes some > sense though. > > >> With regards to the other *.c files in the main directory, I agree with > >> Markus, we should move some of them to suitable subdirectories, too. I > >> could have a look at that when I've got some spare minutes... > > > > Thanks in advance! > > Yeah, there are some easy moves to migration/ and block/. (One old idea > was also to move block layer drivers to block/{formats,protocols}/ to > make room for the core block layer in block/). Also perhaps new > directories monitor/, accel/ and tools/. I was considering moving xen-* and kvm-* to xen/ and kvm/ directories, but an accel/ directory would be even better. I plan to send a patch to do this: tcg/ => accel/tcg/ kvm-* => accel/kvm/* (except for stubs) xen-* => accel/xen/* (except for stubs) qtest.c => accel/qtest/qtest.c -- Eduardo