On Tue, Mar 27, 2012 at 4:30 PM, Paolo Bonzini <pbonz...@redhat.com> wrote: > Il 26/03/2012 07:40, zwu.ker...@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. This should be done in your QemuOpts QOM feature, right?:) > > All the infrastructure to do this is already in qdev-properties.c. > > Paolo
-- Regards, Zhi Yong Wu