From patchwork Thu Nov 14 01:13:08 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: 843116 Delivered-To: patch@linaro.org Received: by 2002:adf:9bcc:0:b0:382:184f:390f with SMTP id e12csp50256wrc; Wed, 13 Nov 2024 17:20:06 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU06tPQ5Fkdz1geblyjhsPwgbpJ7egH+iIe0agCbICl5V87eEBWVGxXOSmfzedY9+Fxduqm1A==@linaro.org X-Google-Smtp-Source: AGHT+IHv2MNLk/PuRAYLhCSgCdflzSARvkWdiR+TU2GZscszcUzITFTTlb1hxbaCM0t8tuo2WTkj X-Received: by 2002:a05:620a:191f:b0:7b1:5070:ca94 with SMTP id af79cd13be357-7b35c0a5bf1mr47879785a.1.1731547206487; Wed, 13 Nov 2024 17:20:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731547206; cv=none; d=google.com; s=arc-20240605; b=kKOFEK3GpeVpgma+orjHVyBhISfMnxdu6sAGeL7T2G+40xwUXTq07AnJ34TFI+u+pD vAqen8/AkIm9herWAphEbnHWMOgyyXeN2GBTEXH8gYYDSXknWG3ygtlrc3dm3aEwsKAD M+8sv86HravYAtwUa435p37zRSjOFvsg7LA4avhPnGun/UdufN1NahtXD+pRMELIYiik 6Q4JEfu+4g8Ley6WaQR8omPtyXKgJr+PGEbLTAyMgck0b0qBLOk8ZrOcBemnXe9q5Y/5 YXDpH8HV1hLb/EkY9zFJcxynzzn0ilo2ehyBPRCm3hSD8NBcK1+UmQrJEz4eptj5CFao 4eLA== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ziBtbUpyHfOZqiArsxZ9RJYwzJ+JBpYBES4OJcXpO28=; fh=/wpxelYgYFm3yOrtXdArwadi5SFPvFFOnobpc9OX4j8=; b=ha0tDJBM10sSKtPzeIjaE2w0GdvgtfQRsvbdg6OxHa5AFKx89Upr4aZRqe1j+HW7NF HXx3ahEuKSwLFiNWWFQ+Cn3fH4iJ0j8qrzuS1fGy9YMXm6Fpx76rPuB3jvlsczsMwDYx Cko+hbC118g5Oq1cE72D5i562qGfBO0fmYbUJb+W9e0E0T3vFh99dnAziR/tHFSTLvXX J3xE0w7A7xx6alXtcAducZTUgXiy26FCqGvSZqYDcPIhD+HS5C1nlDBmU25oLCmvDHc5 IekbaCbwy88U2iDOA1WN43yeKt+xmKjk/dcWa1l+ukRSLSGOpM6Na/8lMLbGIeCm4ps5 D3NA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b9V29geI; 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 af79cd13be357-7b35caad929si1429085a.475.2024.11.13.17.20.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Nov 2024 17:20:06 -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=b9V29geI; 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 1tBOTf-0005AH-11; Wed, 13 Nov 2024 20:16:55 -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 1tBOT8-0002lZ-Qv for qemu-devel@nongnu.org; Wed, 13 Nov 2024 20:16:27 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tBOT5-00033V-Hk for qemu-devel@nongnu.org; Wed, 13 Nov 2024 20:16:22 -0500 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-432d9b8558aso1338715e9.0 for ; Wed, 13 Nov 2024 17:16:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731546976; x=1732151776; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ziBtbUpyHfOZqiArsxZ9RJYwzJ+JBpYBES4OJcXpO28=; b=b9V29geIA63RWvK70AshU6nqkTu5Aao0j9jkH0Anqjh6sXLct2VVw2a6v9twfyywvd aoHLgmBkFK772VmW8Q4mtufQ7ZCnAom42IBTUc6ZpNt6hv39C7gfgt8/j/VltrxsquKK 1cstdhG9/s7CK64RWmieqA7H1hVCoqk0IVZQggvLqpKXS40YNxHzZcajQV+9i1+0vI9/ lcHNU5DI77Bz/7urLYpntH49vXCoHbulev5AcI5pa0vhVPRoZH6Iy5TxhRR+lV4H9AX8 2Y5izbohH6JdJieVj+onA5KRolW5dktWhQnTNllJ9Z3+Nk0oHSA+rxoozGadXrwapS9g 0Oew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731546976; x=1732151776; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ziBtbUpyHfOZqiArsxZ9RJYwzJ+JBpYBES4OJcXpO28=; b=s0am7bK9cIU1FidyVDIKkFmYnx9K3Ezq4tCgbidPFzCyNWYSDb5I77RrdEHjV1T38A bvRnoKv+de9Jwn1mpfLRR0DPjZ+2sZ+LCu1OFiOl4dmOY1DH38h4PqRBQUhij9ig2nTi OQsAFpAHsVZcCsxZr1mb9HVCeB78Zs7pB9lui/V377W3GXNfFlE9dJ1c/clChEkRkZKI 5biuenCKFgHUUSzeM4i5qYkf1B+/70SGoyhX1KuXnOV3LwFku1Rusvfw/qn9Ev98VQWL FfJ8KJ5G97YVQukU9QBMbLdxx5Tmw8LG7SovErVgXnPDiuBr/kR+pyFjJwCdDdfry+C/ Gc5g== X-Forwarded-Encrypted: i=1; AJvYcCUBzwhuFlFhqjwuy4pqEIVM6lBzbagPa9ppaw4mhY89n5VxodQOIRyIX9I15X9O1sgQ9BjshDRPuKoO@nongnu.org X-Gm-Message-State: AOJu0YzG/NdtL5u7nkj77RWIrBbk4sMzOBZU6ZlQ+FiUXewlSz0eFY13 sdby2l3icPIyupqZJpuvWsb29o761RsqqXZqjAsVLtYRf0GSi709C28cn4pFy0o= X-Received: by 2002:a5d:47a8:0:b0:381:f443:21c6 with SMTP id ffacd0b85a97d-38213f80149mr1345659f8f.0.1731546976466; Wed, 13 Nov 2024 17:16:16 -0800 (PST) Received: from localhost.localdomain ([176.187.209.238]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381ed97db25sm19856743f8f.41.2024.11.13.17.16.13 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 13 Nov 2024 17:16:15 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Paolo Bonzini , Richard Henderson , Anton Johansson , qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Thomas Huth , qemu-arm@nongnu.org, Peter Xu , Pierrick Bouvier , qemu-riscv@nongnu.org, David Hildenbrand , Peter Maydell , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-s390x@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 23/24] exec/memory: Move qemu_map_ram_ptr() declaration to 'exec/ram_addr.h' Date: Thu, 14 Nov 2024 02:13:08 +0100 Message-ID: <20241114011310.3615-24-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241114011310.3615-1-philmd@linaro.org> References: <20241114011310.3615-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.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=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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- include/exec/memory.h | 2 +- include/exec/ram_addr.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index 9458e2801d..58faa3eb08 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -28,6 +28,7 @@ #include "qemu/notify.h" #include "qom/object.h" #include "qemu/rcu.h" +#include "exec/ram_addr.h" #define RAM_ADDR_INVALID (~(ram_addr_t)0) @@ -2973,7 +2974,6 @@ MemTxResult flatview_read_continue(FlatView *fv, hwaddr addr, MemTxAttrs attrs, void *buf, hwaddr len, hwaddr addr1, hwaddr l, MemoryRegion *mr); -void *qemu_map_ram_ptr(RAMBlock *ram_block, ram_addr_t addr); /* Internal functions, part of the implementation of address_space_read_cached * and address_space_write_cached. */ diff --git a/include/exec/ram_addr.h b/include/exec/ram_addr.h index e0620ddb03..c4f220ae93 100644 --- a/include/exec/ram_addr.h +++ b/include/exec/ram_addr.h @@ -73,6 +73,7 @@ void qemu_ram_set_migratable(RAMBlock *rb); void qemu_ram_unset_migratable(RAMBlock *rb); bool qemu_ram_is_named_file(RAMBlock *rb); int qemu_ram_get_fd(RAMBlock *rb); +void *qemu_map_ram_ptr(RAMBlock *ram_block, ram_addr_t addr); size_t qemu_ram_pagesize(RAMBlock *block); size_t qemu_ram_pagesize_largest(void);