Received: by 10.213.65.68 with SMTP id h4csp648432imn; Tue, 27 Mar 2018 06:19:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+/3Bf5AvN49IOGsmQC9X1HbmIYqSdMlJDmvOoKqfzk9u8lqCrWCZEUPzbYAG99IEXrxiqJ X-Received: by 2002:a17:902:b181:: with SMTP id s1-v6mr7162738plr.263.1522156783895; Tue, 27 Mar 2018 06:19:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522156783; cv=none; d=google.com; s=arc-20160816; b=uVtY4MKu7sBBqzLfKN+9WG/1k63TYOyGJAtB1EKD+O77j/ODMp0/+4MpP0IVo0/0D/ x0wxi0AlQ2IHexBAGKq8eQpoPPRm00lRBVJnD9rOQ6Dvnx+gIyu6vFB764BshVUFFFTs sy6jjEyKP6g88d8kBiHu67f2O5iJM4QrsuPdASDU1O4PM9DuOHg1GJ3kxZarOWmvMyod DK4gSy26NpnQEiuQQ5wBxOGazUFrQqGaTSTnF3if72Zz+HIgA3D7ZML263ki3l0BZ+RA Z+pfqL2Sk2pcNEPjgazOyzeQnsE+LC+eFtS4CKWyB5G6ytXEIuUGOGZrK6mY4gP4NfYi iiWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=UCVVGh3SqTf4qK44NASSrjPYNaCbT6402WNeCqdXlmo=; b=f8Iyp1hrZt5/ZeCcLJ5fcr4ocsHwTlq1t3QW4FM5oeh8ZsXBVFd8/4EvY7cQVxbFyE bpt87G8D90ARKIJh5OS/PMCy+L0DF1XGhUE6hVU+bWOqfnpv2o2pK6WfCcaEovzJISy2 nLoTZhvBa2g1kYH8DDuRgnQlDC5/4ufnDcJcZfykgwh9BI+nyTlIXav1arJb9msqlfrf 5b1gP29aurnHpM76Uz3vvXZjf1SPYnxph+S5JaJV9kXBISk9lMkdHhuQBKlmTt3n9E4P +aaNfYidH9LivetOEIbV5q/hbVEwgl+qdwdgiO+tvNXaKi4J+IWJZ65QwIRxgJJbdOzC shzg== 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 65si889795pgj.618.2018.03.27.06.19.29; Tue, 27 Mar 2018 06:19:43 -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 S1752934AbeC0NQ7 (ORCPT + 99 others); Tue, 27 Mar 2018 09:16:59 -0400 Received: from foss.arm.com ([217.140.101.70]:55218 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752893AbeC0NQ4 (ORCPT ); Tue, 27 Mar 2018 09:16:56 -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 9CD9F1435; Tue, 27 Mar 2018 06:16:56 -0700 (PDT) Received: from en101.cambridge.arm.com (en101.cambridge.arm.com [10.1.206.73]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id F2EED3F24A; Tue, 27 Mar 2018 06:16:53 -0700 (PDT) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, cdall@kernel.org, marc.zyngier@arm.com, punit.agrawal@arm.com, will.deacon@arm.com, catalin.marinas@arm.com, pbonzini@redhat.com, rkrcmar@redhat.com, ard.biesheuvel@linaro.org, peter.maydell@linaro.org, kristina.martsenko@arm.com, mark.rutland@arm.com, Suzuki K Poulose Subject: [kvmtool PATCH 19/17] kvmtool: arm64: Add support for guest physical address size Date: Tue, 27 Mar 2018 14:15:29 +0100 Message-Id: <1522156531-28348-20-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522156531-28348-1-git-send-email-suzuki.poulose@arm.com> References: <1522156531-28348-1-git-send-email-suzuki.poulose@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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..c4bb207 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_UINTEGER('\0', "phys-shift", &(cfg)->phys_shift, \ + "Specify maximum physical address size (not " \ + "the amount of memory)"), #include "arm-common/kvm-config-arch.h" diff --git a/arm/include/arm-common/kvm-config-arch.h b/arm/include/arm-common/kvm-config-arch.h index 6a196f1..d841b0b 100644 --- a/arm/include/arm-common/kvm-config-arch.h +++ b/arm/include/arm-common/kvm-config-arch.h @@ -11,6 +11,7 @@ struct kvm_config_arch { bool has_pmuv3; u64 kaslr_seed; enum irqchip_type irqchip; + unsigned int phys_shift; }; int irqchip_parser(const struct option *opt, const char *arg, int unset); -- 1.9.1