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. All the infrastructure to do this is already in qdev-properties.c. Paolo