Revision 618a568d exec.c

b/exec.c
2775 2775
    if (mem_path) {
2776 2776
#if defined (__linux__) && !defined(TARGET_S390X)
2777 2777
        new_block->host = file_ram_alloc(size, mem_path);
2778
        if (!new_block->host)
2779
            exit(1);
2778
        if (!new_block->host) {
2779
            new_block->host = qemu_vmalloc(size);
2780
#ifdef MADV_MERGEABLE
2781
            madvise(new_block->host, size, MADV_MERGEABLE);
2782
#endif
2783
        }
2780 2784
#else
2781 2785
        fprintf(stderr, "-mem-path option unsupported\n");
2782 2786
        exit(1);

Also available in: Unified diff