From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQELH-0004mt-3F for qemu-devel@nongnu.org; Thu, 11 Apr 2013 06:02:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQELF-0002uk-WE for qemu-devel@nongnu.org; Thu, 11 Apr 2013 06:02:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQELF-0002tj-O8 for qemu-devel@nongnu.org; Thu, 11 Apr 2013 06:02:53 -0400 Message-ID: <51668A3E.4080307@redhat.com> Date: Thu, 11 Apr 2013 12:02:38 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1364804434-7980-1-git-send-email-qemulist@gmail.com> <1364804434-7980-6-git-send-email-qemulist@gmail.com> In-Reply-To: <1364804434-7980-6-git-send-email-qemulist@gmail.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 5/5] hostmem: init/finalize hostmem listener List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liu Ping Fan Cc: Peter Maydell , Anthony Liguori , Jan Kiszka , Marcelo Tosatti , qemu-devel@nongnu.org, Vasilis Liaskovitis , Stefan Hajnoczi Il 01/04/2013 10:20, Liu Ping Fan ha scritto: > From: Liu Ping Fan > > Signed-off-by: Liu Ping Fan > --- > vl.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/vl.c b/vl.c > index 7643f16..46a25cf 100644 > --- a/vl.c > +++ b/vl.c > @@ -4157,6 +4157,7 @@ int main(int argc, char **argv, char **envp) > } > > os_set_line_buffering(); > + hostmem_init(); > > qemu_init_cpu_loop(); > qemu_mutex_lock_iothread(); > @@ -4174,6 +4175,7 @@ int main(int argc, char **argv, char **envp) > > /* clean up network at qemu process termination */ > atexit(&net_cleanup); > + atexit(&hostmem_finalize); This should be in hostmem_init. Paolo > > if (net_init_clients() < 0) { > exit(1); >