Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp973799imm; Wed, 26 Sep 2018 09:35:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV616ADq7NgTKzo41qG7XQIJAX+jwEUS+E9bJM8OUQexWlajXJf5piyGI5DRcdKP6R08VGolc X-Received: by 2002:a63:6507:: with SMTP id z7-v6mr6392288pgb.200.1537979704855; Wed, 26 Sep 2018 09:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537979704; cv=none; d=google.com; s=arc-20160816; b=FNhS5C2918eH9PZRL+JyPf0pguZMGEPVTU2vwnoQT1ZF6LVO/NH6n0g2Pgwefex4cY qmXvw3IbMjcRjEJf413nT7C7ZastvEMo9SQ0Ht9uxwlYA5DkcHG//mZMp1mfdffGOl17 b0JZfkeDG6oGW0BbiJ0KfjqPHNjO0t1hL7D43TVePLmFOn82leEDZj6EBMyY3yNdF+nb /ils0geP0k13eXvWVTiUvN4Ui9bAAca+hsTnKKcKF/wyVP+tJGcxUI2vOJFGGg835Cib 9LurEdU5e0WsTe5nH2X6XQ8pk9zD5G3aiAwfSCqnwDkv8fCbdFOYV5Y47AAfCboY1GKt J2aA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4zSCskNloIq1u9Qp55LEnonyqNKDUVSjMqjagSeHCZE=; b=sWYoeiYUgZZJUhL92BDtP20PA40pKuhUwf6rVkeIUwDMb25YyhB5TGHVaWRC4F4gtH ge8T+BicHkfUwwC604+SEhgE9U6tFQQmANnB5h0jSFafeBlm8oYYoxsm/ggcqQv50fAD hplD/bSy3gPYPJRwwXzB7XoukqQVwZdyf4+IUyQQAna4q/M+8gjZQxb1yBjy0aDiMIwL LpQliKHm5v/UGiOaj1vGTj/Gk7tQrEDNZHPbc46kXyNymewnwtuqFJ2bL2Bn/Z6pS9+D 8+o5ES9uX7icGHy2YFUIlmY3/gtFdsQrz8A684VQqrLTrPKfsmWhz09N4MuDCCa+67dj N0QA== 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 u68-v6si5446065pfa.28.2018.09.26.09.34.49; Wed, 26 Sep 2018 09:35:04 -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 S1729113AbeIZWsI (ORCPT + 99 others); Wed, 26 Sep 2018 18:48:08 -0400 Received: from foss.arm.com ([217.140.101.70]:50202 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728252AbeIZWsI (ORCPT ); Wed, 26 Sep 2018 18:48:08 -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 E366122C7; Wed, 26 Sep 2018 09:34:22 -0700 (PDT) Received: from en101.Emea.Arm.com (en101.emea.arm.com [10.4.13.23]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6E4943F5B3; Wed, 26 Sep 2018 09:34:20 -0700 (PDT) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, marc.zyngier@arm.com, cdall@kernel.org, eric.auger@redhat.com, suzuki.poulose@arm.com, will.deacon@arm.com, dave.martin@arm.com, peter.maydell@linaro.org, pbonzini@redhat.com, rkrcmar@redhat.com, julien.grall@arm.com, linux-kernel@vger.kernel.org Subject: [kvmtool PATCH v6 20/18] kvmtool: arm64: Add support for guest physical address size Date: Wed, 26 Sep 2018 17:32:56 +0100 Message-Id: <20180926163258.20218-21-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180926163258.20218-1-suzuki.poulose@arm.com> References: <20180926163258.20218-1-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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..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)"), #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..e0b531e 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; + int phys_shift; }; int irqchip_parser(const struct option *opt, const char *arg, int unset); -- 2.19.0