From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBfdH-0005rG-Nd for qemu-devel@nongnu.org; Fri, 07 Feb 2014 02:14:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBfd5-0005as-NL for qemu-devel@nongnu.org; Fri, 07 Feb 2014 02:13:51 -0500 Received: from mail-qc0-x229.google.com ([2607:f8b0:400d:c01::229]:52510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBfd5-0005an-If for qemu-devel@nongnu.org; Fri, 07 Feb 2014 02:13:39 -0500 Received: by mail-qc0-f169.google.com with SMTP id w7so5278173qcr.0 for ; Thu, 06 Feb 2014 23:13:39 -0800 (PST) Sender: Paolo Bonzini Message-ID: <52F4879E.7040300@redhat.com> Date: Fri, 07 Feb 2014 08:13:34 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1391729892-17783-1-git-send-email-pbonzini@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v18 00/10] Shared library module support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Kevin Wolf , Peter Maydell , Michael Tokarev , QEMU Developers , Alex Bligh , Miroslav Rezanina , Stefan Hajnoczi , Lluis Vilanova , Richard Henderson Il 07/02/2014 01:06, Peter Maydell ha scritto: > Why do we need OS specific code to do this when the code > in vl.c for getting the executable path to use as a base for > finding bios blobs works fine without OS specific code? That's because right now module_call_init is not receiving an argv[0] to pass to qemu_exec_dir (os_find_datadir has an argument for that). It can be fixed (in the whole call chain, including e.g. bdrv_init/bdrv_init_with_whitelist). However, note that there is OS-specific code already for Linux, FreeBSD and Windows. Adding Darwin makes sense. On some BSDs there's also /proc/curproc/file. I don't know _which_ BSDs have it though. Paolo