[Qemu-devel] Re: [PATCH 5/7] qdev: add qdev_foreach()

2009-11-23 Thread Gerd Hoffmann
On 11/20/09 15:20, Mark McLoughlin wrote: I've pushed a series of patches to the fix-announce-self-rfc.v2 branch on my tree: http://repo.or.cz/w/qemu/markmc.git Looks much better. If you have a special version for nics anyway (qemu_new_nic) you can have that one take a NICConf parameter I

[Qemu-devel] Re: [PATCH 5/7] qdev: add qdev_foreach()

2009-11-20 Thread Mark McLoughlin
Hi Gerd, Thanks for looking, you're absolutely right that this approach just isn't right with e.g. -device On Mon, 2009-11-16 at 10:28 +0100, Gerd Hoffmann wrote: > On 11/12/09 21:29, Mark McLoughlin wrote: > > No doubt this is the worst idea ever, but the requirement is simple - > > some way to

[Qemu-devel] Re: [PATCH 5/7] qdev: add qdev_foreach()

2009-11-16 Thread Gerd Hoffmann
On 11/12/09 21:29, Mark McLoughlin wrote: No doubt this is the worst idea ever, but the requirement is simple - some way to iterate all NICs in the system. Doesn't have net.c a list of all vlanclientstates it could use instead? cheers, Gerd