summaryrefslogtreecommitdiff
path: root/memory_mapping.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-11-14 15:54:48 +0100
committerJuan Quintela <quintela@redhat.com>2012-12-20 23:08:47 +0100
commita3161038a1fd17a638a0c606f71e1f799f65f41b (patch)
tree3e4d1c07fc4e933968e0d6065522cc199f9289d3 /memory_mapping.c
parent0d6d3c87a232cc27641dde3491d75c8021745d02 (diff)
downloadqemu-a3161038a1fd17a638a0c606f71e1f799f65f41b.tar.gz
qemu-a3161038a1fd17a638a0c606f71e1f799f65f41b.tar.bz2
qemu-a3161038a1fd17a638a0c606f71e1f799f65f41b.zip
exec: change RAM list to a TAILQ
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'memory_mapping.c')
-rw-r--r--memory_mapping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/memory_mapping.c b/memory_mapping.c
index 530f1d6793..ff45b3a239 100644
--- a/memory_mapping.c
+++ b/memory_mapping.c
@@ -200,7 +200,7 @@ int qemu_get_guest_memory_mapping(MemoryMappingList *list)
* If the guest doesn't use paging, the virtual address is equal to physical
* address.
*/
- QLIST_FOREACH(block, &ram_list.blocks, next) {
+ QTAILQ_FOREACH(block, &ram_list.blocks, next) {
offset = block->offset;
length = block->length;
create_new_memory_mapping(list, offset, offset, length);
@@ -213,7 +213,7 @@ void qemu_get_guest_simple_memory_mapping(MemoryMappingList *list)
{
RAMBlock *block;
- QLIST_FOREACH(block, &ram_list.blocks, next) {
+ QTAILQ_FOREACH(block, &ram_list.blocks, next) {
create_new_memory_mapping(list, block->offset, 0, block->length);
}
}