Message ID | 20250121142341.17001-5-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:fb47:0:b0:385:e875:8a9e with SMTP id c7csp226068wrs; Tue, 21 Jan 2025 06:34:53 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXnIkJC6ykhRznEu/Ms9iGGIzgUMVLlrYNFjgBVUNnQBnP5cdfVgDy4dmNKZQqFOrI5OvwYdQ==@linaro.org X-Google-Smtp-Source: AGHT+IGYmDn09l+Ek6b8BXiQU4i+f8M5Mtp9BE4F/Wm3U55ZVDf8oqVQUzDjlEhaUJEf5vxGsr1N X-Received: by 2002:a05:620a:29c4:b0:7b6:dd7a:9716 with SMTP id af79cd13be357-7be631e5237mr2551825385a.10.1737470092863; Tue, 21 Jan 2025 06:34:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737470092; cv=none; d=google.com; s=arc-20240605; b=DPH+z+CifMxA08P5YKHKHdkS3gFX4d0Xj4ulz4S6nS/mVqnalLrABr9TS+UBNxiHmI KJuQIBPOhT/3YNCtYAVFMVo8rp1LQ7D2H67Abdywap2ezcppzhd/69ZcD5rWgSWPthR2 TQbywYaQ3PUuDvRZtJOZVKagzSR4ZSsCusADjxfBluFDrY0Uiwi8lNqa1zvEKVeJpKOP nz31WfyXnT1CtVxORfQm9bi7hy0vpni5of/4CSzLFEWm/5Vp2fNBmcJxMSvqiCxIj9Wf lWVZb54kx/ZNnfbtyRlVtAjR/UkX/eLmLX+1pH0XoQcH0MAeQ+ZG5ZSVfZ2CW4B71zum F/cQ== 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=XFAdNtSt1Vac9l1lQj/iEUHKax6ecgV2tBSS3BkOMOM=; fh=T9nLPmYdz8kSl8qI33evWuh/VVTqN+U2Q3T/ETy8raQ=; b=GjwsVSQglPxptT74h/HFt4kPNx8vkfi9e59oHSGOfkQXrP9HTYVXTYsfXV+MeYXq2c KrNfaSUvNVCJ6h+4zglpu6xjX3bqllNEUA8A2XOAwD0VVH36fN8R/Y33DZa+k6O1q8S6 VHCTw/D8bqYQIncWJsnBxhg1doodgl5OvYb8w3MyMlaEBMdfv2GYgiALTLPUnRQ35Fd6 8DNeo+70zMlHcFZmsHmgyiyzc12RQX9NjufvB3/lXHQvfIcFmtGcRBXoPdFsEjtaxFjD +yOnZ6wB9c+KwkKxQ9gHHaO50wVyvLeQ2oarotR5mHmUkXl4O/wQvhWeehYWsYJUAWpv vNbg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N6xlUVlR; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-46e1040a8f2si121442111cf.206.2025.01.21.06.34.52 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Jan 2025 06:34:52 -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=N6xlUVlR; 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 <qemu-devel-bounces@nongnu.org>) 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 <philmd@linaro.org>) 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 <philmd@linaro.org>) 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 <qemu-devel@nongnu.org>; Tue, 21 Jan 2025 06:24:03 -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-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) 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) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, qemu-ppc@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= <philmd@linaro.org> 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: 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=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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
cpus: Restrict CPU has_work() handlers to system emulation
|
expand
|
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); +#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); -#if !defined(CONFIG_USER_ONLY) - /** * cpu_write_elf64_note: * @f: pointer to a function that writes memory to a file
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- include/hw/core/cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)