From patchwork Thu Jan 21 15:46:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 1429927 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:1231::1; helo=merlin.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=merlin.20170209 header.b=Lqxf5pgt; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (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 4DM6HH1V04z9sW1 for ; Fri, 22 Jan 2021 02:48:11 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=J2GOQu8fXSNFbZEzi0Hw9hHLmop4mVJovYnu3qrn+qk=; b=Lqxf5pgtN2Otsv96WHyqS0jbkj Bgd4AKfFN89pddYIR8fRmU8d+U/0SEVPQnsnEXfD7BPtHIH2h0ScuBODPzpAgTgbt3/R57JLgdNWM rMf17JF4jmVPbTKeMFMlRS2EqCLm4KMWQAgRVtvW8t0f3ukPndPlcfgvNFIYcpETu5eBFMJPY/kWE OwiFj+0QMH/8SWdL5xGrwVqSHGqu+rAm2WgY6oOEist9YJYhvdT/PRtIN9F+7OxdIoSG4zurE1xeL 9qdMR8UzChvUiEfqu3fJqkH4gaiKt0CIA9wicb/10vfDB2N61VP7zpEQrXj8CqDW6qONNttgoktmu fPCyYIIQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2cBG-0002GX-QB; Thu, 21 Jan 2021 15:47:30 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2cBD-0002FK-Ac for linux-arm-kernel@lists.infradead.org; Thu, 21 Jan 2021 15:47:28 +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 3963722C7B; Thu, 21 Jan 2021 15:47:26 +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 1l2cB9-009E2f-Vg; Thu, 21 Jan 2021 15:47:24 +0000 From: Marc Zyngier To: Paolo Bonzini Subject: [GIT PULL] KVM/arm64 fixes for 5.11, take #2 Date: Thu, 21 Jan 2021 15:46:53 +0000 Message-Id: <20210121154653.2907836-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, alexandru.elisei@arm.com, catalin.marinas@arm.com, dbrazdil@google.com, rick.p.edgecombe@intel.com, steven.price@arm.com, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, kernel-team@android.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org 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-20210121_104727_447246_48A2EDA8 X-CRM114-Status: GOOD ( 12.83 ) X-Spam-Score: -5.0 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-5.0 points) 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rick Edgecombe , kvm@vger.kernel.org, Suzuki K Poulose , Catalin Marinas , Steven Price , James Morse , linux-arm-kernel@lists.infradead.org, kernel-team@android.com, David Brazdil , Alexandru Elisei , kvmarm@lists.cs.columbia.edu, Julien Thierry Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org Hi Paolo, This is the second batch of fixes for 5.11. Mostly PMU fixes, but also a couple of memory tagging fixes as well as a PSCI firmware workaround. Please pull, M. The following changes since commit 45ba7b195a369f35cb39094fdb32efe5908b34ad: arm64: cpufeature: remove non-exist CONFIG_KVM_ARM_HOST (2021-01-05 13:22:07 +0000) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-5.11-2 for you to fetch changes up to 139bc8a6146d92822c866cf2fd410159c56b3648: KVM: Forbid the use of tagged userspace addresses for memslots (2021-01-21 14:17:36 +0000) ---------------------------------------------------------------- KVM/arm64 fixes for 5.11, take #2 - Don't allow tagged pointers to point to memslots - Filter out ARMv8.1+ PMU events on v8.0 hardware - Hide PMU registers from userspace when no PMU is configured - More PMU cleanups - Don't try to handle broken PSCI firmware - More sys_reg() to reg_to_encoding() conversions ---------------------------------------------------------------- Alexandru Elisei (1): KVM: arm64: Use the reg_to_encoding() macro instead of sys_reg() David Brazdil (1): KVM: arm64: Allow PSCI SYSTEM_OFF/RESET to return Marc Zyngier (4): KVM: arm64: Hide PMU registers from userspace when not available KVM: arm64: Simplify handling of absent PMU system registers KVM: arm64: Filter out v8.1+ events on v8.0 HW KVM: Forbid the use of tagged userspace addresses for memslots Steven Price (1): KVM: arm64: Compute TPIDR_EL2 ignoring MTE tag Documentation/virt/kvm/api.rst | 3 ++ arch/arm64/kvm/arm.c | 3 +- arch/arm64/kvm/hyp/nvhe/psci-relay.c | 13 ++--- arch/arm64/kvm/pmu-emul.c | 10 ++-- arch/arm64/kvm/sys_regs.c | 93 ++++++++++++++++++++++-------------- virt/kvm/kvm_main.c | 1 + 6 files changed, 74 insertions(+), 49 deletions(-)