qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH qom-cpu v4 12/18] cpu: Change default for CPUCla


From: Luiz Capitulino
Subject: Re: [Qemu-devel] [PATCH qom-cpu v4 12/18] cpu: Change default for CPUClass::get_paging_enabled()
Date: Tue, 11 Jun 2013 11:01:42 -0400

On Sun,  9 Jun 2013 18:10:41 +0200
Andreas Färber <address@hidden> wrote:

> 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.
> 
> Signed-off-by: Andreas Färber <address@hidden>

Reviewed-by: Luiz Capitulino <address@hidden>

> ---
>  qom/cpu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/qom/cpu.c b/qom/cpu.c
> index b25fbc9..dba4a11 100644
> --- a/qom/cpu.c
> +++ b/qom/cpu.c
> @@ -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,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]