diff options
author | Anthony Liguori <aliguori@amazon.com> | 2013-11-19 13:03:06 -0800 |
---|---|---|
committer | Anthony Liguori <aliguori@amazon.com> | 2013-11-19 13:03:06 -0800 |
commit | 394cfa39ba24dd838ace1308ae24961243947fb8 (patch) | |
tree | b75df1167bfae6d0230116a84b14b03b29088de2 | |
parent | 4ed34791696523522fa7e6a00301e0bf3a09ea29 (diff) | |
parent | fc1c4a5d32e15a4c40c47945da85ef9c1e0c1b54 (diff) |
Merge remote-tracking branch 'quintela/migration.next' into staging
# By Peter Lieven
# Via Juan Quintela
* quintela/migration.next:
migration: drop MADVISE_DONT_NEED for incoming zero pages
Message-id: 1384878412-23521-1-git-send-email-quintela@redhat.com
Signed-off-by: Anthony Liguori <aliguori@amazon.com>
-rw-r--r-- | arch_init.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch_init.c b/arch_init.c index 7545d96739..e0acbc5661 100644 --- a/arch_init.c +++ b/arch_init.c @@ -850,14 +850,6 @@ void ram_handle_compressed(void *host, uint8_t ch, uint64_t size) { if (ch != 0 || !is_zero_range(host, size)) { memset(host, ch, size); -#ifndef _WIN32 - if (ch == 0 && (!kvm_enabled() || kvm_has_sync_mmu())) { - size = size & ~(getpagesize() - 1); - if (size > 0) { - qemu_madvise(host, size, QEMU_MADV_DONTNEED); - } - } -#endif } } |