Received: from eggs.gnu.org ([2001:4830:134:3::10]:36561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJxKl-0001c6-GM for qemu-devel@nongnu.org; Wed, 11 Sep 2013 23:12:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJxKf-0008Tv-HI for qemu-devel@nongnu.org; Wed, 11 Sep 2013 23:12:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJxKf-0008Tr-8m for qemu-devel@nongnu.org; Wed, 11 Sep 2013 23:12:37 -0400 Date: Thu, 12 Sep 2013 11:12:28 +0800 From: Fam Zheng Message-ID: <20130912031228.GM9134@T430s.nay.redhat.com> References: <1378877909-28518-1-git-send-email-famz@redhat.com> <1378877909-28518-5-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [RFC PATCH v5 4/6] module: implement module loading function Reply-To: famz@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Michael Tokarev , QEMU Developers , Stefan Hajnoczi , Paolo Bonzini , =?iso-8859-1?Q?Llu=EDs?= Vilanova , Richard Henderson On Wed, 09/11 15:24, Peter Maydell wrote: > On 11 September 2013 06:38, Fam Zheng wrote: > > --- a/linux-user/main.c > > +++ b/linux-user/main.c > > @@ -34,6 +34,7 @@ > > #include "qemu/timer.h" > > #include "qemu/envlist.h" > > #include "elf.h" > > +#include > > > > char *exec_path; > > > > @@ -3551,6 +3552,8 @@ int main(int argc, char **argv, char **envp) > > int i; > > int ret; > > > > + module_load(MODULE_LOAD_UI); > > + module_load(MODULE_LOAD_NET); > > module_call_init(MODULE_INIT_QOM); > > This looks kind of fishy. The *-user binaries don't even > have any UI, and they shouldn't be using the networking > either. For that matter it's really unclear to me that they > should have any kind of loadable modules at all. > I see, dropping this change.