From patchwork Thu Oct 12 12:34:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 13419220 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CA83BCDB46E for ; Thu, 12 Oct 2023 12:35:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=WUwm5w2lSW0uo1SIxzYPY2xuuVK7nycv9lMA0j/dhh0=; b=H2eAiOk1xNb9Uc 5DGtz3jZl/AAq/t+41aB8dLXp8HvzGHgfRz4GQuitYwR1tEN1npEItPaX7y4hRyG7E18tUW94UHjB 0A/pGd3G6PdcdQdLKFxliYv+dgL+yJcsJNdxYabwZhfg1klafk7ZAktcpsWlt4lyDZYVzjWWDmcDK pW0eLFzyVcBYGWZTGEgM4Sxz0wgIWAZcyP3dhGekqQ/OxgonWFRDij6VvomXea4YZkCygcVoXj8SF 7arAasmy+a95/iIQzaJ18v8XYXD0H/c/jSOzP2nnPJ67aIJhkgvfhT688hJH1XQztEGRBC5TaWnex T+dAn01Cf2MRyRI80NhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qquuN-000yiX-04; Thu, 12 Oct 2023 12:35:19 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qquuI-000yh1-11 for linux-arm-kernel@lists.infradead.org; Thu, 12 Oct 2023 12:35:17 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9AA4F13D5; Thu, 12 Oct 2023 05:35:49 -0700 (PDT) Received: from e124191.cambridge.arm.com (e124191.cambridge.arm.com [10.1.197.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0DB033F5A1; Thu, 12 Oct 2023 05:35:07 -0700 (PDT) From: Joey Gouly To: linux-arm-kernel@lists.infradead.org Cc: joey.gouly@arm.com, maz@kernel.org, oliver.upton@linux.dev, kvmarm@lists.linux.dev Subject: [PATCH v1 0/2] KVM: fix issues with Permission Indirection Extension Date: Thu, 12 Oct 2023 13:34:57 +0100 Message-Id: <20231012123459.2820835-1-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231012_053514_419719_6754EC4A X-CRM114-Status: UNSURE ( 8.21 ) X-CRM114-Notice: Please train this message. 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+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, This is a fix (and a cleanup) to KVM when using PIE. The handling around HFG registers was changed and that missed off adding the PIE traps to the HFG*_nMASK values. Thanks, Joey Joey Gouly (2): KVM: arm64: add nPIR{E0}_EL1 to HFG traps KVM: arm64: POR{E0}_EL1 do not need trap handlers arch/arm64/include/asm/kvm_arm.h | 4 ++-- arch/arm64/kvm/sys_regs.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)