ramblocks: Make use of DeviceState pointer and BusInfo.get_dev_path
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 25 Jun 2010 17:09:43 +0000 (11:09 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 6 Jul 2010 15:36:28 +0000 (10:36 -0500)
commit09cf721e6cc6d82754cc2683d1f4ce57604fdb83
treed9bded7ee4dd96b14d54770fee3b1e26848a5166
parentd5e27852d5343c5094d842986a40273bdd92a1e0
ramblocks: Make use of DeviceState pointer and BusInfo.get_dev_path

With these two pieces in place, we can start naming ramblocks.  When
the device is present and it lives on a bus that provides a device
path, we concatenate the path and the provided name.  Otherwise we
just use name.  The resulting id string must be unique.  For now we
assume an allocation for the same name and size is a device that has
been removed and reinserted and return the same block.  This will go
away once qemu_ram_free() is implemented.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
cpu-all.h
exec.c