From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a17:906:43c7:b0:78d:9f02:16a1 with SMTP id j7csp97849ejn; Tue, 25 Oct 2022 16:51:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5MbXtKWRY49milkVDsVOQ1O4JtDhnh0YqLAGj5eNdjnco5mZUUmNXiEHECfOhnks5RjVFI X-Received: by 2002:a05:620a:2b91:b0:6ee:bc07:24c with SMTP id dz17-20020a05620a2b9100b006eebc07024cmr28950361qkb.64.1666741868283; Tue, 25 Oct 2022 16:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666741868; cv=none; d=google.com; s=arc-20160816; b=KgluD+XKzVwl6lutTjbgnY846bhvwbGBcjrOlj0XsKUdmoSRP9h1DKGaQI/e6XMu20 N++PL1ugVPdnzO391qY+ICu0O6OAJuZiO0hUo2LPhBHcNGdEX6afOF6yvEkZb3Z4/8KU hriLq6Rq8E9LEIqB5ZtJrJXvjwnHErDXeTSbtDok/N/K0lAh6jyaJzq0Y8Tp4TDBuHii 4hupJSkNrmwe4GzK5Ew+d0Aup4LTi2p4gSKjn6XzxjYCSCO0DeRK65zJq2yS1XLO9op8 5hGAzaFG+WvAMLiiIIi4rFEu6owzOpK5xe9mCkZBy8xR66SdIKbq0s0DcSH/BHxF8TcB D8Hw== 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=SpUwsYmWJLaXasltbRDgdudnm5JOibAtNFyKmzAElEk=; b=m6u+r2MNsejheVUk55esp3uoKGV2Z99bDobqhgsjWEZlCAkeKbcNkGQ7Ir3yE/ByZ9 bBD7BfjsX/b7xCUjkb6Je/yWl43T4OY0is7trbgobuYaYaVri7B4b4K8AiloRgcyQda8 3bpIhkQ/yVsL51yVLQERTzoOGvVWc3rY7IWMUdCbZ6eOzPGjgGFiYegCnZ4d/qUw6hbj wmHvF39dgJuTt//iqfpyR3TAonBmxHO7tnNZBQtJALZCIIiyBH9rLFwsPatfD6FPXlJR +xs8WS3ybGgfzx6yHxo2sE54pgpy/Yu9exjzaoug9ni9Ny68JJcRIoGLAeVHpGczq5fw 3hKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FUQg8kCL; 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 e9-20020a37ac09000000b006cdee02b54bsi2475392qkm.65.2022.10.25.16.51.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Oct 2022 16:51:08 -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=FUQg8kCL; 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 1onTgT-0005CR-Ph; Tue, 25 Oct 2022 19:50:13 -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 1onTgS-0004zr-7s for qemu-devel@nongnu.org; Tue, 25 Oct 2022 19:50:12 -0400 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onTgQ-0002xf-8c for qemu-devel@nongnu.org; Tue, 25 Oct 2022 19:50:11 -0400 Received: by mail-pj1-x102f.google.com with SMTP id d13-20020a17090a3b0d00b00213519dfe4aso552419pjc.2 for ; Tue, 25 Oct 2022 16:50:08 -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=SpUwsYmWJLaXasltbRDgdudnm5JOibAtNFyKmzAElEk=; b=FUQg8kCLk5uomG4HWy+894RlOzUJdycz+T4ih5OYUZ466781e5/tzP0t9gsVGAQYgb siVYell8RYnRB17oXxvNYzA0s0AMQwd/HXQ5GJvusGVaHC50S7uvZSMYWlr9COFTiL1c NkKNONUL+GpUeqssnr0mM5yHxxcPmlZx7xkp7JkM0yesauG+JXxs4ybzbzUAXu9NCE8U hpSk6zwJx0Ll/eDOfK3EfvkONubXRiza6JZsg1VTZ0swnHpNJZV0mdip6c4QFGSlhxeC 5nYVa3IZZaXe8dHuIM9ofY31JR3WR1SvMUE1gf3iJkxYp6rry3SkjZwi7iziuBjPszMQ fbhA== 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=SpUwsYmWJLaXasltbRDgdudnm5JOibAtNFyKmzAElEk=; b=PscDoO7Ufj6tPFs8Nyobx5gyfHH8VZfuv3XqfVp0ISje76lnYdIWYkfyBXLMW1XtWr 9kDBfpITJpDAlxC5XQ1cfOJ+p2bCIII9c8CW285s+S+LxqH4XgQXV8OxQ+qLmuBEPbAf MdWCqRUvTX4VbaL0F8zCPTV38A6Fea8SI1vVGzTsgv3lUS62dwfSha3WANdZlMmBZklY Gnh9ygsVflPQfOCKJhYtPcXJK1cb4Cakm2DWQ7O/p6yQRWdIGYSeq7LWtut793cP5Vby esE+oxtTNPSF+dsF2tPNhNbDWQnuR9nysASz24TyoYliu3HewpSxBLDLX/5tG2mtpXxc hywQ== X-Gm-Message-State: ACrzQf17K5lh0YEDUFvLyIavvUZfqTeF2ESjE3RXNzvuuo4RBkH2Bb1m hUX44naMh+ITEDYPivGnw6YXOQ== X-Received: by 2002:a17:90b:3847:b0:20d:c41f:de7a with SMTP id nl7-20020a17090b384700b0020dc41fde7amr916674pjb.85.1666741807736; Tue, 25 Oct 2022 16:50:07 -0700 (PDT) Received: from [172.31.50.139] ([103.100.225.182]) by smtp.gmail.com with ESMTPSA id u1-20020a632341000000b0043a09d5c32bsm1776785pgm.74.2022.10.25.16.50.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Oct 2022 16:50:07 -0700 (PDT) Message-ID: <548c9d6e-16d2-1a61-a1ba-ee4aded712a7@linaro.org> Date: Wed, 26 Oct 2022 09:50:01 +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] target/arm: honor HCR_E2H for AT S1E2R and AT S1E2W address translation Content-Language: en-US To: Peter Maydell , Ake Koomsin Cc: qemu-devel@nongnu.org, "open list:ARM TCG CPUs" References: <20221017093003.547009-1-ake@igel.co.jp> From: Richard Henderson In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102f.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, SPF_PASS=-0.001 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: Z9U0eakHpi1B On 10/25/22 22:25, Peter Maydell wrote: > In the pseudocode, E2H is handled by changing the behaviour not > just of the S1E2 ops, but also of the S1E1 ops. If E2H is set: > * the S1E2 ops use the EL2&0 regime, but continue to ignore > PSTATE.PAN > * the S1E1 ops also use the EL2&0 regime, with the S1E1RP and > S1E1WP ops looking at PSTATE.PAN and the others not > > Richard -- do we want to just do the same thing, or do > our MMUIdx uses differ from the architectural translation > regimes in a way that means we need to do something else? We want to do the same thing. The *_PAN MMUIdx are intended to be exactly like the architecture, when PAN is enabled and not ignored. r~