[Qemu-devel] Re: [PATCH 1/8] qdev: Allow device addressing via 'driver.instance'

2010-05-18 Thread Jan Kiszka
Gerd Hoffmann wrote: > On 05/18/10 14:15, Markus Armbruster wrote: >> Jan Kiszka writes: >> >>> Extend qbus_find_dev to allow addressing of devices without an unique id >>> via an optional instance number. The new formats are 'driver.instance' >>> and 'alias.instance'. >>> >>> Signed-off-by: Jan K

[Qemu-devel] Re: [PATCH 1/8] qdev: Allow device addressing via 'driver.instance'

2010-05-18 Thread Gerd Hoffmann
Hi, Agreed. The problem here is that we sent the instance_id on the wire, so for "legacy" devices that used an instance_id != -1, we are stuck with it :( Another way would be to fill the instance id with something useful, say encode the pci address there for pci devices. That should be go

[Qemu-devel] Re: [PATCH 1/8] qdev: Allow device addressing via 'driver.instance'

2010-05-18 Thread Juan Quintela
Gerd Hoffmann wrote: > On 05/18/10 14:15, Markus Armbruster wrote: >> Jan Kiszka writes: >> >>> Extend qbus_find_dev to allow addressing of devices without an unique id >>> via an optional instance number. The new formats are 'driver.instance' >>> and 'alias.instance'. >>> >>> Signed-off-by: Jan