Re: [Qemu-devel] [RFC PATCH 1/5] qdev: Create qdev_get_dev_path()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Brook
Date: Tuesday, June 15, 2010 - 4:28 am

> > Alex proposed to disambiguate by adding "identified properties of the

This is where I think you're missing a trick. We don't need to augment the 
name, we just need to allow the bus id to be used instead.
 

We can allow both.

A bus address is sufficient to uniquely identify a device.  I see no reason to 
require the driver name,  or to include it in the canonical device address.


If we have bus-address then I see no good reason to also add instance-no.
For busses that no natural address, we can define the address to be an 
instance number.


I wasn't aware that there was any suggestion of a separate savevm-specific 
path.  The whole point of a device path is to uniquely identify a device 
within a machine. There may be many different paths that identify the same 
device.  When given a device and asked to generate  path, the result should be 
the canonical address.  IMO this should be the least volatile, and avoid 
redundant information.

Paul
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC PATCH 1/5] qdev: Create qdev_get_dev_path(), Alex Williamson, (Sun Jun 13, 10:51 pm)
Re: [Qemu-devel] [RFC PATCH 1/5] qdev: Create qdev_get_dev ..., Markus Armbruster, (Sun Jun 13, 11:39 pm)
Re: [Qemu-devel] [RFC PATCH 1/5] qdev: Create qdev_get_dev ..., Markus Armbruster, (Tue Jun 15, 1:47 am)
Re: [Qemu-devel] [RFC PATCH 1/5] qdev: Create qdev_get_dev ..., Paul Brook, (Tue Jun 15, 4:28 am)
Re: [Qemu-devel] [RFC PATCH 1/5] qdev: Create qdev_get_dev ..., Markus Armbruster, (Tue Jun 15, 4:42 am)
Re: [Qemu-devel] [RFC PATCH 1/5] qdev: Create qdev_get_dev ..., Markus Armbruster, (Tue Jun 15, 6:07 am)
Re: [Qemu-devel] [RFC PATCH 1/5] qdev: Create qdev_get_dev ..., Markus Armbruster, (Tue Jun 15, 6:16 am)
Re: [Qemu-devel] [RFC PATCH 1/5] qdev: Create qdev_get_dev ..., Markus Armbruster, (Wed Jun 16, 1:23 am)
Re: [Qemu-devel] [RFC PATCH 1/5] qdev: Create qdev_get_dev ..., Markus Armbruster, (Wed Jun 16, 6:02 am)
Re: [Qemu-devel] [RFC PATCH 1/5] qdev: Create qdev_get_dev ..., Markus Armbruster, (Fri Jun 18, 7:03 am)