Re: [Qemu-devel] [RFC 0/9] QOM: qomify -netdev

2012-03-27 Thread Zhi Yong Wu
On Tue, Mar 27, 2012 at 4:19 PM, Paolo Bonzini wrote: > Il 26/03/2012 16:20, Zhi Yong Wu ha scritto: >> struct PropertyInfo { >>     const char *name; >>     const char *legacy_name; >>     const char **enum_table; >>     int64_t min; >>     int64_t max; >>     int (*parse)(DeviceState *dev, Prope

Re: [Qemu-devel] [RFC 0/9] QOM: qomify -netdev

2012-03-27 Thread Paolo Bonzini
Il 26/03/2012 16:20, Zhi Yong Wu ha scritto: > struct PropertyInfo { > const char *name; > const char *legacy_name; > const char **enum_table; > int64_t min; > int64_t max; > int (*parse)(DeviceState *dev, Property *prop, const char *str); > int (*print)(DeviceState *dev

Re: [Qemu-devel] [RFC 0/9] QOM: qomify -netdev

2012-03-26 Thread Zhi Yong Wu
On Mon, Mar 26, 2012 at 10:39 PM, Andreas Färber wrote: > Am 26.03.2012 13:54, schrieb Stefan Hajnoczi: >> I think host >> devices will also need to 2-step creation process (init and realize). > > Series tested and sent out today. :) As you've known, some models are not based on DeviceState and De

Re: [Qemu-devel] [RFC 0/9] QOM: qomify -netdev

2012-03-26 Thread Stefan Hajnoczi
On Mon, Mar 26, 2012 at 3:39 PM, Andreas Färber wrote: > Am 26.03.2012 13:54, schrieb Stefan Hajnoczi: >> I think host >> devices will also need to 2-step creation process (init and realize). > > Series tested and sent out today. :) Hehe, great. That will be very useful since it allows users to

Re: [Qemu-devel] [RFC 0/9] QOM: qomify -netdev

2012-03-26 Thread Andreas Färber
Am 26.03.2012 13:54, schrieb Stefan Hajnoczi: > I think host > devices will also need to 2-step creation process (init and realize). Series tested and sent out today. :) Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer;

Re: [Qemu-devel] [RFC 0/9] QOM: qomify -netdev

2012-03-26 Thread Zhi Yong Wu
On Mon, Mar 26, 2012 at 7:54 PM, Stefan Hajnoczi wrote: > On Mon, Mar 26, 2012 at 6:40 AM,   wrote: >> From: Zhi Yong Wu >> >> Sending the patchset is mainly intended to get some comments and void the >> wrong development direction. >> >> The patchset is used to qomify -netdev, but it introduce

Re: [Qemu-devel] [RFC 0/9] QOM: qomify -netdev

2012-03-26 Thread Stefan Hajnoczi
On Mon, Mar 26, 2012 at 6:40 AM, wrote: > From: Zhi Yong Wu > > Sending the patchset is mainly intended to get some comments and void the > wrong development direction. > > The patchset is used to qomify -netdev, but it introduce one infrastructure > for host devices based on raw Class and Obj

[Qemu-devel] [RFC 0/9] QOM: qomify -netdev

2012-03-25 Thread zwu . kernel
From: Zhi Yong Wu Sending the patchset is mainly intended to get some comments and void the wrong development direction. The patchset is used to qomify -netdev, but it introduce one infrastructure for host devices based on raw Class and Object, not qdev. So they are not related with DeviceCla