Received: by 2002:a17:907:c9e:b0:a27:13b6:eed5 with SMTP id gi30csp1207799ejc; Wed, 27 Dec 2023 14:58:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IFI5rMiw9Kn02uUgi7hEnIHK9qR7tk0iJYwt7Q98zy/9jPYsLE/tUwATSSrZccDrVT2MOuM X-Received: by 2002:a05:6870:1708:b0:204:29f5:be0a with SMTP id h8-20020a056870170800b0020429f5be0amr8379759oae.91.1703717908848; Wed, 27 Dec 2023 14:58:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703717908; cv=none; d=google.com; s=arc-20160816; b=QaZuRJqcDs5RJlNQjT7YYQOtfLtob8ARpKRPevpeH/+vpU+yxmQC/Ia/jRALjVVijt f8uw4a+XFP8BvRwgDL5HmrIVEBTh+D2mv1c5DLKf7CFe0mYWQTnnoSe4JzEEcs/sI0cs VEYficp4kChNVpC+JjYsDpvczX1AgN7PySWxuHoba7fLPANKBc8/KU4rQt7Xi+ik6qlT ERJ8OLX+zVgj4FS/Izbo2OReTL8eDePvsJ9tIl65TXLcegs5ENkbN20bX5vrQY/4Ek0N kHuI0huEwygpIzL71qzPZHFhUF3P/gQgfM2sZRyDjWB8yJU/ReDDo3a5eF7N4IiyLSIa OK0Q== 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 :in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=SSrIliV/5e/px1H71jwkKZEmYXae37rqZsmDzESYHZc=; fh=+xj4Yfkfa7hWRbLS+DTrcNY2o0evBrBbm0gAigyTnIw=; b=U5q1PEIwqR0eLJHGmAz1/gPWg+WAOQ3loSb+BEbVYsN7jLZ8BW93MeHBytNrQasMMQ HKlnEzwbamyIw+swQjjeGjviTB5wNBGIJ1au5T2066sM+peavftpmEg5m2HNi80G/G7a Mx30gRRLNZyV4hIKvBk3E8hFsl3LESPYm+RNGXMH3HQ7w4RqTPDH3vRo0yXQwBsiiFla gB5bpQ0Sbdwb9qOaaPjBpehcQthyA2lVAMdaRO36IXKI+d00DcLsoYJUUCndtCWgZq/V FCz8bVMipsFf9QNMMcfYAEMyAgHuIYT1rZId+ssxUhppPyvzA2oj7N3KKn9COROpBMob RsOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gPBl9p5q; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=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 bl37-20020a05620a1aa500b0077f059ff196si16463969qkb.151.2023.12.27.14.58.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Dec 2023 14:58:28 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=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=gPBl9p5q; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=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 1rIcqm-0003m4-OS; Wed, 27 Dec 2023 17:58:08 -0500 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 1rIcqm-0003lp-8G for qemu-devel@nongnu.org; Wed, 27 Dec 2023 17:58:08 -0500 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rIcqk-0003fl-3D for qemu-devel@nongnu.org; Wed, 27 Dec 2023 17:58:08 -0500 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1d3e6c86868so43971985ad.1 for ; Wed, 27 Dec 2023 14:58:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703717884; x=1704322684; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=SSrIliV/5e/px1H71jwkKZEmYXae37rqZsmDzESYHZc=; b=gPBl9p5quXnwW4VCzC1nui08Wl1qOp47LC5CNvfPPannjT8EkreptumWxMXn0UxH4F 7eOwDnGT7qQ6dyjI6B5od/HxbKvRifSZok1g2wsNU10pAa2XFjLwZA+mfAX5STiMCQTO MAamySZF6OIWLUyxQnqToqRkrOX2euhE0EGLtF+CHOz81Cg/Vpr/AEUZ4pchU6PDr2rj c8C/0+RC4s54Syey6NtczN33McldqqOCWh5ZuJNazsIurpvt0hV8zs2GJL9iDWOqnH1f BhGoW1TWTk0yz7aldT1tME0bOx6kZ/HEUZkYOQMaEk9xrUgFK/HzMr1WQ6DNNmeof8rn 0NJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703717884; x=1704322684; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SSrIliV/5e/px1H71jwkKZEmYXae37rqZsmDzESYHZc=; b=d3xRGWRwVLmtfjTl3AzA3Fz7hnblOu7tueHtDKdtGpdJGVvDMhKxtEoeErusuSplRN dzQSpoOMu+zQ5LUQZCWnbcYl1xMdiFrTiuwr9LOZ1tVW0dDuBpGxDYqPhTe+4U82TD0W ek1v+6m/jqFcFIVLyAofm8J+9kevgrIoxRkpPcjgtWJ16E0lblQgnVnS4NA9Ge1XGRSt B7iZ0qb0m3DkVgjU3aMgyZueQCxmipP1d/BOBQzi9HjIa0ioingHhBlBcmOt6vaPeAGL gvErO+mjTSOP1AR9YBsNm+TkgUkO0UE6jPZCQGQvop8d0GZt02j070BwBs+7fFaXzJwy 2XYA== X-Gm-Message-State: AOJu0YzDzy5/OOhr50CNo0nWAEvx6tmu4cFHvTdmZYuVTlCVw++0zPjQ DX2OzyggvME913VV7XUTtgA2gJLHS/3BTw== X-Received: by 2002:a17:902:e745:b0:1d4:1d39:c982 with SMTP id p5-20020a170902e74500b001d41d39c982mr11521921plf.33.1703717884545; Wed, 27 Dec 2023 14:58:04 -0800 (PST) Received: from ?IPV6:2001:8003:c020:6900:12c1:9684:874a:fb3a? ([2001:8003:c020:6900:12c1:9684:874a:fb3a]) by smtp.gmail.com with ESMTPSA id w12-20020a170902e88c00b001d06df5c1absm12529753plg.86.2023.12.27.14.58.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Dec 2023 14:58:04 -0800 (PST) Message-ID: <05ef6d75-de08-4892-ab3f-67243a9b0959@linaro.org> Date: Thu, 28 Dec 2023 09:57:59 +1100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 20/35] target/arm: Handle FEAT_NV page table attribute changes Content-Language: en-US To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org References: <20231218113305.2511480-1-peter.maydell@linaro.org> <20231218113305.2511480-21-peter.maydell@linaro.org> From: Richard Henderson In-Reply-To: <20231218113305.2511480-21-peter.maydell@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62a.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+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: qbrpHL0Ol9w1 On 12/18/23 22:32, Peter Maydell wrote: > FEAT_NV requires that when HCR_EL2.{NV,NV1} == {1,1} the handling > of some of the page table attribute bits changes for the EL1&0 > translation regime: > > * for block and page descriptors: > - bit [54] holds PXN, not UXN > - bit [53] is RES0, and the effective value of UXN is 0 > - bit [6], AP[1], is treated as 0 > * for table descriptors, when hierarchical permissions are enabled: > - bit [60] holds PXNTable, not UXNTable > - bit [59] is RES0 > - bit [61], APTable[0] is treated as 0 > > Implement these changes to the page table attribute handling. > > Signed-off-by: Peter Maydell > --- > target/arm/ptw.c | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) Reviewed-by: Richard Henderson r~