Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp857742imm; Wed, 4 Jul 2018 07:11:28 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdeZ/06dTxjjTyF9n17UAfiYeOn4i+ucdKtKfAFr7EUeTAkyV8K2B3EoKVUHp2SKn/1Q3GC X-Received: by 2002:a17:902:2983:: with SMTP id h3-v6mr2319123plb.232.1530713488931; Wed, 04 Jul 2018 07:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530713488; cv=none; d=google.com; s=arc-20160816; b=I8J6TplmrvYvQRbiy6mq3vFyke81E0zUrEd7b1y/dre6yZcvanZcQ/h9YVh5+b4CAA /udILckrpjC0eNV8Hek/rQckqDWDFdnyCMeqRA6wCUkNb6MHyfAt2CpBQhmTZ+AR+ID8 ROYOq/mqJe4ykkj94ve9LPdvc6eU6RK3JkViXMS8ai1qLo5TrvFuAkhA5H2Xqk6dGh3a 19GV32tq5Ap9kZm8iHrJlcOOP+3WWrlxt7VVN6mdEDg/ZtJe0Wb0Gs9SSLLy1lUvFTFH WZy6C4ew2ZZ/cacKl7uy45olveV49bcd0uR+ysJJpL/CB0ZSNK7u/hp7D1J2EdwuIPrJ tG3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=o5B5O++yPx9xXHzwRFZmybYgHraqTWM93jDGuwylRwA=; b=urYeO9Q4kFwke9XxSAcVy/U28ixCRSuDqnmMoBUZqGLghI0tuhxP0Oao3on4cMPxpk WmRRJUVCD1HR75nQ6+2DixtWNIKuzEYnJJ8LIRpWjb2/SfavAMQcmflbaljX6vgF23DI JaFFUrEeXYyAMZv7smcfv69VIBs15eG9IH6VcCrlA3CXoP6dryf5F3GA/Lzu5l1h9b4K Ll3Q1t4+q8OLmC1CKwctStXkF40FVi+IMCcyIk5sHjVWQUk4xrt7me1iaX8s+CdLARro YjBl8vV+TPEAuahBSRryEm9hmGioyempyNddXbISPPcZAGRSBNkj1KhJW9uOcLYp5N3C HD5Q== 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 w123-v6si3717396pfb.362.2018.07.04.07.11.14; Wed, 04 Jul 2018 07:11:28 -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 S1752786AbeGDOJG (ORCPT + 99 others); Wed, 4 Jul 2018 10:09:06 -0400 Received: from foss.arm.com ([217.140.101.70]:37972 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752399AbeGDOJE (ORCPT ); Wed, 4 Jul 2018 10:09:04 -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 B70E518A; Wed, 4 Jul 2018 07:09:03 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 88B543F5A0; Wed, 4 Jul 2018 07:09:03 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 7F2551AE189D; Wed, 4 Jul 2018 15:09:43 +0100 (BST) Date: Wed, 4 Jul 2018 15:09:43 +0100 From: Will Deacon To: Suzuki K Poulose Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, james.morse@arm.com, marc.zyngier@arm.com, cdall@kernel.org, eric.auger@redhat.com, julien.grall@arm.com, catalin.marinas@arm.com, punit.agrawal@arm.com, qemu-devel@nongnu.org Subject: Re: [kvmtool test PATCH 22/24] kvmtool: arm64: Add support for guest physical address size Message-ID: <20180704140943.GF4828@arm.com> References: <1530270944-11351-1-git-send-email-suzuki.poulose@arm.com> <1530270944-11351-23-git-send-email-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1530270944-11351-23-git-send-email-suzuki.poulose@arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 29, 2018 at 12:15:42PM +0100, Suzuki K Poulose wrote: > Add an option to specify the physical address size used by this > VM. > > Signed-off-by: Suzuki K Poulose > --- > arm/aarch64/include/kvm/kvm-config-arch.h | 5 ++++- > arm/include/arm-common/kvm-config-arch.h | 1 + > 2 files changed, 5 insertions(+), 1 deletion(-) > > diff --git a/arm/aarch64/include/kvm/kvm-config-arch.h b/arm/aarch64/include/kvm/kvm-config-arch.h > index 04be43d..dabd22c 100644 > --- a/arm/aarch64/include/kvm/kvm-config-arch.h > +++ b/arm/aarch64/include/kvm/kvm-config-arch.h > @@ -8,7 +8,10 @@ > "Create PMUv3 device"), \ > OPT_U64('\0', "kaslr-seed", &(cfg)->kaslr_seed, \ > "Specify random seed for Kernel Address Space " \ > - "Layout Randomization (KASLR)"), > + "Layout Randomization (KASLR)"), \ > + OPT_INTEGER('\0', "phys-shift", &(cfg)->phys_shift, \ > + "Specify maximum physical address size (not " \ > + "the amount of memory)"), Given that this is a shift value, I think the help message could be more informative. Something like: "Specify maximum number of bits in a guest physical address" I think I'd actually leave out any mention of memory, because this does actually have an effect on the amount of addressable memory in a way that I don't think we want to describe in half of a usage message line :) Will