Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4043791imm; Mon, 17 Sep 2018 07:21:58 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbfMFV0/AZqrOWdHN6iNWlSBn6nYw4JTyS1+hb8xLpg3e2qZWGfrLIgEFxwO28KSvEZT/Z1 X-Received: by 2002:a62:6eca:: with SMTP id j193-v6mr26362117pfc.256.1537194118491; Mon, 17 Sep 2018 07:21:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537194118; cv=none; d=google.com; s=arc-20160816; b=GL5VkNBejxFGwv7W+aPggGMMiACqTa9pgCe5LBPnNUFe77AhOBtvKUYqWsGWe8E5ZV G08vn0IBUqPlibudVCbBozuaoMfBOIROEa1YE3QmRMQGF2TkRUTB5wf5HAE5Mh3ZNjNI +3hUIw+O8IuGRMNin5maJrnxhM0+ys7E7PXVqv2hCxLrLBk0Nb2p1QzbbYi7xnG+ctFe MO9fgqc66QRHaeAgsiFfa2VyGvwKtIAbHa6Fv/gFhVSV82uYD4F9Liji1a4vc9ysC7r1 srGyj7H1bpULoiQVHqmV0C2s2IwzhcOLQykvMsBmnGL8q4yVfbQ0Ur2iY60NenZV1tSD c0Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=Hpw+5A8GUyuHMXaHaMrGoShn4U2Mtb+89N0i4AYia9A=; b=NAh4o5GKzq9ls/06F0CBdMuV0veT+rM3NAQa0M7njjkUxrmWH+bIn9K47DiZRmGfUL 4Wt5Eb9g12KJlsmaBYPondhvl1/sSGs0mN/blKBBWDzeErrO6o82YXrWlCSW/7709DrE PxlYiRnOELp45N/uSVUF2IoVUeOiPkuvZftYpTBo4zCDQELuy4/y5dvNSFhACeP79Xcz Z0HEREkNfF8JY2nN+5enFV5cCXo7s/Zoh3lfUJ+9B703WV3Z5Dyy0MvM2RCluH8nS/eV U0UU8S4zSaEnhJNpyBZozq5Bh7aaWbCwyOdhvoK+Niw+mJ8TinaJz7hliR7uRhk0Otr/ Y/Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=beaDVq32; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9-v6si16341755plk.201.2018.09.17.07.21.43; Mon, 17 Sep 2018 07:21:58 -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; dkim=pass header.i=@linaro.org header.s=google header.b=beaDVq32; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728780AbeIQTsI (ORCPT + 99 others); Mon, 17 Sep 2018 15:48:08 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:33438 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727858AbeIQTsI (ORCPT ); Mon, 17 Sep 2018 15:48:08 -0400 Received: by mail-ot1-f65.google.com with SMTP id i10-v6so11441715oth.0 for ; Mon, 17 Sep 2018 07:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Hpw+5A8GUyuHMXaHaMrGoShn4U2Mtb+89N0i4AYia9A=; b=beaDVq32HaJC/c0oKGVrfBVDJjQR+/BNQLNUgx5yjrCfeQDn69iTGcq/STAGXIy0Ra wmjfvXYHU8SpNMhbBQLmKWAGMiuVflrj1lG60Yc1n9p6xa5+0toMoj+Gbe9S0EKGWGul w1Dvbk4WtKazCcxdP7ss/xaj/+LV5+72E/Fjc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Hpw+5A8GUyuHMXaHaMrGoShn4U2Mtb+89N0i4AYia9A=; b=DhofKSf7jzsqoUR63Rs9j2q1ccrCdXQun+7HsTlNmnIOLcb8hvpo9k8JIFt8H7Oz8e nMeU3nGtaMmgTpa5CkM9wPcSEVMT1EwES1X2183BnQiqyWuVkNgP0o2qFA36AYNCAs4E WxqRZqtG9uINFLLdwyoFIyCTnjdT/Llj7VYCWZDJCwu4B4bZ6gRxgm3I1xySZteN/QM9 jwB+SsW0Gl/3jl59Mx/JIuMEtNt2e+Zr1hPKxhnVttrg+MqJ2ptbZmp627OfvO3WqivN l/lrdGgo+sFcaZ4H8SaEXq83wD1CubfJEBEW44o61aOzvUCFDzEIp5BsKJMWvOT4UqOu o+Sg== X-Gm-Message-State: APzg51DLWcYkfp+E5ZNDpBFiUk5juVV2BfAGSsw/rO8+vCQxNdVOR5lk rzqT29IXIZ95cBCszQ1w5oHK8PyYoet7CXh92szjMA== X-Received: by 2002:a9d:82f:: with SMTP id 44-v6mr13186771oty.377.1537194035720; Mon, 17 Sep 2018 07:20:35 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:20e3:0:0:0:0:0 with HTTP; Mon, 17 Sep 2018 07:20:15 -0700 (PDT) In-Reply-To: <20180917104144.19188-19-suzuki.poulose@arm.com> References: <20180917104144.19188-1-suzuki.poulose@arm.com> <20180917104144.19188-19-suzuki.poulose@arm.com> From: Peter Maydell Date: Mon, 17 Sep 2018 15:20:15 +0100 Message-ID: Subject: Re: [PATCH v5 18/18] kvm: arm64: Allow tuning the physical address size for VM To: Suzuki K Poulose 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. thanks -- PMM