diff --git a/system/physmem.c b/system/physmem.c index a63853a7bc..3470dd39a2 100644 --- a/system/physmem.c +++ b/system/physmem.c @@ -1910,11 +1910,13 @@ RAMBlock *qemu_ram_alloc_from_fd(ram_addr_t size, MemoryRegion *mr, return NULL; } +#ifndef TARGET_PPC if (kvm_enabled() && !kvm_has_sync_mmu()) { error_setg(errp, "host lacks kvm mmu notifiers, -mem-path unsupported"); return NULL; } +#endif size = HOST_PAGE_ALIGN(size); file_size = get_file_size(fd);