[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 07/13] migrate/ram: Get rid of "place_source" in ram_load_post
From: |
David Hildenbrand |
Subject: |
[PATCH v1 07/13] migrate/ram: Get rid of "place_source" in ram_load_postcopy() |
Date: |
Wed, 19 Feb 2020 17:17:19 +0100 |
It's always the same value.
Cc: "Dr. David Alan Gilbert" <address@hidden>
Cc: Juan Quintela <address@hidden>
Cc: Peter Xu <address@hidden>
Signed-off-by: David Hildenbrand <address@hidden>
---
migration/ram.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/migration/ram.c b/migration/ram.c
index cbd54947fb..75014717f6 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -3119,7 +3119,6 @@ static int ram_load_postcopy(QEMUFile *f)
ram_addr_t addr;
void *host = NULL;
void *page_buffer = NULL;
- void *place_source = NULL;
RAMBlock *block = NULL;
uint8_t ch;
int len;
@@ -3188,7 +3187,6 @@ static int ram_load_postcopy(QEMUFile *f)
place_needed = true;
target_pages = 0;
}
- place_source = postcopy_host_page;
}
switch (flags & ~RAM_SAVE_FLAG_CONTINUE) {
@@ -3220,7 +3218,7 @@ static int ram_load_postcopy(QEMUFile *f)
* buffer to make sure the buffer is valid when
* placing the page.
*/
- qemu_get_buffer_in_place(f, (uint8_t **)&place_source,
+ qemu_get_buffer_in_place(f, (uint8_t **)&postcopy_host_page,
TARGET_PAGE_SIZE);
}
break;
@@ -3265,8 +3263,8 @@ static int ram_load_postcopy(QEMUFile *f)
ret = postcopy_place_page_zero(mis, place_dest,
block);
} else {
- ret = postcopy_place_page(mis, place_dest,
- place_source, block);
+ ret = postcopy_place_page(mis, place_dest, postcopy_host_page,
+ block);
}
}
}
--
2.24.1
- [PATCH v1 03/13] numa: Teach ram block notifiers about resizeable ram blocks, (continued)
- [PATCH v1 03/13] numa: Teach ram block notifiers about resizeable ram blocks, David Hildenbrand, 2020/02/19
- [PATCH v1 04/13] numa: Make all callbacks of ram block notifiers optional, David Hildenbrand, 2020/02/19
- [PATCH v1 06/13] migrate/ram: Discard new RAM when growing RAM blocks and the VM is stopped, David Hildenbrand, 2020/02/19
- [PATCH v1 05/13] migrate/ram: Handle RAM block resizes during precopy, David Hildenbrand, 2020/02/19
- [PATCH v1 08/13] migrate/ram: Simplify host page handling in ram_load_postcopy(), David Hildenbrand, 2020/02/19
- [PATCH v1 09/13] migrate/ram: Consolidate variable reset after placement in ram_load_postcopy(), David Hildenbrand, 2020/02/19
- [PATCH v1 07/13] migrate/ram: Get rid of "place_source" in ram_load_postcopy(),
David Hildenbrand <=
- Re: [PATCH v1 07/13] migrate/ram: Get rid of "place_source" in ram_load_postcopy(), David Hildenbrand, 2020/02/20
- Re: [PATCH v1 07/13] migrate/ram: Get rid of "place_source" in ram_load_postcopy(), Dr. David Alan Gilbert, 2020/02/20
[PATCH v1 10/13] migrate/ram: Handle RAM block resizes during postcopy, David Hildenbrand, 2020/02/19