PCI bus already has one. For ISA bus this patch series uses device's ioports to uniquely describe it. For isa-ide, for example, get_dev_path method returns: 01f0-01f7,03f6 for first IDE controller 0170-0177,0376 for second one
Gleb Natapov (2): Keep track of ISA ports ISA device is using in qdev. Add get_dev_path callback to ISA bus in qdev. hw/cs4231a.c | 1 + hw/fdc.c | 3 ++ hw/gus.c | 4 +++ hw/ide/isa.c | 2 + hw/isa-bus.c | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ hw/isa.h | 4 +++ hw/m48t59.c | 1 + hw/mc146818rtc.c | 1 + hw/ne2000-isa.c | 3 ++ hw/parallel.c | 5 ++++ hw/pckbd.c | 3 ++ hw/sb16.c | 4 +++ hw/serial.c | 1 + 13 files changed, 102 insertions(+), 0 deletions(-)