From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCSQM-0000NE-Ms for qemu-devel@nongnu.org; Tue, 27 Mar 2012 05:10:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCSQI-0001yM-2w for qemu-devel@nongnu.org; Tue, 27 Mar 2012 05:10:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCSQH-0001y8-R5 for qemu-devel@nongnu.org; Tue, 27 Mar 2012 05:10:38 -0400 Message-ID: <4F717A9B.6060804@redhat.com> Date: Tue, 27 Mar 2012 10:30:19 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1332740423-8426-1-git-send-email-zwu.kernel@gmail.com> <1332740423-8426-5-git-send-email-zwu.kernel@gmail.com> In-Reply-To: <1332740423-8426-5-git-send-email-zwu.kernel@gmail.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 2/9] net: introduce one net host device class List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: zwu.kernel@gmail.com Cc: Zhi Yong Wu , qemu-devel@nongnu.org, stefanha@linux.vnet.ibm.com Il 26/03/2012 07:40, zwu.kernel@gmail.com ha scritto: > + /*< public >*/ > + QemuOpts *opts; > + Monitor *mon; > + const char *name; > + NetClientState *peer; > +}; The QemuOpts should not be part of the struct. You need to store them into properties at initialization time, and forget them afterwards. All the infrastructure to do this is already in qdev-properties.c. Paolo