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 lists.gnu.org (lists.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 775B4CCD199 for ; Thu, 16 Oct 2025 15:08:39 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1v9Paj-00007e-A5; Thu, 16 Oct 2025 11:08:33 -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 1v9Paa-000055-NC for qemu-riscv@nongnu.org; Thu, 16 Oct 2025 11:08:26 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1v9PaY-0001g8-5b for qemu-riscv@nongnu.org; Thu, 16 Oct 2025 11:08:24 -0400 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4710665e7deso4320705e9.1 for ; Thu, 16 Oct 2025 08:08:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1760627298; x=1761232098; 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=Pz8Uk6XRi7NLPJCE3ivBH5VhQAk+WZCgHBRQPgQKvt4=; b=Ktmc12bSQQeMUCVu0OhkFgMsso0qujB/Be/c9bZRUyw/I4+ePp1ffS0ja5+baCHUD7 iZfQ7SaJX6GRzYCip7LLSXDmPv+TF+Y2IfODaw9Kil714WWTPtusSaLLdd4VPTISoKoZ XHozXJf2KElMin2Jm6FYPnMsyzjXwAzfKjRujtRQNm0f0+9W3xtfS9wPMgvdq2s4/38V 3OlOV0mkNQGsoza3SnlkKLbE59Z/Ml6JxtzRMKay1AhsAuEgZoi1mO4npcvlsOLWtx3B 7w9DI2orWzgy+zCYGNgVFCnXtctm57FqutTdqxJDIa6QK6Wy37cd2k45dyKwGfTg6q3u vTaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760627298; x=1761232098; 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=Pz8Uk6XRi7NLPJCE3ivBH5VhQAk+WZCgHBRQPgQKvt4=; b=YOI1Jhco8/CMt7+fnXtdTyddaaqHxoktOm0xioQoGgSf0M7V94OBSDRtv8meXzJ+tG feWGrlzTc0+M53lZIpmoRAktHdDFtXCMnuZ7EZnuFaeEz0JZNAKQhmAniptg1xXEUxfY p2eEzJIFFXkeDTn9vgdsXBan6UTI55eVBpEP55i/xttEgvHGYrEXdWheHBf7iiXC46bH 8x/ERTfiYaFfF3m7tkRUOfpOwLZxtDzccSlnJGv43j8V3pXGJmMRTolfIt9JUtiR9qdU vQcaAmFl/VTVoO6OyBxhxec8WFLVh9a4b0mc7ZAE6Wy9P/5KFZsuGiagagVsczyO7WqJ v7bg== X-Forwarded-Encrypted: i=1; AJvYcCX6pcR+N+VQkgmSsQSQYOVRefbhRF+r8A+pRJWQe3732oQrAQht5Do80A2RoAV7ZnSXaw2PUbx0cMl5@nongnu.org X-Gm-Message-State: AOJu0Yx3vqrYY4k0l0dCTatlKriFeZmmjp0NRH8WDAVENbgbt9M/747F gz24YOt0sEg8pdI9FzjK7y49aA+Y50r1b0sXA2WKmn0EHv3LMTH8jaUeN9on7h2HQhw= X-Gm-Gg: ASbGncsxtNzdPG2l3nspbEDXkjIYA770JOsyyDoH18vJSewPQgMdzTFIfYxTqyI6iYI xJH7XyPTPXRKNejw5myhulqR6ozDG+krOywIQe9OYtdLYU9Lwo8w1Rnab7Ue0rPqR/JEaKnL4RR qjy3XYPR+unqoo+KP/OxHZc9+zgRdEScnaistjsHERgScz8lkbUw1teIdOzWjCL7Dxgz7JUNVRk KNpRaRWWStK9syEX/oa/qVVj0jhqVMBOwCwPiw1h5XPBivizzaoZyo9ZfJwbH+W/Qv4JREpIHRz uEU3eLlsw1v6zYv893BC5O+AS48hPnNi1xV0eJSv2shK8Rfb2s7gnIcmHPs7aLi6T2RPzIfWj2+ 6tkqpKvJQ9NpmUO6vJv5lflEYaHF9A47z10IfMvFnP6CvtJ2y9CUHoR362cKmd0270lkc+kmibf 5q4zSLGL+J01ANZz5XdA6sXdz1EjY2bZHGlTN1g44z4ItfGtYNubiuqA== X-Google-Smtp-Source: AGHT+IHHSjTDlkZty4YOcNOkHrfnuYxPfC1idfE3C6QAi1RUQm0K1B4dBAMeGCVGKB5EJheuveZfFg== X-Received: by 2002:a05:600c:8b6d:b0:471:3b5:aeac with SMTP id 5b1f17b1804b1-4711789eb59mr2643625e9.15.1760627297655; Thu, 16 Oct 2025 08:08:17 -0700 (PDT) Received: from [192.168.69.221] (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-426ce5e8207sm34424193f8f.47.2025.10.16.08.08.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Oct 2025 08:08:17 -0700 (PDT) Message-ID: Date: Thu, 16 Oct 2025 17:08:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/6] target: Remove remnant legacy cpu_physical_memory_*() calls Content-Language: en-US To: qemu-devel@nongnu.org Cc: Alistair Francis , qemu-riscv@nongnu.org, Max Filippov , Liu Zhiwei , Weiwei Li , Zhao Liu , Paolo Bonzini , Artyom Tarasenko , Daniel Henrique Barboza , Palmer Dabbelt , Mark Cave-Ayland References: <20251002145742.75624-1-philmd@linaro.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: <20251002145742.75624-1-philmd@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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-riscv@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-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org On 2/10/25 16:57, Philippe Mathieu-Daudé wrote: > The cpu_physical_memory API is legacy (see commit b7ecba0f6f6): > > ``cpu_physical_memory_*`` > ~~~~~~~~~~~~~~~~~~~~~~~~~ > > These are convenience functions which are identical to > ``address_space_*`` but operate specifically on the system address space, > always pass a ``MEMTXATTRS_UNSPECIFIED`` set of memory attributes and > ignore whether the memory transaction succeeded or failed. > For new code they are better avoided: > ... > > After converting the target/s390x [*], this series convert the > remaining targets. > > Based-on: <20251001175448.18933-1-philmd@linaro.org> > > [*] https://lore.kernel.org/qemu-devel/20251002091132.65703-1-philmd@linaro.org/ > > Philippe Mathieu-Daudé (6): > target/i386/monitor: Propagate CPU address space to 'info mem' > handlers > target/i386/monitor: Replace legacy cpu_physical_memory_read() calls > target/riscv/kvm: Replace legacy cpu_physical_memory_read/write() > calls > target/riscv/monitor: Replace legacy cpu_physical_memory_read() call > target/xtensa: Replace legacy cpu_physical_memory_[un]map() calls > target/sparc: Reduce inclusions of 'exec/cpu-common.h' Series queued, thanks.