From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJMKE-0007dG-VK for qemu-devel@nongnu.org; Mon, 18 Aug 2014 08:46:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJMKA-0003TF-CY for qemu-devel@nongnu.org; Mon, 18 Aug 2014 08:46:14 -0400 Received: from mail-la0-f54.google.com ([209.85.215.54]:63228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJMKA-0003T7-5F for qemu-devel@nongnu.org; Mon, 18 Aug 2014 08:46:10 -0400 Received: by mail-la0-f54.google.com with SMTP id hz20so4339841lab.41 for ; Mon, 18 Aug 2014 05:46:09 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Peter Maydell Date: Mon, 18 Aug 2014 13:45:49 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PULL 00/24] Linux-user updates List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Joakim Tjernlund Cc: Riku Voipio , QEMU Developers On 18 August 2014 13:38, Joakim Tjernlund wrote: > Peter Maydell wrote on 2014/08/18 12:58:48: >> Well, binfmt-misc works fine for me as it is and presumably >> for most people or we'd have had more complaints. So >> breaking all those existing working setups is really something >> we should avoid as much as possible. > > How do you use it? With LXC booting a VM with traditional init? No. Just a straightforward chroot environment with a statically linked qemu in it, and a binfmt_misc config like: e104462:trusty:qemu$ cat /proc/sys/fs/binfmt_misc/qemu-arm enabled interpreter /usr/bin/qemu-arm-static flags: OC offset 0 magic 7f454c4601010100000000000000000002002800 mask ffffffffffffff00fffffffffffffffffeffffff This works fine for the things I try to run in the chroot (mostly test programs, also bash and basic command line utilities). > There are complaints which dists had to solve because QEMU didn't. Usually > this is a separate static QEMU package/hack with a binfmt wrapper. > Gentoo used to have one but this got removed. I'm sure there are cases which don't work; but we should try to find a way which allows us to make those work (with a recommended change to binfmt misc registration) which doesn't break the old configs in the process. thanks -- PMM