Received: by 2002:a17:906:43c7:b0:78d:9f02:16a1 with SMTP id j7csp679688ejn; Thu, 27 Oct 2022 13:24:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7F+2wDfCkSVssGKkbq2e48FqkvGVnyG4dlqwHqwOoER5jqkn3gh4X8MzGKJ43Qr6HRt5Jq X-Received: by 2002:a05:620a:298a:b0:6ee:e31f:6247 with SMTP id r10-20020a05620a298a00b006eee31f6247mr34887899qkp.744.1666902273159; Thu, 27 Oct 2022 13:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666902273; cv=none; d=google.com; s=arc-20160816; b=QBk1CE1GtP9+z3gMN9Lv4B0B9IxGlK5jQZemwn4e+lpx2wbTsgKu1NxyTGw8aW5dKw qrLMKFMP6kj2XJU3znCb2VYk2Ffy5qDwVfEiBRCddVA1zKWmswwEY3fmtxBemHoUmNG2 yV+mHVIEjQAHoTxTfLCZT4OTTDWGX9DSAU0Jb5NutvWRIpz1E5aZ/zSR0B0z/ktFPr5N HZzXS90A9ohGaIGJUpA5RKc9LeyIkhVGtkut2L54HsTVq1yLRMqx4cD8hIdBpry3QFl3 CnPV7wqqC6CD9/9RTZ68wA1yygdo/+obKf3efa4z5y1O22Nr7CiadW3ERpReJZUXxyaY NfxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=QV9Gn+ZSEEsFZu8EbaTf3oN3ULyfPogPWjTw7H0V79U=; b=SJfeI8bBi6jsrGiHBOzLd4kdCvt7i+A0bmTNAx8jsrvZ+igPkmsda/27giUcLOmFNa pBhmhQrRiK4YaygE/6hs7Cx+DWSzmnscfKmbnMp8e0m5WdRXPeHR0c2ofcQogzs+QSMV 5n1ui8GpVRugozMS7veF4yn7ilID/cwzVz2DlLk4/1a7c03PaefR7+PZeJw7QGhMhSI1 yEPLQa9dv7qK2Cau/JkGL1KIETD/p4bqbmoPPrq8gWzBd032N5RdNgXjANfuXInmGZ6q ikXltFR+rBn6qjt7mxWW7+tih51IDkE8ynhIgCvDITWm0OPYePcrRbhX2DUh9s3CY8Ol hAyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m2a56fvK; 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 1-20020ad45b81000000b004bb7179688dsi1570545qvp.319.2022.10.27.13.24.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Oct 2022 13:24:33 -0700 (PDT) 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=m2a56fvK; 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 1oo9Pr-0004oO-SM; Thu, 27 Oct 2022 16:23:51 -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 1oo9Pp-0004ny-Lm for qemu-devel@nongnu.org; Thu, 27 Oct 2022 16:23:49 -0400 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oo9Pj-0003tJ-Cr for qemu-devel@nongnu.org; Thu, 27 Oct 2022 16:23:49 -0400 Received: by mail-pg1-x52c.google.com with SMTP id s196so2708061pgs.3 for ; Thu, 27 Oct 2022 13:23:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=QV9Gn+ZSEEsFZu8EbaTf3oN3ULyfPogPWjTw7H0V79U=; b=m2a56fvKh+6IYlJU+m26ZqvNioPuKbCLUticeEqIoHCEj4RzP13UL+eHCTMB4WZ77C 8mm1jCOUNAebjTl/hH8qVMPWaaufnm7Wz2nU81bIC0jBGiOK2Nh0D1cm2T5gEFnnYnkQ aKT8Qgmi/TPeoVIV7biz/GGsE/NTV2285BoqqyxOOYcPE+JfkWFBrqZzl7oewD+Veqx7 g5NfmdCUofNBawVtFbVFX9fg7KEjNZfeqpJi4/DERiCaeJbzTPxTuv9q25xn6Z7u37TW N38/1fOkhpa/yESIZdmNmUG+a+GKQqgeWyKx+96Irx824Pcj2FTb2pMung57vZfc4ddE Yu6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc: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=QV9Gn+ZSEEsFZu8EbaTf3oN3ULyfPogPWjTw7H0V79U=; b=7pPWtyRtlOxnOL9wRwEGgrbdE8t7xxSiFT/XX3nKyKGoXSKuKEcFVvpwdAm/yk6aVY v5GboawN/khfKw9o7BXGJ97ofa+EwSa2WFBuE+Ncqd2OM/ihSG3BUUViCeRGmiTiAIg3 sd07z91WhUaABYlL/g5GgmhuCcPW4wp4HVuWt33wyFVX5GiJNOJhr5SVv6iWUEe6I+DA 02+tcK3AGA67Al12XMSSNYBBdrpsilhBDzp7fFj8jf4/U/4UMOBgxcVT5V4T8ZIh3Fx3 Nz85Bwcs+RyY2xQDytYUTY01QJIsRpq7TANS5zR8y2+cBfL45LgCty5ix03zAe6gPwJA 06HQ== X-Gm-Message-State: ACrzQf1YkbMIa/2D/LhVSQSN3DxozuJ4VgDbLKIIhnwDLV3JxPU8Nnag IMiekvjaEVEOjFc841Omn1W7uq2/TTnSZced X-Received: by 2002:a17:902:6a86:b0:176:a6bc:54c0 with SMTP id n6-20020a1709026a8600b00176a6bc54c0mr51743159plk.87.1666902210493; Thu, 27 Oct 2022 13:23:30 -0700 (PDT) Received: from ?IPV6:2001:8003:501a:d301:93c4:c1c9:4368:47fa? ([2001:8003:501a:d301:93c4:c1c9:4368:47fa]) by smtp.gmail.com with ESMTPSA id t8-20020a1709027fc800b00179eb1576bbsm1554171plb.190.2022.10.27.13.23.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Oct 2022 13:23:30 -0700 (PDT) Message-ID: Date: Fri, 28 Oct 2022 06:23:24 +1000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH 2/2] hw/arm/boot: Set SCR_EL3.HXEn when booting kernel Content-Language: en-US To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Jerome Forissier References: <20221027140207.413084-1-peter.maydell@linaro.org> <20221027140207.413084-3-peter.maydell@linaro.org> From: Richard Henderson In-Reply-To: <20221027140207.413084-3-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::52c; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52c.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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=unavailable 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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: BeQ5LfVUN9yV On 10/28/22 00:02, Peter Maydell wrote: > When we direct boot a kernel on a CPU which emulates EL3, we need to > set up the EL3 system registers as the Linux kernel documentation > specifies: > https://www.kernel.org/doc/Documentation/arm64/booting.rst > > For CPUs with FEAT_HCX support this includes: > - SCR_EL3.HXEn (bit 38) must be initialised to 0b1. > > but we forgot to do this when implementing FEAT_HCX, which would mean > that a guest trying to access the HCRX_EL2 register would crash. > > Signed-off-by: Peter Maydell > --- > hw/arm/boot.c | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Richard Henderson r~