Skip to content

Commit

Permalink
cpu: Change default for CPUClass::get_paging_enabled()
Browse files Browse the repository at this point in the history
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: Jens Freimann <jfrei@linux.vnet.ibm.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
  • Loading branch information
afaerber committed Jun 11, 2013
1 parent 2a78636 commit 6db297e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qom/cpu.c
Expand Up @@ -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,
Expand Down

0 comments on commit 6db297e

Please sign in to comment.