From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLvaF-0001aE-Bs for qemu-devel@nongnu.org; Mon, 25 Aug 2014 10:49:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLvaA-0004gs-Jh for qemu-devel@nongnu.org; Mon, 25 Aug 2014 10:49:23 -0400 Received: from afflict.kos.to ([92.243.29.197]:42354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLvaA-0004ge-De for qemu-devel@nongnu.org; Mon, 25 Aug 2014 10:49:18 -0400 Date: Mon, 25 Aug 2014 17:49:17 +0300 From: Riku Voipio Message-ID: <20140825144917.GA17919@afflict.kos.to> References: <20140825090917.GA14835@afflict.kos.to> <53FAFE92.9040001@suse.de> <20140825124257.GA16926@afflict.kos.to> <20140825135555.GA17547@afflict.kos.to> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] linux-user: enabling binfmt P flag List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Joakim Tjernlund Cc: peter.maydell@linaro.org, Riku Voipio , Alexander Graf , qemu-devel@nongnu.org On Mon, Aug 25, 2014 at 04:30:40PM +0200, Joakim Tjernlund wrote: > Riku Voipio wrote on 2014/08/25 15:55:55: > > > > Hi, > > > > On Mon, Aug 25, 2014 at 03:39:19PM +0200, Joakim Tjernlund wrote: > > > Then consider when you run a LXC without P flag. > > > > Please remember that your usecase of running Qemu in LXC is a new > feature, > > never before supported. Adding new features is always nice. However, it > must > > not happen with expense of regressing already working features > > (traditional chroot). > OK, but traditional chroot is unaffected with my patch. Only binfmt > users which uses the binfmt flag O will have to change to PO. How > many is that? Traditional chroot is with binfmt_misc. Debian and ubuntu packages of Qemu enable OC flags, so at least all debian/ubuntu users who use qemu linux-user in chroots are affected. Using OC seems quite typical: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-emulation/qemu/files/qemu-binfmt.initd-r1?view=markup http://rwmj.wordpress.com/2013/12/22/how-to-run-aarch64-binaries-on-an-x86-64-host-using-qemu-userspace-emulation/#content Others, like Suse, scratchbox use the P flag and wrapper binary.