From mboxrd@z Thu Jan 1 00:00:00 1970 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 D89B3C7EE29 for ; Fri, 2 Jun 2023 14:57:55 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yHvbQTTTr1Y3+Ipe9lP++FYFe3JrzTNSUdHq+AuqWZQ=; b=u8dtgWURnUn12S py8qWMtrUukaM31c30K/bo5vO4XsL8kHJTDel6fLuXLmsYZQCercTZTCRt3RNkTKKo8Y8IjeqZQtk JTqeXVFUirYb2iwNjwK2UKKAX9dfVA8eW2qtAaXQFYSHYNUSXXHxCj9MUCTiqtg2B+EdLvk0fb/uc fFqfhycEMVmRsTtjFlUBsy7RNA/odEK5EZR6+o6ZZuSNMoboT0LwyOENjiOMpPtHpCM/19O8iKRz6 MuATkjPDDw4o9nTjlf8vriDzomEacvTfAt8aNLMMHsUaVlgxs9UGEzFCuY+TTTNS25OwcKwrVMhG1 Q1xZeTXH30CKJACec1Dw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q56Da-007AnB-0p; Fri, 02 Jun 2023 14:57:30 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q56DX-007AmV-18 for linux-arm-kernel@lists.infradead.org; Fri, 02 Jun 2023 14:57:28 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ACF47650F6; Fri, 2 Jun 2023 14:57:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EED37C433D2; Fri, 2 Jun 2023 14:57:23 +0000 (UTC) Date: Fri, 2 Jun 2023 15:57:20 +0100 From: Catalin Marinas To: Joey Gouly Cc: linux-arm-kernel@lists.infradead.org, nd@arm.com, broonie@kernel.org, james.morse@arm.com, mark.rutland@arm.com, maz@kernel.org, oliver.upton@linux.dev, shuah@kernel.org, suzuki.poulose@arm.com, will@kernel.org, yuzenghui@huawei.com Subject: Re: [PATCH v3 09/20] KVM: arm64: Save/restore PIE registers Message-ID: References: <20230511110337.3385517-1-joey.gouly@arm.com> <20230511110337.3385517-10-joey.gouly@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230511110337.3385517-10-joey.gouly@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230602_075727_434663_EEC7FB41 X-CRM114-Status: GOOD ( 16.91 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, May 11, 2023 at 12:03:26PM +0100, Joey Gouly wrote: > Define the new system registers that PIE introduces and context switch them. > The PIE feature is still hidden from the ID register, and not exposed to a VM. > > Signed-off-by: Joey Gouly > Cc: Marc Zyngier > Cc: Oliver Upton > Cc: James Morse > Cc: Suzuki K Poulose > Cc: Zenghui Yu > Cc: Catalin Marinas > Cc: Will Deacon > Reviewed-by: Catalin Marinas > --- > arch/arm64/include/asm/kvm_host.h | 4 ++++ > arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h | 8 ++++++++ > arch/arm64/kvm/sys_regs.c | 2 ++ > 3 files changed, 14 insertions(+) > > diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h > index f2cfb9ef1eeb..d9f079fbdaf4 100644 > --- a/arch/arm64/include/asm/kvm_host.h > +++ b/arch/arm64/include/asm/kvm_host.h > @@ -340,6 +340,10 @@ enum vcpu_sysreg { > TFSR_EL1, /* Tag Fault Status Register (EL1) */ > TFSRE0_EL1, /* Tag Fault Status Register (EL0) */ > > + /* Permission Indirection Extension registers */ > + PIR_EL1, /* Permission Indirection Register 1 (EL1) */ > + PIRE0_EL1, /* Permission Indirection Register 0 (EL1) */ These have been moved outside of the *_EL2 range as Marc asked. It looks fine to me, waiting for an Ack from Marc/Oliver. -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel