aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2010-06-25 11:09:43 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2010-07-06 10:36:28 -0500
commitcc9e98cb8f20d5ef87290591a8e4324c482f3cdd (patch)
treed9bded7ee4dd96b14d54770fee3b1e26848a5166 /cpu-all.h
parentqemu_ram_alloc: Add DeviceState and name parameters (diff)
downloadqemu-kvm-cc9e98cb8f20d5ef87290591a8e4324c482f3cdd.tar.gz
qemu-kvm-cc9e98cb8f20d5ef87290591a8e4324c482f3cdd.tar.bz2
qemu-kvm-cc9e98cb8f20d5ef87290591a8e4324c482f3cdd.zip
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>
Diffstat (limited to 'cpu-all.h')
-rw-r--r--cpu-all.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpu-all.h b/cpu-all.h
index dbb21394d..5d8342bac 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -865,6 +865,7 @@ typedef struct RAMBlock {
uint8_t *host;
ram_addr_t offset;
ram_addr_t length;
+ char idstr[256];
QLIST_ENTRY(RAMBlock) next;
} RAMBlock;