From patchwork Thu Aug 22 15:11:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 13773700 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 875B7C52D7C for ; Thu, 22 Aug 2024 15:13:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1345F6B0142; Thu, 22 Aug 2024 11:13:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0E6926B0145; Thu, 22 Aug 2024 11:13:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E79176B0143; Thu, 22 Aug 2024 11:13:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id C13826B0138 for ; Thu, 22 Aug 2024 11:13:36 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 7AB5514170E for ; Thu, 22 Aug 2024 15:13:36 +0000 (UTC) X-FDA: 82480225632.05.2DCC877 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf16.hostedemail.com (Postfix) with ESMTP id C4366180003 for ; Thu, 22 Aug 2024 15:13:34 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=none; spf=pass (imf16.hostedemail.com: domain of joey.gouly@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=joey.gouly@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724339574; a=rsa-sha256; cv=none; b=uwNXUExA7V75Nck3uriIliZO6/DHb+YEfRrpHkHTOetjJSqWQNIsrKaiUrYNtfAT0rSsA0 rUflnk/+HN1Kkqw6hviPklU0HtNZ7vUdC6DdGynoZ2oC9K26Ky+UwKJQ0BrsrXyMGUrHu/ dId8PDcNpO1+kiWiHY6UlUKAIVas0c8= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=none; spf=pass (imf16.hostedemail.com: domain of joey.gouly@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=joey.gouly@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724339574; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PtgYcAquF/+pUMmaCA/YK/T3qoyr8VMF+0I75YD9aNo=; b=1SxfBHM9fv+pWbIt7bvUDq0Di3Ee7QGRVOyp8gDmlKLU6EPmuMGEeNRazBlEAnKoHxln/q CpjhQ5TDlOHQF4PoX0nWAwfW8I35HseW9txK91TO1BH/vNWIoc8On+Z8QCcvmJqCS276tn tjlUyjM/lUysfhHwoinruxthbkx0oz4= 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 1EC09169C; Thu, 22 Aug 2024 08:14:00 -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 00D0F3F58B; Thu, 22 Aug 2024 08:13:29 -0700 (PDT) From: Joey Gouly To: linux-arm-kernel@lists.infradead.org Cc: nd@arm.com, akpm@linux-foundation.org, aneesh.kumar@kernel.org, aneesh.kumar@linux.ibm.com, anshuman.khandual@arm.com, bp@alien8.de, broonie@kernel.org, catalin.marinas@arm.com, christophe.leroy@csgroup.eu, dave.hansen@linux.intel.com, hpa@zytor.com, joey.gouly@arm.com, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, maz@kernel.org, mingo@redhat.com, mpe@ellerman.id.au, naveen.n.rao@linux.ibm.com, npiggin@gmail.com, oliver.upton@linux.dev, shuah@kernel.org, skhan@linuxfoundation.org, szabolcs.nagy@arm.com, tglx@linutronix.de, will@kernel.org, x86@kernel.org, kvmarm@lists.linux.dev, linux-kselftest@vger.kernel.org Subject: [PATCH v5 30/30] KVM: selftests: get-reg-list: add Permission Overlay registers Date: Thu, 22 Aug 2024 16:11:13 +0100 Message-Id: <20240822151113.1479789-31-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240822151113.1479789-1-joey.gouly@arm.com> References: <20240822151113.1479789-1-joey.gouly@arm.com> MIME-Version: 1.0 X-Stat-Signature: kx64pya3wmtgwozhiuzbfopt64mkgyqw X-Rspamd-Queue-Id: C4366180003 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1724339614-935234 X-HE-Meta: U2FsdGVkX19naQs+NWnYdWzKl40wZGStbn7MCQF+gS+/psswQKOtwOoHvsoxUzX+/PpoS0oLMbAufamgCHjatXWCvfnk227k9SyfTZyGrAtzuhzGmEWEi64b5cl/8lGgjAeFEKDnQBEZq5aprdLayC7ZATvltOG4TImkKjeRhuYf+XRm+gkRBtOTraztN+CAMTWs8piRuSdqCmzcuj8/+4pvyB2RA4SFImsb4M+cVIetUI5LMYkA1ZbFuM8hlXKRW8TTqD0c6JtvsWmwBdsOMaydovxWlBTtPPSLp+pvYSTCqGUPPU2iWaRJL2BG1F8uZOB7gWUA+WSI4r0i+hZhRKrlUs8e/KvsoaxgaSdyjwop7W+q8Ja9jEnNRaRhKqsOQD9TKUEirZlZ92/Qj9EdqR1EuwcqLI3fPiSGj6SjPjAFSo0JYILlD2/Nf3SpLV74G2d8D742VAGqgUR4oVK7s3xKpK0Ouobw5iA2oWaujN+zCh0+GmJfksaruMpK5tddBnfoBIppLg0KFPGklIInJWGDFy+jkxsOgrv0udAGd4g1YV9NsBbN9t7dbxDtUAvnOYOQlZs2IOzEdHhtrwJIdeU8YTI0HnqntMFQZ43PfxUkelRMqocvYqtPHP4M8tdKOQ6cMrocFxjfMxJowJ0QLvRoSJ3Z7Ic18AcqOEszquxYLDCFNw7T1YnTQDpn4CMj/uu6piQTGLkya1rCQ5x7op8vool0d8spQIcdfINjcmsVwgkKqsbq70ixMbD9aCDUVWpANOxpFO1n4HWc4q41MF/sm8z7Jix1fdbYWD5xbRCTtjbzHmXkx/FGsJVxPr17LXML7SoyMllYf015IXISB4LnfejU74oNGLJx65CrgcnNpQMhI6vMmRtLux+3tq6aGdniL9McDDL9eAy7zXrN7rxOry945goC4oihyL88qqYShlt42zUN4VtGRmYZkZF594kwSL1yFFeu5sWt5Gp WnJf/Zaf 9NRA/kodgcdlNcAdUtlQ1v030myuU52Yyxthng8FEUS7KpcSVDTb3QoZf0CeUh/QOfyEwXZLYa+UIGXiuehezmjzBmx4YrbxtIW4WLfx+X5lPNFzkQOFtxfDifIznQHXD7qad5+CHEDcDP67JE2cN7ik7Lxq5FUy9mzhh9jxjqBLnKyk4FfezspMTOu6B8J/hynfMaanVPb2DwmXD80MKbiguGw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Add new system registers: - POR_EL1 - POR_EL0 Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Marc Zyngier Cc: Oliver Upton Cc: Shuah Khan Reviewed-by: Mark Brown --- tools/testing/selftests/kvm/aarch64/get-reg-list.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git tools/testing/selftests/kvm/aarch64/get-reg-list.c tools/testing/selftests/kvm/aarch64/get-reg-list.c index 4abebde78187..d43fb3f49050 100644 --- tools/testing/selftests/kvm/aarch64/get-reg-list.c +++ tools/testing/selftests/kvm/aarch64/get-reg-list.c @@ -40,6 +40,18 @@ static struct feature_id_reg feat_id_regs[] = { ARM64_SYS_REG(3, 0, 0, 7, 3), /* ID_AA64MMFR3_EL1 */ 8, 1 + }, + { + ARM64_SYS_REG(3, 0, 10, 2, 4), /* POR_EL1 */ + ARM64_SYS_REG(3, 0, 0, 7, 3), /* ID_AA64MMFR3_EL1 */ + 16, + 1 + }, + { + ARM64_SYS_REG(3, 3, 10, 2, 4), /* POR_EL0 */ + ARM64_SYS_REG(3, 0, 0, 7, 3), /* ID_AA64MMFR3_EL1 */ + 16, + 1 } }; @@ -468,6 +480,7 @@ static __u64 base_regs[] = { ARM64_SYS_REG(3, 0, 10, 2, 0), /* MAIR_EL1 */ ARM64_SYS_REG(3, 0, 10, 2, 2), /* PIRE0_EL1 */ ARM64_SYS_REG(3, 0, 10, 2, 3), /* PIR_EL1 */ + ARM64_SYS_REG(3, 0, 10, 2, 4), /* POR_EL1 */ ARM64_SYS_REG(3, 0, 10, 3, 0), /* AMAIR_EL1 */ ARM64_SYS_REG(3, 0, 12, 0, 0), /* VBAR_EL1 */ ARM64_SYS_REG(3, 0, 12, 1, 1), /* DISR_EL1 */ @@ -475,6 +488,7 @@ static __u64 base_regs[] = { ARM64_SYS_REG(3, 0, 13, 0, 4), /* TPIDR_EL1 */ ARM64_SYS_REG(3, 0, 14, 1, 0), /* CNTKCTL_EL1 */ ARM64_SYS_REG(3, 2, 0, 0, 0), /* CSSELR_EL1 */ + ARM64_SYS_REG(3, 3, 10, 2, 4), /* POR_EL0 */ ARM64_SYS_REG(3, 3, 13, 0, 2), /* TPIDR_EL0 */ ARM64_SYS_REG(3, 3, 13, 0, 3), /* TPIDRRO_EL0 */ ARM64_SYS_REG(3, 3, 14, 0, 1), /* CNTPCT_EL0 */