From patchwork Sat Mar 2 15:18:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanjay Lal X-Patchwork-Id: 224512 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 99ACF2C030F for ; Sun, 3 Mar 2013 03:31:52 +1100 (EST) Received: from localhost ([::1]:45682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBpLi-0005YP-Qw for incoming@patchwork.ozlabs.org; Sat, 02 Mar 2013 11:31:50 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBpK4-0003GJ-8a for qemu-devel@nongnu.org; Sat, 02 Mar 2013 11:30:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBpK1-0002w0-Lo for qemu-devel@nongnu.org; Sat, 02 Mar 2013 11:30:08 -0500 Received: from kymasys.com ([2001:470:0:208::403e:8c2b]:42118) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1UBpK1-0002u5-Cd for qemu-devel@nongnu.org; Sat, 02 Mar 2013 11:30:05 -0500 Received: from agni.kymasys.com ([75.40.23.192]) by kymasys.com for ; Sat, 2 Mar 2013 07:20:02 -0800 Received: by agni.kymasys.com (Postfix, from userid 500) id 1952D630057; Sat, 2 Mar 2013 07:18:50 -0800 (PST) From: Sanjay Lal To: qemu-devel@nongnu.org Date: Sat, 2 Mar 2013 07:18:45 -0800 Message-Id: <1362237527-23678-12-git-send-email-sanjayl@kymasys.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1362237527-23678-1-git-send-email-sanjayl@kymasys.com> References: <1362237527-23678-1-git-send-email-sanjayl@kymasys.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:470:0:208::403e:8c2b Cc: Sanjay Lal , Gleb Natapov , Marcelo Tosatti , Aurelien Jarno , kvm@vger.kernel.org Subject: [Qemu-devel] [PATCH 10/12] KVM/MIPS: Set page size to 16K in KVM mode. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org --- target-mips/mips-defs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target-mips/mips-defs.h b/target-mips/mips-defs.h index bf094a3..473ddf8 100644 --- a/target-mips/mips-defs.h +++ b/target-mips/mips-defs.h @@ -5,7 +5,12 @@ //#define USE_HOST_FLOAT_REGS /* Real pages are variable size... */ +#ifdef CONFIG_KVM +/* For KVM/MIPS the minimum page size is 16K due to cache aliasing issues */ +#define TARGET_PAGE_BITS 14 +#else #define TARGET_PAGE_BITS 12 +#endif #define MIPS_TLB_MAX 128 #if defined(TARGET_MIPS64)