Received: from eggs.gnu.org ([2001:4830:134:3::10]:38631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0WRB-0007C2-Ux for qemu-devel@nongnu.org; Tue, 07 Jan 2014 08:11:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0WR7-0004ro-4z for qemu-devel@nongnu.org; Tue, 07 Jan 2014 08:11:17 -0500 Received: from smtp.citrix.com ([66.165.176.89]:55037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0WR7-0004rc-1H for qemu-devel@nongnu.org; Tue, 07 Jan 2014 08:11:13 -0500 Date: Tue, 7 Jan 2014 13:10:19 +0000 From: Stefano Stabellini In-Reply-To: <20140106182541.GE10654@zion.uk.xensource.com> Message-ID: References: <20140106125410.GD3119@zion.uk.xensource.com> <20140106151251.GB10654@zion.uk.xensource.com> <52CAF1F7.80304@suse.de> <20140106182541.GE10654@zion.uk.xensource.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1342847746-1374307092-1389100219=:8667" Subject: Re: [Qemu-devel] [Xen-devel] Project idea: make QEMU more flexible List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wei Liu Cc: Peter Maydell , "xen-devel@lists.xen.org" , =?UTF-8?Q?Andreas_F=C3=A4rber?= , QEMU Developers --1342847746-1374307092-1389100219=:8667 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 6 Jan 2014, Wei Liu wrote: > On Mon, Jan 06, 2014 at 07:12:07PM +0100, Andreas F=C3=A4rber wrote: > > Am 06.01.2014 16:12, schrieb Wei Liu: > > > On Mon, Jan 06, 2014 at 01:30:20PM +0000, Peter Maydell wrote: > > >> On 6 January 2014 12:54, Wei Liu wrote: > > >>> In fact I've already hacked a prototype during Christmas. What's I'= ve > > >>> done so far: > > >>> > > >>> 1. create target-null which only has some stubs to CPU emulation > > >>> framework. > > >>> > > >>> 2. add a few lines to configure / Makefiles*, create > > >>> default-configs/null-softmmu > > >> > > >> I think it would be better to add support to allow you to > > >> configure with --disable-tcg. This would match the existing > > >> --disable/--enable switches for KVM and Xen, and then you > > >> could configure --disable-kvm --disable-tcg --enable-xen > > >> and get a qemu-system-i386 or qemu-system-arm with only > > >> the Xen support and none of the TCG emulation code. > > >> > > >=20 > > > In this case the architecture-specific code in target-* is still > > > included which might not help reduce the size much. > >=20 > > Define target-specific code in target-*? Most of that is TCG-specific > > and wouldn't be compiled in in that case. The KVM-specific bits don't > > get compiled in with --disable-kvm today already save for a few stubs. > >=20 >=20 > Probably I used the wrong terminology. I meant, say, > target-i386/translate.c, exec.c etc, which won't be necessary for Xen. I > guess that's what you mean by TCG-specific. I see the possibility to > create some stubs for them, if that's what you mean. >=20 > > Adding yet another separate binary with no added functional value > > doesn't strike me as the most helpful idea for the community, compared > > to configure-optimizing the binaries built today. > >=20 > > Who would use the stripped-down binaries anyway? Just Citrix? Because > > SUSE is headed for sharing QEMU packages between Xen and KVM, so we > > couldn't enable such Xen-only-optimized binaries. > >=20 >=20 > No, I don't speak for Citrix. I work for opensource Xen project, I just > happen to be hired by Citrix. The general idea is to have an option for > user to create smaller binary, without those unnecessary code compiled / > linked in. How vendor makes their choice is out of my reach. :-) Right. Lots of people trying Xen on ARM today come from the embedded world: routers, set top boxes, in-vehicle entertainment, etc. One wouldn't want to run a full blown distro in these cases or a generic QEMU binary. The smaller the better. I am sure that this work would be useful even on bigger systems as somebody already pointed out on this thread. --1342847746-1374307092-1389100219=:8667--