]> git.proxmox.com Git - qemu.git/blobdiff - arch_init.c
Open 2.0 development tree
[qemu.git] / arch_init.c
index 7545d96739ee7bf157494754ce3c46697c375a92..e0acbc56611413c11677c540af706ed7dca39879 100644 (file)
@@ -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
     }
 }