From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCRBy-00013j-Md for qemu-devel@nongnu.org; Sun, 09 Feb 2014 05:00:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCRBq-0002Of-4I for qemu-devel@nongnu.org; Sun, 09 Feb 2014 05:00:50 -0500 Received: from mail-ea0-x235.google.com ([2a00:1450:4013:c01::235]:43498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCRBp-0002OY-UT for qemu-devel@nongnu.org; Sun, 09 Feb 2014 05:00:42 -0500 Received: by mail-ea0-f181.google.com with SMTP id k10so171161eaj.40 for ; Sun, 09 Feb 2014 02:00:41 -0800 (PST) Sender: Paolo Bonzini Message-ID: <52F751C0.2030802@redhat.com> Date: Sun, 09 Feb 2014 11:00:32 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <20140208044003.lMguK8Jj4y2xRi1u%famz@redhat.com> <52F6BF85.8080504@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v19 11/11] module: Pass argv[0] along the module load path List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Kevin Wolf , Peter Maydell , Fam Zheng , Stefan Hajnoczi , Michael Tokarev , QEMU Developers , Alex Bligh , Miroslav Rezanina , =?UTF-8?B?TGx1w61zIFZpbGFub3Zh?= , Richard Henderson Il 09/02/2014 10:26, Fam Zheng ha scritto: > > The executable directory is not found once and for all, it's recomputed on > > any call to module_load or os_find_datadir. > > > > How about compute it for once in main() and load in module_call_init()? Sure, that's what Peter's suggesting. Paolo