diff options
author | Alexander Graf <agraf@suse.de> | 2012-01-06 01:05:55 +0100 |
---|---|---|
committer | Yury Usishchev <y.usishchev@samsung.com> | 2014-12-10 13:47:57 +0300 |
commit | e7182f249406f06c4be4711614ca82a7a12821d4 (patch) | |
tree | 491483fcc73026ba800614560e273f93bbbb3406 | |
parent | 055d4830aa573fe144829ac73b9c956be9b5feb7 (diff) | |
download | qemu-e7182f249406f06c4be4711614ca82a7a12821d4.tar.gz qemu-e7182f249406f06c4be4711614ca82a7a12821d4.tar.bz2 qemu-e7182f249406f06c4be4711614ca82a7a12821d4.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.
-rw-r--r-- | exec.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1108,11 +1108,13 @@ static void *file_ram_alloc(RAMBlock *block, goto error; } +#ifndef TARGET_PPC if (kvm_enabled() && !kvm_has_sync_mmu()) { error_setg(errp, "host lacks kvm mmu notifiers, -mem-path unsupported"); goto error; } +#endif /* Make name safe to use with mkstemp by replacing '/' with '_'. */ sanitized_name = g_strdup(memory_region_name(block->mr)); |