From patchwork Sat May 15 09:59:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 1478826 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=Z2WW9wKN; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=ogePkCjx; 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 4Fj18m1gMGz9sCD for ; Sat, 15 May 2021 19:59:52 +1000 (AEST) 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=ARUn7okY0+y+HImuuB0kHmm0mqKVh/OHm0ywHf+gJ24=; b=Z2WW9wKNoisMZ/aZlbXAkmiltX vJLkUleRqH12GO6d0ZncEk0EpuXP14jnlflq0QPR8Y47ReE8YMOIHYJU9yD3JKIn/LY2vnB6A3cpb IMIdIksfnrhQyOWbgZWy90V2fN4zD0+6y9LP+xuIyYZthfQZZqg7xitNgUa+6DgUWYxGC8nZ5CPem Cr91TeX8AXQBvNP8Avkd5pYTPUo5afPkZOroRnHAaQUS0A/V3pjQVd6xb53RDYpx8a0VOshlyS//d cZzRqr8AJuHxedNGUrivYC3hN1cusoTZZg9r9FI4+/YI/jKFd6XkwiEXoliD+L6gNzSFdHYuR02Q0 xbV9xx4A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhr50-00A779-JE; Sat, 15 May 2021 09:59:30 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhr4y-00A774-FQ for linux-arm-kernel@desiato.infradead.org; Sat, 15 May 2021 09:59:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=w+05iQ4ak+K39lOwP0+2yo/MscIsX8Hr6UAf0XyZpzg=; b=ogePkCjxvfDekFA/y1/AlypjZ3 I7pZDlmmuxkmUBIYzM6lW5J3eGS/lB9Cd5J0IChRh3DMb9/TzownHHaewRT+5qcruUe5+COLYcBOQ F3el3XZilTV1468MYTU28Kflrgz58PJBUOjtY42GRJmR6lNMEAqCcVtPhay2YBhX7yLQHvUX3RtQV yzTke0zeimTwtJwrDKyFfh8bt24VHEnOajB2B24u8T4oaZB8WoGAxFYEz+fEPGxMrgEAb8QDFFJy4 ngcm57/i+q9nm/KXJJfj34tMPCwSeUBkbsSBj88HjORh9JAfsI+F7OULijYka6aw7wcnGKOxWAOSu gPa3r1Kw==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhr4v-00CTiv-TR for linux-arm-kernel@lists.infradead.org; Sat, 15 May 2021 09:59:27 +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 72A2D61155; Sat, 15 May 2021 09:59:25 +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.2) (envelope-from ) id 1lhr4t-001X9Q-CQ; Sat, 15 May 2021 10:59:23 +0100 From: Marc Zyngier To: Paolo Bonzini Cc: Alexandru Elisei , Eric Auger , Jason Wang , "Michael S . Tsirkin" , Quentin Perret , Ricardo Koller , Sean Christopherson , Shaokun Zhang , Zenghui Yu , Zhu Lingshan , James Morse , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, kernel-team@android.com Subject: [GIT PULL] KVM/arm64 fixes for 5.13, take #1 Date: Sat, 15 May 2021 10:59:19 +0100 Message-Id: <20210515095919.6711-1-maz@kernel.org> X-Mailer: git-send-email 2.30.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, eric.auger@redhat.com, jasowang@redhat.com, mst@redhat.com, qperret@google.com, ricarkol@google.com, seanjc@google.com, zhangshaokun@hisilicon.com, yuzenghui@huawei.com, lingshan.zhu@intel.com, james.morse@arm.com, suzuki.poulose@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, kernel-team@android.com 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-20210515_025926_013072_114C6113 X-CRM114-Status: GOOD ( 13.99 ) X-Spam-Score: -5.0 (-----) X-Spam-Report: Spam detection software, running on the system "bombadil.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 first batch of KVM/arm64 fixes for 5.13. we have three regression fixes (irqbypass, debug and exception state), all that will require some backporting into stable. The rest is a pretty mundane set of cleanups after the last merge window, including one from "kernel test robot", a first for KVM/arm64. 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 first batch of KVM/arm64 fixes for 5.13. we have three regression fixes (irqbypass, debug and exception state), all that will require some backporting into stable. The rest is a pretty mundane set of cleanups after the last merge window, including one from "kernel test robot", a first for KVM/arm64. Please pull, M. The following changes since commit 6efb943b8616ec53a5e444193dccf1af9ad627b5: Linux 5.13-rc1 (2021-05-09 14:17:44 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-5.13-1 for you to fetch changes up to cb853ded1d25e5b026ce115dbcde69e3d7e2e831: KVM: arm64: Fix debug register indexing (2021-05-15 10:27:59 +0100) ---------------------------------------------------------------- KVM/arm64 fixes for 5.13, take #1 - Fix regression with irqbypass not restarting the guest on failed connect - Fix regression with debug register decoding resulting in overlapping access - Commit exception state on exit to usrspace - Fix the MMU notifier return values - Add missing 'static' qualifiers in the new host stage-2 code ---------------------------------------------------------------- Marc Zyngier (3): KVM: arm64: Move __adjust_pc out of line KVM: arm64: Commit pending PC adjustemnts before returning to userspace KVM: arm64: Fix debug register indexing Quentin Perret (2): KVM: arm64: Mark pkvm_pgtable_mm_ops static KVM: arm64: Mark the host stage-2 memory pools static Zhu Lingshan (1): Revert "irqbypass: do not start cons/prod when failed connect" kernel test robot (1): KVM: arm64: Fix boolreturn.cocci warnings arch/arm64/include/asm/kvm_asm.h | 3 +++ arch/arm64/kvm/arm.c | 11 ++++++++ arch/arm64/kvm/hyp/exception.c | 18 ++++++++++++- arch/arm64/kvm/hyp/include/hyp/adjust_pc.h | 18 ------------- arch/arm64/kvm/hyp/nvhe/hyp-main.c | 8 ++++++ arch/arm64/kvm/hyp/nvhe/mem_protect.c | 4 +-- arch/arm64/kvm/hyp/nvhe/setup.c | 2 +- arch/arm64/kvm/hyp/nvhe/switch.c | 3 +-- arch/arm64/kvm/hyp/vhe/switch.c | 3 +-- arch/arm64/kvm/mmu.c | 12 ++++----- arch/arm64/kvm/sys_regs.c | 42 +++++++++++++++--------------- virt/lib/irqbypass.c | 16 +++++------- 12 files changed, 77 insertions(+), 63 deletions(-)