summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-01-06 01:05:55 +0100
committerYury Usishchev <y.usishchev@samsung.com>2014-12-10 13:47:57 +0300
commite7182f249406f06c4be4711614ca82a7a12821d4 (patch)
tree491483fcc73026ba800614560e273f93bbbb3406 /exec.c
parent055d4830aa573fe144829ac73b9c956be9b5feb7 (diff)
downloadqemu-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.
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/exec.c b/exec.c
index 71ac104b3..6d31d8f80 100644
--- a/exec.c
+++ b/exec.c
@@ -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));