diff options
author | Alexander Graf <agraf@suse.de> | 2012-01-06 01:05:55 +0100 |
---|---|---|
committer | SoonKyu Park <sk7.park@samsung.com> | 2021-11-23 13:45:49 +0900 |
commit | ee775783f4bf55bb2c4bbd4b7319be571a9ce155 (patch) | |
tree | 751d6a7959fb22441659979ed3d0007ba89f1867 | |
parent | 79489e7ea0242aa7727debda52401b8bdc2a22f1 (diff) | |
download | qemu-ee775783f4bf55bb2c4bbd4b7319be571a9ce155.tar.gz qemu-ee775783f4bf55bb2c4bbd4b7319be571a9ce155.tar.bz2 qemu-ee775783f4bf55bb2c4bbd4b7319be571a9ce155.zip |
PPC: KVM: Disable mmu notifier check
When using hugetlbfs (which is required for HV mode KVM on 970), we
check for MMU notifiers that on 970 can not be implemented properly.
So disable the check for mmu notifiers on PowerPC guests, making
KVM guests work there, even if possibly racy in some odd circumstances.
Signed-off-by: Bruce Rogers <brogers@suse.com>
-rw-r--r-- | softmmu/physmem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/softmmu/physmem.c b/softmmu/physmem.c index 2cd1de4a2..2b06d754a 100644 --- a/softmmu/physmem.c +++ b/softmmu/physmem.c @@ -1957,11 +1957,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 if (phys_mem_alloc != qemu_anon_ram_alloc) { /* |