[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Gerd Hoffmann
Subject: [Qemu-devel] Re: [PATCH 1/8] qdev: Allow device addressing via 'driver.instance'
Date: Tue, 18 May 2010 15:06:32 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100430 Fedora/3.0.4-2.fc12 Thunderbird/3.0.4


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 good enough to reliably identify devices even after hot-plugging them in and out.

Of course this has transition isses too. But maybe it is easier to handle than replacing instance_id with something entirely different.

And it also makes the instance id less useful to address devices in a human-friendly way.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]