|
From: | Gerd Hoffmann |
Subject: | Re: [Qemu-devel] [PATCH] replace duplicated code. |
Date: | Thu, 18 Jun 2009 16:33:02 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2 |
On 06/18/09 15:59, Glauber Costa wrote:
You have changed the ordering of the qdev_set_netdev and qdev_init calls. I don't think this is correct, the init callback will not see the nicinfo then.I see. How would you feel about changing the nd field of qdev for a void * one, call it private, or whatever? then we could have a generic qdev_set_private(dev, p), that does it for everybody. I must say I kinda dislike that specific dependency on nd for net devices. Ideally, all devices should be treated as the same.
What problem you are trying to solve? Unless there is something urgent to fix I'd leave it as is for now.We need some sane way to link guest config (hopefully done by config file soon) to host config. Link nic to vlan in that case, but disks and chardevs share the same issue. I consider DeviceState->nd being temporary and expect will go away once we figured that out. It is a bigger undertaking though ...
cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |