From patchwork Tue Dec 10 14:01:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 848741 Delivered-To: patch@linaro.org Received: by 2002:adf:ec08:0:b0:385:e875:8a9e with SMTP id x8csp334716wrn; Tue, 10 Dec 2024 06:02:15 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVjPY1VOetbw5fpI+N7DTV1LBf9Aj5f3iZYhiVZrdSIgpR/r5AI1NXAjyQ+fqydg1XbH56CNQ==@linaro.org X-Google-Smtp-Source: AGHT+IH7uT0ovufGDWS2mo7b7ix+Oh+0av72sRDPPzhkUSWWh/e38TeataTpjtHj1EadQD2SVMyT X-Received: by 2002:a5d:6da6:0:b0:385:f16d:48b4 with SMTP id ffacd0b85a97d-386453fbba7mr2909583f8f.40.1733839334744; Tue, 10 Dec 2024 06:02:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733839334; cv=none; d=google.com; s=arc-20240605; b=e6C85lLaI/XBKwff55uVTtQ5IiD7iKcr3taKsPIKKEoMyMhnO6gw9BUjCF2f/++vB0 OnY3RrVxfamqEjCD+KnPIC3faliZPNZBeyu25J2r7IEd4AJD6xCMwp8jTpJhfa9Eps71 kA/mxLGiR6QrMh0j65k8lLZG0GADN+T9ozhoSwfb7pSy0yEXjHvq0S32930vX8vi0Q6T GkjYY3v8bXIjFOtsL0Mjj/NK2Bzm8hpPMsnP5sAkPQWaXzjYMewBYZX8aLixcTfvMNm7 OIuynYVTSuh2YehzbxnOjxqbgf/HuK4FrSQkkivfqH3mjHGvy9iG6vAp7HyvOW2kVr3Q neIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=Datbz+9X6Gzq1er7ALCf4IjQlEIK6u8ufTgOUCXC0FQ=; fh=alZCUczDNtN4yFLy44SM1yTUliPrh8AgZa0GP8izqo4=; b=dTRiPILzSJS0yeAtMbFQRfJJYHTocZwm33iQmf8XZIsHspDASWzAZqz7kupjuYBFNl PdnPYIperKR8YnfJFjfhAw/jGjwhky/KCZzdPLKOgjgmvKvLYKUFPneqYTqXS4oUlMXa UJKKcIeLHnQI5gemNhHkpwn21JeobvbxoeP4WW+h3RlZiWtjQknDTSz/NswhNjIQNaFO Te9BUQyha6dnU3Cw3kEKj18P9pQjYsH0vQkHMvX78Bws4Oyqte9FV4S8HP4sHhHKOjtL JxFHbJRbKt0hhEnDjSSLD26PZO0c+Kztju5JA+8kekg+TQsYYsE4VlzCiwrYZXIc409/ H/hw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kyflqbPb; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ffacd0b85a97d-3861ecf3ffdsi6075460f8f.194.2024.12.10.06.02.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Dec 2024 06:02:13 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=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=kyflqbPb; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tL0nz-0007B8-5F; Tue, 10 Dec 2024 09:01:39 -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 1tL0nh-0007AH-Vo for qemu-devel@nongnu.org; Tue, 10 Dec 2024 09:01:26 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tL0ng-00070o-4p for qemu-devel@nongnu.org; Tue, 10 Dec 2024 09:01:21 -0500 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-434acf1f9abso53996535e9.2 for ; Tue, 10 Dec 2024 06:01:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733839277; x=1734444077; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Datbz+9X6Gzq1er7ALCf4IjQlEIK6u8ufTgOUCXC0FQ=; b=kyflqbPbAg+Xz/Hp4kFkRyRp/x78pOgD+VpPC/ZqbA3Bg2GIwNW7QoKz9DmBekWVAC EcYf8wNtu6OPlPZGFa3qYFzSCAT2JX0QQz6piBkngG55R7/qxGA05AwozCcJr2OQFbND FIMkcgWHr6KIH0AxtP218J0V+ElOC+vl5cqfZozKluf4mfRls1wLIzQ+y3TbYm+vhwuM 2r7P20RM3DLqJaOFXM76NTMIGTehHfE3Nh++mHqMcVfVB2jck/j45QndBDwSCwKHx6tf LqexcWWB6gO6/f7YoyPneg3+Bu4VSQWeV9FPXEiQ6IvO8jh/MrLomJuuNcahW4ohOvya 9Epg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733839277; x=1734444077; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Datbz+9X6Gzq1er7ALCf4IjQlEIK6u8ufTgOUCXC0FQ=; b=M/JxjohEZWluEkCDv6BL+mSbP+6GPKslieHXY+pr71pdxIEfX2bUTn+S01n9WMFfGd hgpwFFJE8tbz9+BeMdPifTdrrqYjEkAN2D8qKqnQnXY6N75ya4x9t0l3ViYBNezDC5FD uiI+7dXp3QnPsH6b4QErNnmYUt8uF6StJLKdTRmzhIKCEpmjGiHxeItRBZpwVS2HqF1m nLxP91+MWPyvPzigchC2YyCKezvQyh0mVGG5nNG4odv7JEUiJH4Bcn8PZ2LYOJA5mxK+ kkeqZsnRqL4fBkXrqxe1MxDIeg00BstXm0BnzRgeJRryQKM/ehtvzbAVTxf0Bp3wlS1B 33mA== X-Gm-Message-State: AOJu0Yzp0GJjbZeff/snwXt6A9HUNs/lrKKO+z0Thxh+cwTgSn6XKcci 3IBygrRu/xA7zxonML8UO7zVHpUIzVf9AqYCv7j/mhJgfsEpU2QIVYXmPj7hoB3slzu06n+dIuZ NVBY= X-Gm-Gg: ASbGncsBQ+9/1UxgunkI9VR6yWlju5TV+anD3JQMmBCPGlOTy1fmBpVdBuHEm1GirRL x9zKqXOH/brXiiVV4sCzdmwtxbJVvxppIUGXX0NJ4sDC166H75/h20Bvnx1gwaUk+aSYuJbKhdh bHnoNCHIi03GO8a73SKZv9zm7FlPw0afdjqQc5h8G55wjGIQ4gXV8FqJegk4ZMzoEmVSKDNsOJx pGPelgbNLZJqlPeEpfBIlTgZ/+QUC6OXJTPUd9+09HxsdDcITVdr+a1rorR6I5cfIeCUNnAeebP sLh1ot4er1KzAVQJX5rXTcT4 X-Received: by 2002:a05:600c:4f03:b0:430:5887:c238 with SMTP id 5b1f17b1804b1-434fff3a2fbmr39337315e9.11.1733839277326; Tue, 10 Dec 2024 06:01:17 -0800 (PST) Received: from localhost.localdomain (223.132.22.93.rev.sfr.net. [93.22.132.223]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-435d4cd4a78sm17931215e9.28.2024.12.10.06.01.15 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 10 Dec 2024 06:01:16 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= Subject: [PATCH v2 0/3] bulk: Remove legacy cpu_physical_memory_rw() API Date: Tue, 10 Dec 2024 15:01:09 +0100 Message-ID: <20241210140112.43313-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.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-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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org cpu_physical_memory_rw() API is documented as legacy since 2017 (commit b7ecba0f6f6). Replace it by a more recent API. Noticed while discussing with Peter: https://lore.kernel.org/qemu-devel/e979b3ba-e701-4ac6-962a-19e4598ba947@linaro.org Philippe Mathieu-Daudé (3): dump/dump: Include missing 'exec/memory.h' header bulk: Replace legacy cpu_physical_memory_rw() API system: Remove mentions of cpu_physical_memory_rw() API docs/devel/loads-stores.rst | 23 ------- scripts/coccinelle/exec_rw_const.cocci | 29 --------- hw/xtensa/bootparam.h | 7 +- include/exec/cpu-common.h | 12 ---- accel/kvm/kvm-all.c | 5 +- dump/dump.c | 5 +- gdbstub/system.c | 7 +- hw/acpi/ghes.c | 19 ++++-- hw/acpi/nvdimm.c | 21 ++++-- hw/acpi/vmgenid.c | 6 +- hw/arm/omap1.c | 18 ++++-- hw/audio/marvell_88w8618.c | 4 +- hw/char/riscv_htif.c | 8 ++- hw/display/omap_lcdc.c | 13 ++-- hw/dma/i8257.c | 17 +++-- hw/dma/omap_dma.c | 15 +++-- hw/dma/rc4030.c | 3 +- hw/dma/sifive_pdma.c | 13 ++-- hw/gpio/zaurus.c | 5 +- hw/i386/kvm/clock.c | 4 +- hw/i386/vapic.c | 42 +++++++----- hw/intc/apic.c | 6 +- hw/m68k/next-cube.c | 4 +- hw/microblaze/boot.c | 4 +- hw/net/fsl_etsec/rings.c | 24 ++++--- hw/net/mcf_fec.c | 16 +++-- hw/net/opencores_eth.c | 15 +++-- hw/net/xgmac.c | 13 ++-- hw/ppc/e500.c | 4 +- hw/ppc/pegasos2.c | 6 +- hw/ppc/pnv.c | 4 +- hw/ppc/ppc405_boards.c | 5 +- hw/ppc/spapr.c | 4 +- hw/ppc/spapr_drc.c | 7 +- hw/ppc/spapr_events.c | 21 +++--- hw/ppc/spapr_hcall.c | 15 +++-- hw/ppc/spapr_rtas.c | 7 +- hw/ppc/spapr_tpm_proxy.c | 7 +- hw/ppc/virtex_ml507.c | 4 +- hw/s390x/css.c | 6 +- hw/s390x/ipl.c | 8 ++- hw/s390x/sclp.c | 11 ++-- hw/scsi/vmw_pvscsi.c | 16 +++-- hw/xen/xen-hvm-common.c | 10 ++- hw/xen/xen_pt_graphics.c | 4 +- hw/xtensa/xtfpga.c | 7 +- system/cpus.c | 4 +- system/physmem.c | 7 -- target/i386/kvm/xen-emu.c | 3 +- target/i386/monitor.c | 90 ++++++++++++++++++-------- target/i386/nvmm/nvmm-all.c | 3 +- target/i386/whpx/whpx-all.c | 5 +- target/riscv/kvm/kvm-cpu.c | 6 +- target/riscv/monitor.c | 4 +- target/s390x/diag.c | 13 +++- target/s390x/helper.c | 5 +- target/s390x/mmu_helper.c | 6 +- 57 files changed, 391 insertions(+), 259 deletions(-)