Received: from eggs.gnu.org ([2001:4830:134:3::10]:43365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUcfy-0000oS-ER for qemu-devel@nongnu.org; Sun, 08 Mar 2015 10:59:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUcfv-0003G7-7z for qemu-devel@nongnu.org; Sun, 08 Mar 2015 10:59:30 -0400 Received: from periapsis.rymdfartsverket.se ([46.21.107.176]:56141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUcfu-0003Fy-UB for qemu-devel@nongnu.org; Sun, 08 Mar 2015 10:59:27 -0400 Date: Sun, 8 Mar 2015 15:59:23 +0100 From: Tobias Nygren Message-Id: <20150308155923.9d50922f373283956ca544b3@NetBSD.org> In-Reply-To: References: <1425591461-17550-1-git-send-email-tnn@NetBSD.org> <20150308133721.860608f57366c1806fb1e36a@NetBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] user-exec.c: fix build on NetBSD/sparc64 and NetBSD/arm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Tobias Nygren , QEMU Developers On Sun, 8 Mar 2015 21:53:30 +0900 Peter Maydell wrote: > On 8 March 2015 at 21:37, Tobias Nygren wrote: > > On Sun, 8 Mar 2015 19:27:27 +0900 > > Peter Maydell wrote: > >> Does NetBSD have a big stack of out-of-tree patches for QEMU, > >> or do you run basically stock upstream QEMU? > > > > Hi, it is more or less stock except for this patch. > > Cool. (I know the FreeBSD folk have a pretty large set > of user-mode emulation changes which we've unfortunately > not been able to get upstream yet since there's a lot of > cleanup work required.) > > Does the user-emulation work for running random > binaries, or are there known limitations to what > guest/host architectures work well? (I have some > BSD VMs which I was using for compile testing of > the bsd-user code a while back, but I forget what > results I was seeing with which BSD variant...) I don't know much more than that developers are actively using it to test their changes on some architectures. It works well enough for them to get their job done, I suppose. Standalone static binaries and basic syscall emulation seem to work OK. There is a problem with ps_strings / argv[0] being NULL in crt0.o. (looks like it would not be hard to fix) > > There > > are three other small patches that add parenthesis in a few > > places to work around a conflict with system macros when > > -fstack-protector is enabled but I'm not confident > > those are suitable for upstreaming. > > If they're small you might as well post them here anyway; > we may be able to suggest a better fix or perhaps they'll > be OK to apply upstream anyway. Actually looking further this has been properly fixed in the base system and only affects the old 5.x release which is due to be desupported when 7.0 is released, so I wouldn't worry about it. Cheers, -Tobias