提交 6db297ea 编写于 作者: A Andreas Färber

cpu: Change default for CPUClass::get_paging_enabled()

qemu_get_guest_memory_mapping() uses cpu_paging_enabled() to determine
whether to use cpu_get_memory_mapping() to return mappings or whether to
fall back to a simple identity map.

Since by default CPUClass::get_memory_mapping() is not implemented,
change the default to false to use the identity map by default.
Reviewed-by: NJens Freimann <jfrei@linux.vnet.ibm.com>
Reviewed-by: NLuiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: NAndreas Färber <afaerber@suse.de>
上级 2a78636b
......@@ -59,7 +59,7 @@ bool cpu_paging_enabled(const CPUState *cpu)
static bool cpu_common_get_paging_enabled(const CPUState *cpu)
{
return true;
return false;
}
void cpu_get_memory_mapping(CPUState *cpu, MemoryMappingList *list,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册