|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [RFC 2/9] net: introduce one net host device class |
Date: | Tue, 27 Mar 2012 10:30:19 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 |
Il 26/03/2012 07:40, address@hidden 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
[Prev in Thread] | Current Thread | [Next in Thread] |