From patchwork Tue Jul 15 14:53:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jungseok Lee X-Patchwork-Id: 4554591 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A467BC0514 for ; Tue, 15 Jul 2014 14:55:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DAA5E2012B for ; Tue, 15 Jul 2014 14:55:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 24D762011E for ; Tue, 15 Jul 2014 14:55:17 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X7471-0002YN-F6; Tue, 15 Jul 2014 14:53:47 +0000 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X746x-0002MN-3A for linux-arm-kernel@lists.infradead.org; Tue, 15 Jul 2014 14:53:43 +0000 Received: by mail-pa0-f54.google.com with SMTP id fa1so4055378pad.27 for ; Tue, 15 Jul 2014 07:53:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=laWtZSXeC1plIqxT62wf/kLszXxslzsW7x8fqtxIsvY=; b=0BwAtvEiHGE9BmDsdTnZ4rbxdhbEK4KIPvhEKu/HrsrM2iCWBdVXNDfPXjpUu4S8Ky a5lYlkdS8g712VNOztfHN51E2JfJikWEbAdAOdkJSlRTGV9PgMsLp+fn3vOv2S5HGhug f90+CVsjTLbr8KbVh/Z7cYTk3xR2Cn+SHTga6Tx7G/krqUTCxir/lA5ICwBEoRp8KzJh 5DjS1UmGugXMn5B0Ch43p83iIOgGmPETTtLI38Q9p2R2W0X1Mtwyusaj6S4xAgxV5558 2FrnwxoQJwr9ocit1OJBPkFx0wqgklpe3l4AOkT7Ctiy0AOwAa8BE34LnHXn321Gc5zP kIYA== X-Received: by 10.68.227.4 with SMTP id rw4mr23257728pbc.3.1405435999887; Tue, 15 Jul 2014 07:53:19 -0700 (PDT) Received: from [192.168.123.160] ([182.215.209.43]) by mx.google.com with ESMTPSA id ug1sm58951189pac.9.2014.07.15.07.53.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Jul 2014 07:53:19 -0700 (PDT) Subject: Re: [PATCH v6 2/7] arm64: Introduce VA_BITS and translation level options Mime-Version: 1.0 (Apple Message framework v1283) From: Jungseok Lee In-Reply-To: <20140714224159.GA9829@arm.com> Date: Tue, 15 Jul 2014 23:53:12 +0900 Message-Id: <3AF98E68-6818-416A-BC33-57148F1EC246@gmail.com> References: <000101cf6dc6$3b93d510$b2bb7f30$@samsung.com> <53C43FE3.1050008@amd.com> <20140714224159.GA9829@arm.com> To: Catalin Marinas X-Mailer: Apple Mail (2.1283) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140715_075343_164733_7B0EC5F2 X-CRM114-Status: GOOD ( 17.15 ) X-Spam-Score: -0.6 (/) Cc: Joel Schopp , linux-samsung-soc , steve.capper@linaro.org, Arnd Bergmann , Marc Zyngier , Timur Tabi , barami97@gmail.com, lkml , Christoffer Dall , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Jul 15, 2014, at 7:41 AM, Catalin Marinas wrote: > On Mon, Jul 14, 2014 at 09:38:59PM +0100, Joel Schopp wrote: >> I agree that these patches would be very useful. I just rebased my fix >> for a VTTBR_BADDR_MASK bug on one of these patches that could be pulled >> out independently. See >> https://lists.cs.columbia.edu/pipermail/kvmarm/2014-July/010480.html >> >> The original author Jungseok Lee is no longer available to work on >> future versions of these patches. I was thinking that if they didn't >> get picked up as they are that with the original author's blessing I >> would pick them up and keep them forward ported/resubmitted. I have an >> SOC to test them on. > > The patches are pretty good. I'll give them a try tomorrow and if there > isn't something fundamental missing I'll consider taking them for 3.17. Hi All, If only stage1 side is taken and merged, KVM should be disabled under 4 level lookups with the following configuration adjustment. I've tested it on top of arm64/for-next/core branch and it works fine. However, I don't know whether it does make sense or not. In other words, stage2 side should be prepared to fully support 4 level lookups. In order to cover all combinations of host and guest, VTTBR_X should be determined dynamically as referring to hardware capability. At this point, the patches have been revised many times, but they don't have got ACKs from Christoffer and Marc yet. That is why the patches are pending now in the author's point of view. - Jungseok Lee --- a/arch/arm64/kvm/Kconfig +++ b/arch/arm64/kvm/Kconfig @@ -18,6 +18,7 @@ if VIRTUALIZATION config KVM bool "Kernel-based Virtual Machine (KVM) support" + depends on !ARM64_4_LEVELS select MMU_NOTIFIER select PREEMPT_NOTIFIERS select ANON_INODES