migration.c (c760cb77e511eb05094df67c1b30029a952efa35) | migration.c (038adc2f5850e32019bda06c559d0301be436eae) |
---|---|
1/* 2 * QEMU live migration 3 * 4 * Copyright IBM, Corp. 2008 5 * 6 * Authors: 7 * Anthony Liguori <aliguori@us.ibm.com> 8 * --- 2270 unchanged lines hidden (view full) --- 2279/* 2280 * Process a request for pages received on the return path, 2281 * We're allowed to send more than requested (e.g. to round to our page size) 2282 * and we don't need to send pages that have already been sent. 2283 */ 2284static void migrate_handle_rp_req_pages(MigrationState *ms, const char* rbname, 2285 ram_addr_t start, size_t len) 2286{ | 1/* 2 * QEMU live migration 3 * 4 * Copyright IBM, Corp. 2008 5 * 6 * Authors: 7 * Anthony Liguori <aliguori@us.ibm.com> 8 * --- 2270 unchanged lines hidden (view full) --- 2279/* 2280 * Process a request for pages received on the return path, 2281 * We're allowed to send more than requested (e.g. to round to our page size) 2282 * and we don't need to send pages that have already been sent. 2283 */ 2284static void migrate_handle_rp_req_pages(MigrationState *ms, const char* rbname, 2285 ram_addr_t start, size_t len) 2286{ |
2287 long our_host_ps = getpagesize(); | 2287 long our_host_ps = qemu_real_host_page_size; |
2288 2289 trace_migrate_handle_rp_req_pages(rbname, start, len); 2290 2291 /* 2292 * Since we currently insist on matching page sizes, just sanity check 2293 * we're being asked for whole host pages. 2294 */ 2295 if (start & (our_host_ps-1) || --- 1319 unchanged lines hidden --- | 2288 2289 trace_migrate_handle_rp_req_pages(rbname, start, len); 2290 2291 /* 2292 * Since we currently insist on matching page sizes, just sanity check 2293 * we're being asked for whole host pages. 2294 */ 2295 if (start & (our_host_ps-1) || --- 1319 unchanged lines hidden --- |