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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1C51FF99C95 for ; Sat, 18 Apr 2026 22:18:36 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wEDzf-00021T-EG; Sat, 18 Apr 2026 18:18:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wEDzc-00020a-5C for qemu-arm@nongnu.org; Sat, 18 Apr 2026 18:18:24 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wEDza-0000AZ-LN for qemu-arm@nongnu.org; Sat, 18 Apr 2026 18:18:23 -0400 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-488a9033b2cso19461505e9.2 for ; Sat, 18 Apr 2026 15:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1776550700; x=1777155500; darn=nongnu.org; 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=X4TMbocxv1DCai7TObvwSgJK/z7vFCjJ+F2oj9LEats=; b=SaczLxm1NvRkvuXoK+h5PjQ49MPYNsb/5c/mloQTDVB8TnRxgOkM8WbT+yG0jZk6p/ tUy7jClLjOUuJW3azoAzqd4ZryQwJkiPelziHvxxHJDsOmfWkoiAnxKmZiTFjQ5Ult10 NKTMx0iasDHdX3opyFFHFAXLoqRrrFPkxiN7Xw1uhkDtmpV/27RbVL72orWdPDUJ+H0T 2oA8yVGfrPXtao07t3ZM4BW4Jk9VgoKH/SvVyhJhnRI9+TFLXLu/0X/VDw9eE8YUOj21 HKm6nc356IAxZllr1f3lEQciVAYmgv8Zugp1Tm3Jf1n75I+0Prfr6ZZvhOOju891Yhmm bvfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776550700; x=1777155500; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=X4TMbocxv1DCai7TObvwSgJK/z7vFCjJ+F2oj9LEats=; b=EPXLm/iLAA/Rx3gztgtdlgxAwdrE2pQH1QYRPQ3JEu2TWeitNWSwdIwF2NRMYHbHrd ww+PvkCisKzKSYR7GkWox+17W5AqcwkIzUsFHYtWzJ41sgAGyOdWsl0eRFSswQqBL2rY F8ctknKQv08Pt8CMHyMbFA6MD7255nJ+XFF0tY4epDFAASR1o384ljB92V/HhK1bH1iN Kjge/UL+FjqOPUh5/LolJA/fh0gmLutkEqZBe2qhtHgHt7TKNd1KOtWzeZCCl8iFsyE2 OWhcPaYuxTxhzNSwLc3Uegs9BsivYCS2bBRGEjgW4Nqu1WAaJ/oaOQXhZPAskKxgsomz RquA== X-Forwarded-Encrypted: i=1; AFNElJ9QZyr739SI3QipJTVECee6JgBbcG8zQXEa4nzBb87vdJf4g0eoUBUkGvRRoKkQn1615MmGtlpb/Q==@nongnu.org X-Gm-Message-State: AOJu0YxKOLq/I6pNYBiZRaYzK/qnr9WoEkYaHrC8Wlig3KG04yj9Yl7L uTpLSbbdlxB/PyC3j5OJ1yVfFT47/LKQiO+NILHvaabN/eGQpSv1nLiAYzkf+5FdNrA= X-Gm-Gg: AeBDiesQbm4HO3pyHtKwJpl34meUsyJ01f935XyhMnTuUU9LdLIjJq1GWkFGZwn4DaT D1GjO+z3/oPBtSyzaXeaiM2Pe0Cw4ZjrCj0EMdGG8B9ccaQIITR4CWU+58IrAXiO8S9gglA9KAx fjXrlFc6NosciAItZUkP0Ouh8BXpK3O3yVvoPXT6jMcTgL9eUmbPRzpRc8oeJAkjD59du8nS8Ev jw7qlATv9S9s7FNCe6WcPUJaByK1IUF0qms2DHIvqjQ/6gmeprgYgYIC07v5J3UH4xQmcp4lMFx oCUMwKQloNG+AW3HjGFg8HYBABT8pS7Kr4aAtMtLzM+VS27lKX+elBbD46MUXd0juJwjInZKCnL ywvuUVzDyHHLsuzRlXnVEabTL6ALB7rxQ2aC1IAEtUV74k4WkqXYWtGwLCA+fPh7OGilO+2Fhty dN8+afv4f8XAIFqJLgPGPRpcR3rgpBZ9X8HY9vNXuklrg5UWh2EaWSmy6eLjGlxQSjYERNFG0IT /5Y X-Received: by 2002:a05:600c:b90:b0:488:b99b:4177 with SMTP id 5b1f17b1804b1-488fb78ee4emr110541315e9.25.1776550700098; Sat, 18 Apr 2026 15:18:20 -0700 (PDT) Received: from [192.168.69.228] (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488fc1393f5sm149401335e9.9.2026.04.18.15.18.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Apr 2026 15:18:19 -0700 (PDT) Message-ID: <4e66e367-7436-41d9-9297-c7f9edd4478d@linaro.org> Date: Sun, 19 Apr 2026 00:18:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 03/17] target/microblaze: Make get_phys_page_attrs_debug handle non-page-aligned addrs Content-Language: en-US To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, Marcel Apfelbaum , Yanan Wang , Zhao Liu , Paolo Bonzini , Richard Henderson , "Dr. David Alan Gilbert" , =?UTF-8?Q?Alex_Benn=C3=A9e?= , Alexandre Iooss , Mahmoud Mandour , Peter Xu , "Edgar E. Iglesias" , Jiaxun Yang , Nicholas Piggin , Chinmay Rath , Glenn Miles , Palmer Dabbelt , Alistair Francis , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , Chao Liu , Ilya Leoshkevich , David Hildenbrand , Mark Cave-Ayland , Artyom Tarasenko References: <20260417173105.1648172-1-peter.maydell@linaro.org> <20260417173105.1648172-4-peter.maydell@linaro.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: <20260417173105.1648172-4-peter.maydell@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=philmd@linaro.org; helo=mail-wm1-x329.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org On 17/4/26 19:30, Peter Maydell wrote: > Currently our implementations of SysemuCPUOps::get_phys_page_debug > and SysemuCPUOps::get_phys_page_attrs_debug are a mix of "accepts a > non-page-aligned virtual address and returns the corresponding > non-page-aligned physical address" and "only returns a page-aligned > physical address". This is awkward for callsites, which in practice > all want the physical address for an arbitrary virtual address and > have to work around the possibility of getting a page-aligned > address, and it doesn't account for protection being possibly on a > sub-page-sized granularity. We want to standardize on the > implementation having to handle non-page-aligned addresses. > > For microblaze, we just need to remove the explicit rounding down to > the page boundary that we were doing in > mb_cpu_get_phys_page_attrs_debug() when calculating the output > physaddr from the results of the MMU lookup. > > Signed-off-by: Peter Maydell > --- > target/microblaze/helper.c | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) Reviewed-by: Philippe Mathieu-Daudé