summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-01-06 00:05:55 (GMT)
committerYury Usishchev <y.usishchev@samsung.com>2014-12-10 10:47:57 (GMT)
commite7182f249406f06c4be4711614ca82a7a12821d4 (patch)
tree491483fcc73026ba800614560e273f93bbbb3406
parent055d4830aa573fe144829ac73b9c956be9b5feb7 (diff)
downloadqemu-e7182f249406f06c4be4711614ca82a7a12821d4.zip
qemu-e7182f249406f06c4be4711614ca82a7a12821d4.tar.gz
qemu-e7182f249406f06c4be4711614ca82a7a12821d4.tar.bz2
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/exec.c b/exec.c
index 71ac104..6d31d8f 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));