From patchwork Fri Mar 12 16:00:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 1452198 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=Wv0BpTNY; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DxrBz35yQz9sPf for ; Sat, 13 Mar 2021 03:00:59 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=hUVIjn1qNeHUHqMXdX3RBsvC1pZl505oJj1x+DU/Fq0=; b=Wv0BpTNY/3HGcQSkrhel3tpcj+ HGXUT6JufreBuCdqdmI4QewrAyanI5y+N+R0AJDYKTjEe6GL1GM0FcOkOe9NXIqLLpO4qu8c+v0ef N5BQLtiYUZ+M6bdykZ88bmKvk5P/lon6e6Nx8A1qY5RtZVMa50efqLZdnb0wgXrdk6kUs32/qJSbk oX+mmLdGAMJ+ZdXWeObTxHNvza35AbURWM/5hWgSEo8xYw6ZS08Zq+Vq0Jo/c07OzdQASoMdFstA5 A/Ug8ZZlVLZxY3OSfoFiRi8X+c4S0FrtrWjJEHnsaji/I1cB1b4opo9i1kRyXJouYHmaY7kgbeclL jBZG7E4Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lKkDQ-00BtYY-06; Fri, 12 Mar 2021 16:00:40 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lKkDL-00BtXi-HT for linux-arm-kernel@lists.infradead.org; Fri, 12 Mar 2021 16:00:37 +0000 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F1F564FFE; Fri, 12 Mar 2021 16:00:34 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lKkDH-001GDF-Qt; Fri, 12 Mar 2021 16:00:31 +0000 From: Marc Zyngier To: Paolo Bonzini Cc: Andrew Jones , Ard Biesheuvel , Catalin Marinas , Eric Auger , Kees Cook , Nathan Chancellor , Sami Tolvanen , Will Deacon , James Morse , Julien Thierry , Suzuki K Poulose , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu Subject: [GIT PULL] KVM/arm64 fixes for 5.12, take #2 Date: Fri, 12 Mar 2021 16:00:03 +0000 Message-Id: <20210312160003.3920996-1-maz@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: pbonzini@redhat.com, drjones@redhat.com, ardb@kernel.org, catalin.marinas@arm.com, eric.auger@redhat.com, keescook@chromium.org, nathan@kernel.org, samitolvanen@google.com, will@kernel.org, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, kernel-team@android.com, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210312_160036_116542_F6613BF4 X-CRM114-Status: GOOD ( 16.22 ) X-Spam-Score: -5.0 (-----) X-Spam-Report: Spam detection software, running on the system "desiato.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Paolo, Here's the second batch of KVM/arm64 fixes for 5.12. The most notable item is the tidying up of the way we deal with the guest physical space, which had a couple of warts. The other patches address i- [...] Content analysis details: (-5.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [198.145.29.99 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org Hi Paolo, Here's the second batch of KVM/arm64 fixes for 5.12. The most notable item is the tidying up of the way we deal with the guest physical space, which had a couple of warts. The other patches address i-cache isolation between vcpus (they are supposed to be vcpu-private, but can not being so...), and a fix for a link-time issue that can occur with LTO. Note that this time around, this pull request is on top of kvm/next, right after the patches you applied last week. Please pull, M. The following changes since commit 357ad203d45c0f9d76a8feadbd5a1c5d460c638b: KVM: arm64: Fix range alignment when walking page tables (2021-03-06 04:18:41 -0500) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-5.12-2 for you to fetch changes up to 262b003d059c6671601a19057e9fe1a5e7f23722: KVM: arm64: Fix exclusive limit for IPA size (2021-03-12 15:43:22 +0000) ---------------------------------------------------------------- KVM/arm64 fixes for 5.12, take #2 - Fix a couple of branches that could be impossible to resolve at link time when objects are far apart, such as with LTO - Mandate i-cache invalidation when two vcpus are sharing a physical CPU - Fail VM creation if the implicit IPA size isn't supported - Don't reject memslots that reach the IPA limit without breaching it ---------------------------------------------------------------- Marc Zyngier (3): KVM: arm64: Ensure I-cache isolation between vcpus of a same VM KVM: arm64: Reject VM creation when the default IPA size is unsupported KVM: arm64: Fix exclusive limit for IPA size Sami Tolvanen (1): KVM: arm64: Don't use cbz/adr with external symbols Documentation/virt/kvm/api.rst | 3 +++ arch/arm64/include/asm/kvm_asm.h | 4 ++-- arch/arm64/kvm/arm.c | 7 ++++++- arch/arm64/kvm/hyp/entry.S | 6 ++++-- arch/arm64/kvm/hyp/nvhe/hyp-main.c | 6 +++--- arch/arm64/kvm/hyp/nvhe/tlb.c | 3 ++- arch/arm64/kvm/hyp/vhe/tlb.c | 3 ++- arch/arm64/kvm/mmu.c | 3 +-- arch/arm64/kvm/reset.c | 12 ++++++++---- 9 files changed, 31 insertions(+), 16 deletions(-)