Received: from eggs.gnu.org ([2001:4830:134:3::10]:42403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Umvff-0008IU-6W for qemu-devel@nongnu.org; Wed, 12 Jun 2013 20:45:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Umvfb-0005X3-GN for qemu-devel@nongnu.org; Wed, 12 Jun 2013 20:45:46 -0400 Received: from cantor2.suse.de ([195.135.220.15]:32936 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Umvfb-0005Wn-19 for qemu-devel@nongnu.org; Wed, 12 Jun 2013 20:45:43 -0400 Received: from relay1.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 801B3A52D8 for ; Thu, 13 Jun 2013 02:45:42 +0200 (CEST) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Thu, 13 Jun 2013 02:45:25 +0200 Message-Id: <1371084329-814-14-git-send-email-afaerber@suse.de> In-Reply-To: <1371084329-814-1-git-send-email-afaerber@suse.de> References: <1371084329-814-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 13/17] cpu: Change default for CPUClass::get_paging_enabled() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= 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 Reviewed-by: Luiz Capitulino Signed-off-by: Andreas F=C3=A4rber --- 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) =20 static bool cpu_common_get_paging_enabled(const CPUState *cpu) { - return true; + return false; } =20 void cpu_get_memory_mapping(CPUState *cpu, MemoryMappingList *list, --=20 1.8.1.4