Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4069709imm; Mon, 17 Sep 2018 07:45:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaLjUU1Y1KVhIc9PwfdG/qpSWw5oQUtABNY0TBj1/CmzdxXCca4j2KCU70O8cjBtf+FdjJq X-Received: by 2002:a62:e511:: with SMTP id n17-v6mr26102532pff.210.1537195512531; Mon, 17 Sep 2018 07:45:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537195512; cv=none; d=google.com; s=arc-20160816; b=je/l8x9CFmfGlDXTKIx1w7K2ujSmDV31A6togGFjrvICq/qOVj190gw0o3g03GvD3P MgI4v7VYu1Yzbbjm1l4oNDMC8o/BioZQzNfEb3d9TjN/+4MvDfUl/TSCeqBYPQ6PNfY7 5kbpb9cfDrer6fFdFGzrkpLj5uSNhvA0mLWDKXZn2/SdUfWWGYny4clejcIrNNsD/zkm kyhU6gnfT7wz+2+BBOGz4H6NUOtHQwTGw7Xt7jbdo9qceaUXlX14EQFnyW9n99P3+tbW GWYfH/lVzISt7cJVn24Uv5ZKAm0LsCPSkWTuXi6pgzO9SnZ3cu6ho5sjm3bnQt7HseLi Yspw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=iQUvmkZNpGHcjeovfpNxohgJgwXEht88V3pyGcO4azQ=; b=wavLvlb2mg6IjrOzScFnQRLnQvAL9dFvfRytBrgzRRP1FRCh5BwzngRqWOukHuy8y5 hEmNoSvsj72FvG0KuOhdylvKMQjLrKwDLN5+RULJiLRC7veo5UeNpynGGBZ81alRcEDY DXZwFzAzc4LXSwtovbNyq0AoOArqzZtqpNPUhaObp1sekaL5djmlTOdI7kYxg9fzZF1r 7bkSoGfBa8Cwl12B20whpyp8kiSfy9ms9mGDoM+aj7Ilpne7sjY5JGVuziZ4dVkHq9jL rj4e2ob2n1woX4DutLz0HWzPGjn9gYLwQTzqKtMDzF+/MRbMl1FtlBvHkz8Hc3HrDzAb +oEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si15892860pll.509.2018.09.17.07.44.56; Mon, 17 Sep 2018 07:45:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728996AbeIQULh (ORCPT + 99 others); Mon, 17 Sep 2018 16:11:37 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:60192 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728790AbeIQULg (ORCPT ); Mon, 17 Sep 2018 16:11:36 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 97F93ED1; Mon, 17 Sep 2018 07:43:57 -0700 (PDT) Received: from localhost.localdomain (unknown [10.4.13.81]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3D0903F5BD; Mon, 17 Sep 2018 07:43:55 -0700 (PDT) Subject: Re: [PATCH v5 18/18] kvm: arm64: Allow tuning the physical address size for VM To: Peter Maydell Cc: arm-mail-list , kvmarm@lists.cs.columbia.edu, kvm-devel , Marc Zyngier , Christoffer Dall , Eric Auger , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Will Deacon , Catalin Marinas , James Morse , Dave P Martin , julien.grall@arm.com, lkml - Kernel Mailing List References: <20180917104144.19188-1-suzuki.poulose@arm.com> <20180917104144.19188-19-suzuki.poulose@arm.com> From: Suzuki K Poulose Message-ID: Date: Mon, 17 Sep 2018 15:43:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, On 17/09/2018 15:20, Peter Maydell wrote: > On 17 September 2018 at 11:41, Suzuki K Poulose wrote: >> Allow specifying the physical address size limit for a new >> VM via the kvm_type argument for the KVM_CREATE_VM ioctl. This >> allows us to finalise the stage2 page table as early as possible >> and hence perform the right checks on the memory slots >> without complication. The size is ecnoded as Log2(PA_Size) in >> bits[7:0] of the type field. For backward compatibility the >> value 0 is reserved and implies 40bits. Also, lift the limit >> of the IPA to host limit and allow lower IPA sizes (e.g, 32). >> >> The userspace could check the extension KVM_CAP_ARM_VM_PHYS_SHIFT >> for the availability of this feature. The cap check returns the >> maximum limit for the physical address shift supported by the host. >> >> Cc: Marc Zyngier >> Cc: Christoffer Dall >> Cc: Peter Maydel > > Typo: my surname has two "l"s in it. Sorry about that. I have fixed this locally. Btw, did you get a chance to look at the patch itself ? If you did, are you fine with the API ? Suzuki