From nobody Thu Jan 23 05:41:21 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1737472370; cv=none; d=zohomail.com; s=zohoarc; b=EyarQJ0WGtyCSyaaJhYKWtO0c0FTsMgmblo+DNiSKyukN2tVgxQzWtHEE5Ux3xgzWZh45PLIomTKBEZ+ZDmIkGfVPOCavCYmfN4F4nfyzWfOL9u492c5y1FDebf4WdN3vsN/wdqBsxKpqOEwD1sO4zd1w5uNsybEbrV30q8Lye0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1737472370; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=XFAdNtSt1Vac9l1lQj/iEUHKax6ecgV2tBSS3BkOMOM=; b=AKuGrShuP2aFJpVIY+/BrGv8tc6LymtTDfpOTCawrzvXzK/yqcm7Bq6xansoX+oJf6uv6UB0CFkY1bPehS93h8sM2dw9tRill9gOBYXNZfVumoDbzUCiMmgGaw8MkSYyVqX+HDhDjQ+wV4QuVXbth7U+bV/hLOWkXAC/6UDOhHE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1737472370295361.4764912000684; Tue, 21 Jan 2025 07:12:50 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1taFAp-0000UG-Iu; Tue, 21 Jan 2025 09:24:11 -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 1taFAm-0000Sc-3H for qemu-devel@nongnu.org; Tue, 21 Jan 2025 09:24:08 -0500 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 1taFAi-00031q-Am for qemu-devel@nongnu.org; Tue, 21 Jan 2025 09:24:07 -0500 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-436202dd730so41437325e9.2 for ; Tue, 21 Jan 2025 06:24:03 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43890367b48sm180702695e9.0.2025.01.21.06.24.01 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 21 Jan 2025 06:24:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737469442; x=1738074242; 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=XFAdNtSt1Vac9l1lQj/iEUHKax6ecgV2tBSS3BkOMOM=; b=N6xlUVlRKXXUos8vRWessYSLKiRPyVgDGQHbzJiWtrBb4LBkrhBlXMGryOlk1vUTkF 8ppmQfGS892h44LbQyfIRmjcheQef3tzyUYQOGa4EB6Ds++/7yiZADy/XM89mNzDOVLJ vvnzhjyCRqelph58deXNTWvgdsiFrSjSww1qxHEVXwM+ZAxcy7jka8rw/k9gbGvlXCVJ cFii7ao+Up/9Lz4iica1u8LoAUlLYQid/cHibmTdR8nKj47q9a6MzVD8P8yL45tiB1CM jubUqoPuSx4sAHa2F9kJEA+PXM6rJwJKnLEX0L/Xkz/nT0+D6hS1dBYirZH4l0twNtDG kUvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737469442; x=1738074242; 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=XFAdNtSt1Vac9l1lQj/iEUHKax6ecgV2tBSS3BkOMOM=; b=SF7oyMOWvATYitdSpynT6EGZAlLxGrs9CrZ5NgK8KWYJtBcYVsFFxwzQ8T8zWK/3c6 xKQ9JefDm33/o1EjklcYMGgGmxdQymSnFmdveybJ4ZwwvCo8toVronIdoXcdXZKDP5qc 3gwiPwO8QCKnWMIHzESUqESK8tRUlwe+0MNpD54FMgMJK0Hf0RlbCnQCniMp6FOZnvmW rc6cQuNyBDn9OQjrEZ/DKhK1oAjZd6ol3cTvjNiXeADeRqF4/5YOdsY+qPQw5pFo52VS fC2I/dopMedrGtrF9CSkquUdX3FLJSfz6ijxNJC8T10veJKP8iwevzZ/EFq7VVNOQ+8V /l/g== X-Gm-Message-State: AOJu0YwUyjZetigpcWddMO/hMnp9YSKn0QSByGD27UPEtHoCFA5EFoAL krQBGY+rV9ZBxUz1mEoR/WuhoN1sFRv+h9p/HaISc68LGr0FrKB5ze25mnvPK0wPKIOBG9zoFVB jcOk= X-Gm-Gg: ASbGncsNQEUoL/0qViAGUGQ0nxKse9Dm/T2zSxCu8xBktEQbwvtsfYH96vVUB8pcShy JqqWhTm1Ei7x3+KFcjBgc6Y9Rh8ZnJiPIdNs01rDO/qiTTWzidbhVv0wsIf8u+MfRwQuZdlFBjD VyGbDA6RM2X3XgXokma1lj5WP/DSVktzBEWN7UhZrZyS5f2W8Yfiqi2wssdibi9Xw1FtO+u6JbB gl8pa5aZ8PwETvyq0JNEyT/e3yygTrn2Cvmv88zu747jlFisYdAD//jgBM2RUw7k8L2EPTLm7U8 WOgu5BVU+ilIX/ZwjpZ3PCKL5EAYjlj+hjWMBTKueUVi X-Google-Smtp-Source: AGHT+IF8EkOmZIKsyhJCbT2LadC5Giexa7uQORK2zEjITVG/7BmaMjTO6X83J1cyu1fKyFMtZq8hwA== X-Received: by 2002:a05:600c:34cf:b0:434:fdbc:5ce5 with SMTP id 5b1f17b1804b1-4389145288emr173734005e9.29.1737469442591; Tue, 21 Jan 2025 06:24:02 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, qemu-ppc@nongnu.org, Paolo Bonzini , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 04/28] cpus: Restrict cpu_get_memory_mapping() to system emulation Date: Tue, 21 Jan 2025 15:23:17 +0100 Message-ID: <20250121142341.17001-5-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250121142341.17001-1-philmd@linaro.org> References: <20250121142341.17001-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; 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=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1737472371531019000 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/core/cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index b7367f6d808..2402706c7d9 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -614,6 +614,8 @@ extern bool mttcg_enabled; */ bool cpu_paging_enabled(const CPUState *cpu); =20 +#if !defined(CONFIG_USER_ONLY) + /** * cpu_get_memory_mapping: * @cpu: The CPU whose memory mappings are to be obtained. @@ -625,8 +627,6 @@ bool cpu_paging_enabled(const CPUState *cpu); bool cpu_get_memory_mapping(CPUState *cpu, MemoryMappingList *list, Error **errp); =20 -#if !defined(CONFIG_USER_ONLY) - /** * cpu_write_elf64_note: * @f: pointer to a function that writes memory to a file --=20 2.47.1