From patchwork Fri Jun 23 12:31:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 695282 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp1929634wrm; Fri, 23 Jun 2023 05:44:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ766kykjxK9s1CNeaBv2Tf1hVz4rSTxh41AnuSLRy6KyTEBn0kQpsWk8K+8wvqfdFR/mU7M X-Received: by 2002:ad4:5b81:0:b0:5df:4d41:954d with SMTP id 1-20020ad45b81000000b005df4d41954dmr25824665qvp.3.1687524253627; Fri, 23 Jun 2023 05:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687524253; cv=none; d=google.com; s=arc-20160816; b=PMbd5ZU74WH46hAuKsAu2y2URCSiKKhvyU44ODVVKYl4KXgX7qz3lxmAwfc+o0M2km 4L+zFDbjlH3WLrwcKNrEYZJG4Fy/Vq1HNdc0s6yzvK4dU2mhRNtseAZ61kgT8HnFDsd+ ATcaAZDfKPkwjlJR15m8wZ8RrC0CNLAncg7KGb1kps9B7ZjdhaCHpOddxbQ/dwb4XMhs oz0kqUYde0uL7lAJeZFN1/4/R9KcOOyIlBJyhe3zgcpAyqlMRhgoMHXOwqJE+m8OJr19 Negc1Kkokst89H9I5Vs5dfHOZ/2/+esdWJKxkifhXkF5oOh6TVtc6oPGYYB3cMB2UDSD ZZTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=R8SxyUK2MeJ9M9x81z3qduNHsB+tE3Mvd9ZEm4Vxx/c=; b=IbqYf0V/NOfaJBDnEiRMQIiqZxIPqLV3LWutM4VXHECv9ySs634ft4riLJF4za/thc MDFc8oJwa3mYMI57PMjo4pc/0tdxJ6ZJZW/OEqab/7PHhS5MuSFTIbDw3gdWbvVUQBLt OvurFd9+cwaIu/96TeDXzKFUpnOEvB0jTZaJP3Ub2+8zECd+r8mA16cz1xN6C/+BI4zU 4/PeKQ4SlE5yl+It7kjvBtfiQdHCZ++MQ3GKbX2wNrqX6t4rtudDlmzBxc2Y5/NVCeRS fvfRtOSIcNZnw0LtsJ0MQpNszBmJjWJGvsoZVcVFMiut+b0OiUYc1C24f8GdplyoTwgo E0FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wsEplZ+O; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id hu3-20020a056214234300b0062558658712si3680699qvb.246.2023.06.23.05.44.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Jun 2023 05:44:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wsEplZ+O; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCfxO-0002u7-Kq; Fri, 23 Jun 2023 08:32:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCfx9-0001nz-FG for qemu-devel@nongnu.org; Fri, 23 Jun 2023 08:31:51 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCfx6-0000iL-Du for qemu-devel@nongnu.org; Fri, 23 Jun 2023 08:31:51 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fa23c3e618so7632945e9.0 for ; Fri, 23 Jun 2023 05:31:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687523507; x=1690115507; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=R8SxyUK2MeJ9M9x81z3qduNHsB+tE3Mvd9ZEm4Vxx/c=; b=wsEplZ+Ovk7uJHSv5guqeVKkDA+p6We6opN70VqsAmAeZxxN5yXFdHiB3knARQ9+WF BU5yZduow3o3yWX/e4vfDHIvkkwMZLclEnUsSW9B/OCbE/AwS1lXxQdCwPubHG5Rnugu iKx3blh4Zj7rk0xoAqmtcRxRDbi/hXPxxkFhyVG4yRl4+0dC3CtcSCRyZY1V/QvoMFnr Oc/mObghUV3LRJlexb3Ha4tR2pnsCkJMaArhzxNdYcIa0wNw33Bmp9gioeUnH/hyYMbb sCEjW9AVpquIoqYccjyugzE0b1x+re4L17ZlopvwX/rH874OrO8WHoBaC5/VoDBYOMtz VzUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687523507; x=1690115507; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R8SxyUK2MeJ9M9x81z3qduNHsB+tE3Mvd9ZEm4Vxx/c=; b=OSvfZmJa98Ruk4AmSPrblNJnHekIyom6obpxrdP8WwuvM4ytyM41bEX3xxqfOyCG+r na0zPhOAZHZbVmcI3Js5P2RoTq8Ic8B2FFGftruXoTYRiGXQ+ttHgbDPJPNWOTDLfmo6 9qrPWwWIJyWQwbKamDSuY3QWb6zakKKnHPp7YjnEqaOlei3KrtJiijRh/oHTms4UhwTG 3+Q/rUTas4K9wx8oz+N7Gjrr3YW5yCA5vQMtunm6q+1GSgtTe8E7jhZd+Ve/SzZyAfLs cq3qyp9fVRRTZDk7lWHgI5zC7ke+DST+BUfXR1kWYB+KR8aZvBkNRPH23YZ/WltP2fCU LOCw== X-Gm-Message-State: AC+VfDygcxmrseJ/nAgiQUtC7n1hL+bkMwfj4sN31NsLr7qU2EcNx8LQ 9F2jtMHKwnvQUQgfIRHNLtqEuGFaPwSAEL1c2wQ= X-Received: by 2002:a7b:c7d3:0:b0:3f8:fe9b:e1f6 with SMTP id z19-20020a7bc7d3000000b003f8fe9be1f6mr15581970wmk.10.1687523507079; Fri, 23 Jun 2023 05:31:47 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id z7-20020a1c4c07000000b003f819dfa0ddsm2232622wmf.28.2023.06.23.05.31.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 05:31:46 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 21/26] docs/system/arm: Document FEAT_RME Date: Fri, 23 Jun 2023 13:31:30 +0100 Message-Id: <20230623123135.1788191-22-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230623123135.1788191-1-peter.maydell@linaro.org> References: <20230623123135.1788191-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Richard Henderson Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée Message-id: 20230622143046.1578160-1-richard.henderson@linaro.org [PMM: fixed typo; note experimental status in emulation.rst too] Signed-off-by: Peter Maydell --- docs/system/arm/cpu-features.rst | 23 +++++++++++++++++++++++ docs/system/arm/emulation.rst | 1 + 2 files changed, 24 insertions(+) diff --git a/docs/system/arm/cpu-features.rst b/docs/system/arm/cpu-features.rst index f4524b6d3e7..6bb88a40c77 100644 --- a/docs/system/arm/cpu-features.rst +++ b/docs/system/arm/cpu-features.rst @@ -435,3 +435,26 @@ As with ``sve-default-vector-length``, if the default length is larger than the maximum vector length enabled, the actual vector length will be reduced. If this property is set to ``-1`` then the default vector length is set to the maximum possible length. + +RME CPU Properties +================== + +The status of RME support with QEMU is experimental. At this time we +only support RME within the CPU proper, not within the SMMU or GIC. +The feature is enabled by the CPU property ``x-rme``, with the ``x-`` +prefix present as a reminder of the experimental status, and defaults off. + +The method for enabling RME will change in some future QEMU release +without notice or backward compatibility. + +RME Level 0 GPT Size Property +----------------------------- + +To aid firmware developers in testing different possible CPU +configurations, ``x-l0gptsz=S`` may be used to specify the value +to encode into ``GPCCR_EL3.L0GPTSZ``, a read-only field that +specifies the size of the Level 0 Granule Protection Table. +Legal values for ``S`` are 30, 34, 36, and 39; the default is 30. + +As with ``x-rme``, the ``x-l0gptsz`` property may be renamed or +removed in some future QEMU release. diff --git a/docs/system/arm/emulation.rst b/docs/system/arm/emulation.rst index ecbbd63adf6..bdafc68819b 100644 --- a/docs/system/arm/emulation.rst +++ b/docs/system/arm/emulation.rst @@ -66,6 +66,7 @@ the following architecture extensions: - FEAT_RAS (Reliability, availability, and serviceability) - FEAT_RASv1p1 (RAS Extension v1.1) - FEAT_RDM (Advanced SIMD rounding double multiply accumulate instructions) +- FEAT_RME (Realm Management Extension) (NB: support status in QEMU is experimental) - FEAT_RNG (Random number generator) - FEAT_S2FWB (Stage 2 forced Write-Back) - FEAT_SB (Speculation Barrier)