From patchwork Fri Mar 14 17:31:29 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 873466 Delivered-To: patch@linaro.org Received: by 2002:a5d:4308:0:b0:38f:210b:807b with SMTP id h8csp837225wrq; Fri, 14 Mar 2025 10:36:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVuU255FNPT8nkN1TbcFm1OeG9sJ1DvPkg9BPqkexWn5YfQkdtSLC/cLumhp/JTI7ZcMfQmww==@linaro.org X-Google-Smtp-Source: AGHT+IHUMicTPpaafYbZ86YY9a+FlOq549VQhn/tEthKstUoscWpeZ0ZsC1Jbd7RVhQT0P+cZAXH X-Received: by 2002:a05:620a:2992:b0:7c5:5d9b:b617 with SMTP id af79cd13be357-7c57c7d6d60mr465681085a.23.1741973782878; Fri, 14 Mar 2025 10:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1741973782; cv=none; d=google.com; s=arc-20240605; b=PnGFRzH6vGYjKLgcM2j5OEAuKf3O8xdUr6CK01bhIQT9ssCTrPhLoamceZAsfLLr9m I8EF1RAz86FAihEoK8X3qAnMI4aqVDVuc7N/JggFUTC/hTtw3KOjAnuxGfUPKvnOldYa zJldZ/tL/68GtHxJm61ougyElWhzg39FbZmmDLPWlc0Zn2RcZxr1bR1q8q8Kkxi14oX/ B/MaoccAslwGQIKpmUfMtKu5OlINBhTsacQB79zmtXUxtuGTWSKdK45mxpPSaR68FVsU mpl3NlCPY3NKaO6LP4QQ+s/XKQhpqC+ZsuFUMlrSvCC91xGB94F7VuqQ+c9Gsd2mGiOL H9ug== 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=bYYGOsy+zcSjxVOnigwMonGaAhWbZB7W76ZyOX5Jlgc=; fh=1okYn/R2grs/obLcH/MB7/qs9S9nHlecEB/w1J23kko=; b=XnpmrntywEL84IoivhRpPZqvaIR3+oixXeLco/GkDFBBDiY5aPkyeyMeZdXPNczqSY 1ESwX7qs6TtQkm3FO0FpKrk67mafndv7jaDTDg1OL+fYE5ZwJAzIcrkt6RtxGJg6g0Gz PKr7ZKLntmrOfcR9PaNPPW6WuxHrawt1AGs7ewuTda0STpk3CMPOKHBw7uTxTZfsX/x6 bhA7XQnMM82eGEy0UOsZyJpQTJkvsv2e4Ibp34P9XhpehkmI8Vr2WR9W/PsUI+O/8aYD /95HcMXTyqmUnTRwJRmD/j6reOWYhzOWrsXv2DY9+RRG1a6HzGXEFZvWkMDdl6Yalmgn 1wxg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H9duQxFv; 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-7c573d340a2si407756485a.634.2025.03.14.10.36.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Mar 2025 10:36:22 -0700 (PDT) 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=H9duQxFv; 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 1tt8tm-0005wW-OT; Fri, 14 Mar 2025 13:32:43 -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 1tt8t6-0005as-Fk for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:01 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tt8t0-0008F0-Mf for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:31:59 -0400 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-22355618fd9so48789715ad.3 for ; Fri, 14 Mar 2025 10:31:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741973513; x=1742578313; 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=bYYGOsy+zcSjxVOnigwMonGaAhWbZB7W76ZyOX5Jlgc=; b=H9duQxFvfjDJ/5RWK7zM0lYMQNiNW83G69CdomQndShsG0t/7YILuSCNLqX2ihNS/D i+B6XoQzVfYWuwsauMEUySfWjVi1N4w+JhsXwe/vPgkkjVOGKkk3bHnYW9NbwQzDd/WL BSGO47p2tQV2Zi9v0WOTK+B3XwknoHEsl2G1BKwEymS5tGs/2zHGaFGBzJAA4YPamiyV P5J14SyIpc3YZ2UKY2Lu86TH9yVmHCwzgBPWMsTdp8qu847nuevOTU98prGZ+SO5EgNC /4Fa49yUr2Xc/68pP6D/Q2tXMT80Pfzs8TI8hDv+nd1O47rMk3JrgtD9kfsTqICx8tyL FUOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741973513; x=1742578313; 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=bYYGOsy+zcSjxVOnigwMonGaAhWbZB7W76ZyOX5Jlgc=; b=WiATb9ViDEHCL2eOfd4c6K6V+sgKSrwy0+gjKSbZZ2nhciW0KO4koiDhCMlf+UbLum yV47H1LF8RQjtE8ld1EtMbN8iZTqal6ddz7Zpe12EMUGgt5yz4scdLw96pTGaVR3OB6/ RpP0bWHrQP0oYftHztSfIKloKNuuKfdohQmoHqCmvkpbhk0LMVJqpevrn5fbw1PM4XZp vbTFEvL5hhuW26ULQHuW+VSMSDVYgZ4hndgfdwJpy7cUQ4nPPX9UyrH5/1zHKOTX168m VJsjMsMq7Gng/vDHHMSJ2Snmhk9Kt8nOYx5T+8HFugJnvR6l2dEXzJq15VUSG1qo2T9A /c5g== X-Gm-Message-State: AOJu0Yz8j9xEhNUz0bPz7yfNL5sLUOu71fhSK7wcEhoDvPsVwPEubccZ z3JgV07gAIGyYHL+MbU6qAGZQAmRuteboxSQxYNP+2X5yNajJrvOgCSUQlt2ChKeQUoXDByxBkT JAF4= X-Gm-Gg: ASbGncu7IbygaVXxiCWeGzw987XONgc8yF093/5EQwl1juxgDif0qpRwfSJUE9F841r 8OJ7uA19rD+DAiJywQUuOkfx9GLEEGHV0bZK1vIAQmzam5MPPgtMibMfdk/PM9QFDVRLZR7B1OL Lpo9NHAArecb/fP3T+CZgZS7YTBMRflAOxtXZGTKsvk8QPBeBoWgQ0PPLFqECUhp8SH03ObJkDH qL2CVN86fn9h++qAZFFIMpgy8S8N50Cy8UW13yHXjAdedhS4D09kpM9/n0VywaZWu+4G+QdwsMd KPwUCtoNO7eEENAwQW8RR0xITcD4VtMB0HbCJjOWjlPn X-Received: by 2002:a05:6a21:7308:b0:1f5:64fd:68eb with SMTP id adf61e73a8af0-1f5c1137439mr5964561637.7.1741973513079; Fri, 14 Mar 2025 10:31:53 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-af56e9cd03bsm2990529a12.8.2025.03.14.10.31.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 10:31:52 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Yoshinori Sato , Paul Durrant , Peter Xu , alex.bennee@linaro.org, Harsh Prateek Bora , David Hildenbrand , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= , Richard Henderson , "Edgar E. Iglesias" , Liu Zhiwei , Nicholas Piggin , Daniel Henrique Barboza , qemu-riscv@nongnu.org, manos.pitsidianakis@linaro.org, Palmer Dabbelt , Anthony PERARD , kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini , Paolo Bonzini , Weiwei Li , Pierrick Bouvier Subject: [PATCH v5 07/17] exec/exec-all: remove dependency on cpu.h Date: Fri, 14 Mar 2025 10:31:29 -0700 Message-Id: <20250314173139.2122904-8-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> References: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x630.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 Previous commit changed files relying transitively on it. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- include/exec/exec-all.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index dd5c40f2233..19b0eda44a7 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -20,7 +20,6 @@ #ifndef EXEC_ALL_H #define EXEC_ALL_H -#include "cpu.h" #if defined(CONFIG_USER_ONLY) #include "exec/cpu_ldst.h" #endif From patchwork Fri Mar 14 17:31:30 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 873460 Delivered-To: patch@linaro.org Received: by 2002:a5d:4308:0:b0:38f:210b:807b with SMTP id h8csp835741wrq; Fri, 14 Mar 2025 10:33:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV2vsHjmWbqVTDR+U0w6gIBTLaDBbVL+TBvla4F105ryl2pGU35f3SNFppNHiRIBnY1XNgPrA==@linaro.org X-Google-Smtp-Source: AGHT+IFgXX7pPRHmdd3G6puDf6lLVCqN1uecWC1ZetOoEowasdA9mDg329MQo1eyQxXERYBEtQrc X-Received: by 2002:a05:622a:2c2:b0:475:1773:275e with SMTP id d75a77b69052e-476c928fa64mr44814761cf.13.1741973582536; Fri, 14 Mar 2025 10:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1741973582; cv=none; d=google.com; s=arc-20240605; b=aNdljKZGEBNUiZhAmwuIG1yeGZkoIzyMwFsQAz/Np3ISUTd3hn+3t9b1+xxyVRst+M I9dxN+p4VBZ6I4Qc5eBfawaTWjFYB0qImoATGi+JzahPpRY40X7Yr7s2BFMgtqr+A8BR gN1mRRdmnOf/mO+4nPPrrgu4FxidvJ7YGRjAMpIDhVQM1/9HEq3E2Qxdhd+sbM68+LlU b/+/IbVzy4kzwXCa6fOLsaPjBmec/Ww5vx4t2+J8m6ITImSG5FkHARZFZJIARTFxUYk5 UF+Zt8S0kgfSBxiHYq6+6lte2DlqfHf2BGI8lhngoZYnNl2PK6NHy0qeANpZAszjnVqQ SttQ== 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=Rp8GQC6vA5rTxSSazblnkjuLZPjrJAYUOFg9uGM493s=; fh=1okYn/R2grs/obLcH/MB7/qs9S9nHlecEB/w1J23kko=; b=PazW8ligc29TbAWF1xOzTudxD4rm3sou2avPSmM0tvVNCbe5/fK+zXiYhByO/mRdlb nLR2AA76x7Q2oXMZLi1+eQ9fklojZC5D9nN8jPExSWMA/20OW7TdjbNib8k47G/IiG2O VR0nO39si+WEDzEqZau4eon96CrtOYdj/S6dQTdcsC1AfoSq5NMatEZusAhXvFkp3tFV 9ZXNJDHYfl9eCpZVyAAWR9Ythi6uwuXnX4kgzxS7PxXWYTXlgkJUJosVCm/Zvn+1d4Oe xhx+iDnSWsQ8VxxKA5DPh9GlvkSy2GT2uqOxZ8EIjMjEfn6m/1Xi/FZv/CZXnvBK9BHY p5Dg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rcCAWRVO; 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 d75a77b69052e-476bb8812b6si44501291cf.636.2025.03.14.10.33.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Mar 2025 10:33:02 -0700 (PDT) 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=rcCAWRVO; 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 1tt8tb-0005qj-MR; Fri, 14 Mar 2025 13:32:31 -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 1tt8t6-0005av-Pz for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:01 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tt8t2-0008FU-02 for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:00 -0400 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-225d66a4839so27410665ad.1 for ; Fri, 14 Mar 2025 10:31:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741973514; x=1742578314; 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=Rp8GQC6vA5rTxSSazblnkjuLZPjrJAYUOFg9uGM493s=; b=rcCAWRVOqdONLLa9THoKi/dZLe6yF2jipUj1xzob7exTSojrLaz6WcO+Y1MEcu9noP ETbQQ/bWjuUN4g5RCJjiSJOjDXNeGGm98n0Wzo5BxoF9W+rPQ3LjzI8VV/sF70+Vhy3z X4M27tmJUv5NIZjI6i/l+iaTH5M74wCQ9N299ee6DeDUTKjq6/pzdGnCKKR8X96VcuC6 gAtMlulzFjpR8GghTP7o3J5wVUmU8ZUtu+JRHnHXvHNvEypPNnvlhkxl5pMY+GsPXMUE r0yY8nlPvWzGmqyGhWws+oHBfebZJ0PxoTk4B1trM2+irJsY6vRFVmxc0t+sYdFI8Cgm pVZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741973514; x=1742578314; 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=Rp8GQC6vA5rTxSSazblnkjuLZPjrJAYUOFg9uGM493s=; b=VDIElCEG9wkgEToTelfdzedDNY06Yn3e7+NhnXeOimoLYOTEtCEcX4yFuwrkCZOheW d0NhOWpxKeiSWb5WL5S7n46TV1rwMcJ+hxfP3yVSMcARcLAkVOXHEP2YNsH0Fx5O6mKh wwq7g8/Vn0y9qyFX6qXZwuepzVROy5TiafK0FwXV07qUcdpmiiqMJvwPOHBi+pd3E39A tJsRoCDOw5MEHsijY8zDa1ZTSl+S0WxxpLDAnPRZ0hvUn0zsWb3CR8HgUUphGGC5sTZw bLPxm0JBHR9bCkp9SLj33AenMCsOQLZOA+Cy9QbkR84OCzwxA83w/5f0ouDi+Gcx+gE7 Tvmw== X-Gm-Message-State: AOJu0Yz4dIGhgzDHPtTe+VPLnHJtbAEyjaL77Xf1wng/1mELr0etndpV Lyly0QqsKxKG+sYUY3vYEcrQHaTwD7Nlb6L6oeTLLLuD9smHeS6P/wELPem/p28hbIY5mjx87G/ 5hCU= X-Gm-Gg: ASbGncvRKcS3RiQtavdLCsuGeq/ClUnLfvpdWxmKb1wxekQBTY3tF8f4PCYOkVR2hbS jX0cg2jgcrTXGj+50ozUi8HAKU4xAtfwZrUPNg7qVazVRBRxeBFf3ZHbwmBl6oMjbyjwBOewwmz 5zNlWnJN8XnhSRILUVvjhsgaurKyIEefCBAgn1+MXiMUhU+1YFRtPZFT53OjHeObNFFHbjY7ylr 0t/S6d1IwkNArrAyLoIq6wD7tvETxku5Gh/IbiJp/EptIPNT/SiGhf51onMVi/+tQwfp88xz945 odJCpU6inbZfx+MQ+UFXbUXgy6wKCj70HAhv6arfq6V3 X-Received: by 2002:a05:6a20:728d:b0:1f5:9cdc:54bb with SMTP id adf61e73a8af0-1f5b07bb133mr8380424637.11.1741973514284; Fri, 14 Mar 2025 10:31:54 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-af56e9cd03bsm2990529a12.8.2025.03.14.10.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 10:31:53 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Yoshinori Sato , Paul Durrant , Peter Xu , alex.bennee@linaro.org, Harsh Prateek Bora , David Hildenbrand , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= , Richard Henderson , "Edgar E. Iglesias" , Liu Zhiwei , Nicholas Piggin , Daniel Henrique Barboza , qemu-riscv@nongnu.org, manos.pitsidianakis@linaro.org, Palmer Dabbelt , Anthony PERARD , kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini , Paolo Bonzini , Weiwei Li , Pierrick Bouvier Subject: [PATCH v5 08/17] exec/memory-internal: remove dependency on cpu.h Date: Fri, 14 Mar 2025 10:31:30 -0700 Message-Id: <20250314173139.2122904-9-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> References: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62a.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 Needed so compilation units including it can be common. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- include/exec/memory-internal.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/exec/memory-internal.h b/include/exec/memory-internal.h index 100c1237ac2..b729f3b25ad 100644 --- a/include/exec/memory-internal.h +++ b/include/exec/memory-internal.h @@ -20,8 +20,6 @@ #ifndef MEMORY_INTERNAL_H #define MEMORY_INTERNAL_H -#include "cpu.h" - #ifndef CONFIG_USER_ONLY static inline AddressSpaceDispatch *flatview_to_dispatch(FlatView *fv) { From patchwork Fri Mar 14 17:31:31 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 873465 Delivered-To: patch@linaro.org Received: by 2002:a5d:4308:0:b0:38f:210b:807b with SMTP id h8csp837215wrq; Fri, 14 Mar 2025 10:36:22 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWBwN8aSBfqoNdoJ+E8dlw6HrfjiPl0hBua1u6xB27xHt0bYOITDrgFXbaSP08dR78eyVsNAQ==@linaro.org X-Google-Smtp-Source: AGHT+IEojWAWztLwdmVZbe6sUr0NCXGeIs+E4ksdjYh0FalFAMaHlUPuT/bTEPItYsRzq5VFQhZK X-Received: by 2002:a05:6214:5992:b0:6e4:31d9:b357 with SMTP id 6a1803df08f44-6eadded9bf2mr130769036d6.1.1741973781976; Fri, 14 Mar 2025 10:36:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1741973781; cv=none; d=google.com; s=arc-20240605; b=EObNgiqQGUV+JcpNMD/EpHJ6R21peijLlZMRu6rU1uMYdtQMosu1KE0urP2EZuZ9OL OAgBLGuszSsbuY9opwUnrL/y9236S8qBbL2BIxepCuse8PiurdrzmV5nyq+D1gLEqkSG Ij0xFFOWZV13E/E8EvE+zpbdB9zLLNoiPHX9mAVRuSOn9rTwPRP7yaC3SA2+5hmEUQGY BEpyw3j2F1OrhXa8s3DeH6K8WJRvFNUaHyg67yRlrMJrkwcLsnRL5ULDu9u5bltMSUFC Or0v5X20rtBk7PjGkUiQ8KPE1G3sePfp6fFV+X43kZw1FPzVFVn7NiusmwrIMFXS+a4Z DCqA== 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=PfpTTedni4gUGfvRcfnvXw4xTvY7JO0pNjOjXTZ7pI8=; fh=1okYn/R2grs/obLcH/MB7/qs9S9nHlecEB/w1J23kko=; b=isNx9PmzJUQMBMpxylCftZKGaufkV+g9L2c4JAIkm+u2YZWwOJ1UE1evxN9BBvCCyU H4Evj9z86AXpL/U8q6NB3b16cEyjfztzuLua5ZHEaV6wmcH43qD7Hzd2FCgWi7M/7tKC EpH7OFf580IK4QZo/Aqn4Q96SHlwVdsG0FfZEX2Kc8yOWxRxE8sXceL+JCken57TXyyz QQ5YowaAJuhKLutymUhVx6j4cewHIHwMlMsaby+IaHdyaKDgwJeMk+HNmaTIZ8dWnuwB 259tsDvqzNVHyaSmH+jMyi2Htwd0i6JXr/FHqbfQE67ml5EyhzuN2ew+9xqXoa4RojJ6 0PXg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QM8Kuu6P; 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 6a1803df08f44-6eade37074esi42890416d6.446.2025.03.14.10.36.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Mar 2025 10:36:21 -0700 (PDT) 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=QM8Kuu6P; 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 1tt8ti-0005tL-7o; Fri, 14 Mar 2025 13:32:38 -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 1tt8tC-0005cp-NM for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:07 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tt8t5-0008Fw-Ne for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:02 -0400 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-225df540edcso18252275ad.0 for ; Fri, 14 Mar 2025 10:31:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741973515; x=1742578315; 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=PfpTTedni4gUGfvRcfnvXw4xTvY7JO0pNjOjXTZ7pI8=; b=QM8Kuu6PyYcqBshbDbxID7Dnz9SsNnmCksX2a5w7zaRfTKxxtZzjZPDQGHza1TYmGc 5KN5UvuIXLwX1azcvqNjT9xTLvuS/0/M5TBZRJjLam0acqL1oc5N2zpD/0GGr7Lpl0MQ MmeB0qPJB4YiyFknwMx5JA++zFiCpRjPz1LlNjaMhkjTqRgNzZnXYm+MCINwHNBvxfSM oLXkxp+gqBduWjEWkfs6T+xmRtgVcVAu+2tMODKWXXRQxqc1vHBI8g7gzNHTen9MzO3G Ejv4K8x1PJog/jKIQD5hQJAQmpzutkspbxOofHP18hijH5yRZ7gOh3fNe2cN8aryraIC 70gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741973515; x=1742578315; 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=PfpTTedni4gUGfvRcfnvXw4xTvY7JO0pNjOjXTZ7pI8=; b=EyIO5cGCdFyN5tSeh+cb1GzSA9AivpKBsTsfPGe+B6PgmS5ED+nqI/3NNanx/u5L8q QXMUCxMCLPMtwPBpl1StQhsuarCGpNe1Hl+odDlNTEuxv3r5t4jicHWZp8HeZgsN4BD/ LiIJSWhaBexr6VDbXjcqFow66EZewfiBFjO3KHsAsIlxlhAnHha/u7FuVeH2rF1NDKGH YVxCNMuphwaN1zfT76XUq0wPwlRJ1QC/JFFxPVvvrraqvS8CZCiuxdQZG8FiBQupH2Pg xITotPKJwODpwcqOJ7GhkzkbzoZkeCP6mbCJPxFJrkva/ltYBHHWZXV46GFX8O0pF3OG C3Fw== X-Gm-Message-State: AOJu0Yw/yUUrY4RMUta0ZNMil+umfEeyuvv06UQYX1RTZ3OiQQI8r3v+ l1HPLgrPOvkIdlQocITYnNdnmk25dQ4gpQGa4YAB3jaFUvo3+3ZYCF+Z4ZX+cyHWBiUuJbTUJnM lRt0= X-Gm-Gg: ASbGncvXAn76uRvRQwQDOFvyfY+Jxtl9H+kwxdTlcQhMIhHMWk+bQUdT1I0Y6wi28TF 7pIeUMyFn2vy6qEo/ZuGKz4erq5AxYvOcI+durPqH3V4xk+a72dfHlxsLE0dz3kzswsRxRIaTW/ EJ0R1AgqLMaZiP9pNqAK+Jl7SWbhacSRPrLPObJBmKtLYirUBl0lf0guaSwyoIlnBA5raty3OFC VnmOOIZf900UohbirOFzbVzkM8kj0mp74NnN9uUd/DHFo13luJ6LxNLOlNgAJevo9Ethgg7aXpI OeA8l1Ff0AjFSSthGqywKWET/D5CBIt0dpKGcOfw+SO5O/91Ammb86s= X-Received: by 2002:a05:6300:619c:b0:1f3:323e:3743 with SMTP id adf61e73a8af0-1f5c28650c4mr5059385637.12.1741973515400; Fri, 14 Mar 2025 10:31:55 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-af56e9cd03bsm2990529a12.8.2025.03.14.10.31.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 10:31:55 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Yoshinori Sato , Paul Durrant , Peter Xu , alex.bennee@linaro.org, Harsh Prateek Bora , David Hildenbrand , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= , Richard Henderson , "Edgar E. Iglesias" , Liu Zhiwei , Nicholas Piggin , Daniel Henrique Barboza , qemu-riscv@nongnu.org, manos.pitsidianakis@linaro.org, Palmer Dabbelt , Anthony PERARD , kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini , Paolo Bonzini , Weiwei Li , Pierrick Bouvier Subject: [PATCH v5 09/17] exec/ram_addr: remove dependency on cpu.h Date: Fri, 14 Mar 2025 10:31:31 -0700 Message-Id: <20250314173139.2122904-10-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> References: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x634.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 Needed so compilation units including it can be common. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- include/exec/ram_addr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/exec/ram_addr.h b/include/exec/ram_addr.h index e4c28fbec9b..f5d574261a3 100644 --- a/include/exec/ram_addr.h +++ b/include/exec/ram_addr.h @@ -20,13 +20,14 @@ #define RAM_ADDR_H #ifndef CONFIG_USER_ONLY -#include "cpu.h" #include "system/xen.h" #include "system/tcg.h" #include "exec/cputlb.h" #include "exec/ramlist.h" #include "exec/ramblock.h" #include "exec/exec-all.h" +#include "exec/memory.h" +#include "exec/target_page.h" #include "qemu/rcu.h" #include "exec/hwaddr.h" From patchwork Fri Mar 14 17:31:32 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 873462 Delivered-To: patch@linaro.org Received: by 2002:a5d:4308:0:b0:38f:210b:807b with SMTP id h8csp836441wrq; Fri, 14 Mar 2025 10:34:32 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWfSrkBXYPJviC664yfw/ov3r7KP8VHWYHaKmSKrR00p8HssYrNvfjafBi/qz/2rtoc5uCQew==@linaro.org X-Google-Smtp-Source: AGHT+IFe5yYfy5Dpgi1g/ZvzPeHD9FtRmCls8zSQEW0ODDUIeoc6aj30vPVkK31opakp6INzXPm1 X-Received: by 2002:a05:622a:1193:b0:476:639e:edf1 with SMTP id d75a77b69052e-476c815b8aemr51572751cf.23.1741973672011; Fri, 14 Mar 2025 10:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1741973671; cv=none; d=google.com; s=arc-20240605; b=Klxmo/S/nK8pBtk2LAba8dhvFHv0bBmSH6MXYoBXtVc+a5984U6LG7/RqeD8Fv35p3 fgUvY0q8gbz6W5w/6X6Mur1Wut32vT43dFmbpCVibQT6JazT4xl1v97ivf43vneiaPS8 MNZBmB8rq8K1QZPX67g5GXGboqCvBiMuo+BbttGyA4D6WkMyubf/Ao9zzg3kAGNUr4Je oMvHH34YjjG6H1XkjGJfBcmuiGMMJAJA+zJxL+qF6OhZmnP/6Oya9+ei3dgO5iCMwTD1 eNWKig9gUJyRIX4PR3iX371z5+e1Nw/Uzr+hj594BVCT49+EHGtYdYvPeo/wyD+nC/Co rSLA== 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=BsftdeZcZ0LsVJ43Vlgc1kB7SrUHDvnjwuIeYSteybs=; fh=1okYn/R2grs/obLcH/MB7/qs9S9nHlecEB/w1J23kko=; b=buJ0bblkg5JLMa1DgfnCw4R46OcbLx65mzTvAvEz+C8BNigXNe2qnx2F6ZxZu6CX3B kFLih8g5j+sw+7KyYFjLaOlHmsdVKfUxD7NNHGDEnUKG/IBeVDwcYRZ+ylZt+vPiOgBU 1Hj5gpB42oqjt2lA5xANmdQ8gHAbWWe7Ae6Am8c6fKMh26geuStVPjFRhpOTHuR7u8ue SoZBU/UXi+tZO3sL+g1IbMa4JH2Tgl2ZKDf7zba7P+bg5RHOvSJ36PFRWprq+OrCFY3Y WzXE6rkSDPIenpyufLWlx2PXspRrxp/J/Ud8RDpD2uCVLKVV2G/0AVPsSv9E431ld7sX SQTA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qBZPtlgq; 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 d75a77b69052e-476bb81eaf9si39095351cf.448.2025.03.14.10.34.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Mar 2025 10:34:31 -0700 (PDT) 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=qBZPtlgq; 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 1tt8tt-00061h-1A; Fri, 14 Mar 2025 13:32:49 -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 1tt8tE-0005eS-5x for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:10 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tt8t6-0008Gc-HH for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:06 -0400 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-223fd89d036so50298045ad.1 for ; Fri, 14 Mar 2025 10:31:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741973516; x=1742578316; 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=BsftdeZcZ0LsVJ43Vlgc1kB7SrUHDvnjwuIeYSteybs=; b=qBZPtlgqFNp4zq6y6ma4Yfxc1QOVdub8vKffWegWoQvwX6G5rMVWJ0NOFgpen17hUM UJZUzMOyEdr7D2n3K+5rUpgF072GafNDuQfLTqccGKDkqvXl57dCdFMq4/VxplvuVJOM vbhOr70kgHEkcvDGVHoC3WgOntcNjg4+K6DvmkfOhr+Ba88joJ2yg9zBkynWnFOXFN6n izJNTrfzN1ixIRT/xZB3P3ehHNB7272A5oLsSBMq0286zdhGOYOb9aWtLlBcuWflMFrq nrUXD+0PfXlF1R1BqIdF6Z7pPWQqvLkQ0C4qL/hUmv57328JH1ld4Mx/ocPfANsT398f lQbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741973516; x=1742578316; 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=BsftdeZcZ0LsVJ43Vlgc1kB7SrUHDvnjwuIeYSteybs=; b=pokIFXjuAh2O10s4yiKgQtuz8TUmjsCZOKNA4Bop6/olGmaIDDyLFaUuV7Z6o9Bw4t DFfYoC7QdaSCgbIQLHGfEY3uy3htkZjSUwopClBtNXnLATYeuDlCsj1HlVHwRHSabqyL Ljs890syWkjIEOBDn0bloWED65EkSjxQ9fL68XiSpR8q7FEaW1wr3TUuljZ9y6rFOoUu R1COo/rRXaL3A1QVMgrVahzrpKrxaSCXD7sMvYm3+ZElET6tRVEDwMM4c3Gv5jb5HU6e ETyPyXzolRGMtNJmUp+cKI4trvjX/nXqtuaHL0vUmuUBQPrEwmM6LsbPG/nZkfhwj9/O EX/A== X-Gm-Message-State: AOJu0Yw+uhBtd+VSRm4iwY+ajpgKxqLBA7wsxcmt7qpUQtrhGBjsIzwm W34FLSCPGwixxaJjuHEZk9euQrnr7kaPdQH75mXlNCgf1pWsx+yoUKr2EybnitpjxL/mc7Dj9+j wTdw= X-Gm-Gg: ASbGncvXosdWTtypbSiJcRsI+5DSe3MZqQsxt7p9b1/bnq3shBbPPhDzPrIRFEneXEk f8o/F99eVA2puV5dLy6qbWuSocqzUNpoF8b5WpgMPJxyAmq6x9Pr067yf1PRDOAUaOYm5xEyiVR 6oJy87H5kSwV7cJXt+JDHB+6BP4NajpMux02pX1rgUthIv6txE4xThSJXky9N9TFQ6Y8YfqaBLS flTb5Droxm59OXFsFkglgB4AfQLZoEgSXO9IDaut9tLOY9pn2lhueI6N8twlqQYjz+8C+80cuaN nqqSpuhGjXvsBQritenxSDzVBkxxWQIbPyJhCQAKITfl X-Received: by 2002:a05:6a20:1595:b0:1f5:8622:5ecd with SMTP id adf61e73a8af0-1f5c12c78aamr4816767637.32.1741973516583; Fri, 14 Mar 2025 10:31:56 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-af56e9cd03bsm2990529a12.8.2025.03.14.10.31.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 10:31:56 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Yoshinori Sato , Paul Durrant , Peter Xu , alex.bennee@linaro.org, Harsh Prateek Bora , David Hildenbrand , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= , Richard Henderson , "Edgar E. Iglesias" , Liu Zhiwei , Nicholas Piggin , Daniel Henrique Barboza , qemu-riscv@nongnu.org, manos.pitsidianakis@linaro.org, Palmer Dabbelt , Anthony PERARD , kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini , Paolo Bonzini , Weiwei Li , Pierrick Bouvier Subject: [PATCH v5 10/17] system/kvm: make kvm_flush_coalesced_mmio_buffer() accessible for common code Date: Fri, 14 Mar 2025 10:31:32 -0700 Message-Id: <20250314173139.2122904-11-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> References: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x633.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 This function is used by system/physmem.c will be turn into common code in next commit. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- include/system/kvm.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/system/kvm.h b/include/system/kvm.h index ab17c09a551..21da3b8b052 100644 --- a/include/system/kvm.h +++ b/include/system/kvm.h @@ -210,11 +210,11 @@ bool kvm_arm_supports_user_irq(void); int kvm_on_sigbus_vcpu(CPUState *cpu, int code, void *addr); int kvm_on_sigbus(int code, void *addr); -#ifdef COMPILING_PER_TARGET -#include "cpu.h" - void kvm_flush_coalesced_mmio_buffer(void); +#ifdef COMPILING_PER_TARGET +#include "cpu.h" + /** * kvm_update_guest_debug(): ensure KVM debug structures updated * @cs: the CPUState for this cpu From patchwork Fri Mar 14 17:31:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 873468 Delivered-To: patch@linaro.org Received: by 2002:a5d:4308:0:b0:38f:210b:807b with SMTP id h8csp838024wrq; Fri, 14 Mar 2025 10:38:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXTKwBFllJ9K0EHPg9Q4TtCAw4QeAjKd5ynxNSmffyImio94UAZbQe7BTwUYWTW1MLiwx8YaQ==@linaro.org X-Google-Smtp-Source: AGHT+IGXxeqA6NYVK5qFBljNjmqFh920BqxDIvcwD1xiMaJpH9h2eW+KXQhkM30yB1kZ6VQCJvEx X-Received: by 2002:ac8:5f85:0:b0:476:90ea:8ee4 with SMTP id d75a77b69052e-476c81c40a9mr45991991cf.32.1741973897171; Fri, 14 Mar 2025 10:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1741973897; cv=none; d=google.com; s=arc-20240605; b=O8s05XhIh6NyQuj7ZqzKNAZEpIkCjLNuR+7EEWWbPXwBQBxJxInUpVXXTCDG1X8XVi Z1uTxvd9j8IV4QmKdOdjdsGVLPGHjawGoA/Qi15sa7MlbvjQIkTZkiM/PYbJMAZHWT3e UC1JOk2oYKmLAbAhpJTX/fgyPAD2v7yhdq5Lldg+D9Q6Xt072jRrUXN5O15nWecIEfgu Z5Ee66RYhAPWWx75PPswIOE8RLwT26u+1cus9twpZ5xuIA8DHC5NmSq13NG8ysscOS6r OrFiuQcMRoW1rduSSpck37NuKZKmMysXzofw5VYcY62ysZB0DIgbAN0G12Mwf11Xz1I0 91DQ== 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=PABH8iZPN9WF+wJr72ZMp6Lm7i1C+9jWBJAvssLik90=; fh=1okYn/R2grs/obLcH/MB7/qs9S9nHlecEB/w1J23kko=; b=hPRO86JBJdXazmmt7oPHPsh+W1I7KYUe32O/zX5QWZ0p5noKyPo1zA1CaJNPwABXrU mC1M0qzkejfMpHZihs8nXND0sXO544PsatTesfZbsmmPwWVE5nFHbuRa0B4Lxl8vto1I JPtsMwqfnd+1VWMEYu15XlfOODqmKpoo7ne5Fj812PVhFTOOjM98aFAF5xkQmLLIznSo 87HxnFM2tLckCut4A9BUouEFKL8VEkaZtQfLCeFgsbQrtzZfqINneb5T5zIpYee86lNt nDZqAEUbY335XB1rimeeh9kZVlSHZenMBxoli+6UaqwZQNAGoQHWgmkDmXmliImKFQ2B T95Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RigcekIn; 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 d75a77b69052e-476bb614a96si39614211cf.101.2025.03.14.10.38.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Mar 2025 10:38:17 -0700 (PDT) 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=RigcekIn; 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 1tt8tr-0005zg-67; Fri, 14 Mar 2025 13:32:47 -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 1tt8tC-0005ck-LA for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:07 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tt8t5-0008Gy-O4 for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:02 -0400 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-22409077c06so62105425ad.1 for ; Fri, 14 Mar 2025 10:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741973518; x=1742578318; 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=PABH8iZPN9WF+wJr72ZMp6Lm7i1C+9jWBJAvssLik90=; b=RigcekInGiGOc5YBWHVAb7RUpSErD0BgiyvMOpduGne9YVutA9AXx6IkvO4qmIb1+z R8ScThTT+KIO7cJrAeEhpojkUWNTA5ezfgWvBgU1WUspo8kjXKWcO/OhPMaUTub3GTA1 2aw9jSYKWpp/kSjHfEKwrsouLQoLoHLycqTiYdjbkPG951OBpBXGCdNuQtQduIQuOjxA pZ0aL7clQO8h2W1CTPv4UZm6tFeOcwvquV9kd0gVXtCuaGSX9e1E+iIGXHmICHphEza7 sCTiVPs5R6G5YK8ozHNw1WcRXAUDE2UrbGpRgJKt++vTqHWiStwuTmnS5JuQ+8N3WQSk sRkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741973518; x=1742578318; 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=PABH8iZPN9WF+wJr72ZMp6Lm7i1C+9jWBJAvssLik90=; b=oITGXpFiNERy3AL+vCqecvWhmyBjHuWtYPUwyYU3Zpa3FJSrnA11WntNYwn4UQNnkN OIQXjA3wMhjAs2ZPgfO+Du0f3KDNFWVP/ZUtJ7cx7QjaqIfJ1wdKnCzjJytZ9Siy2vNy Dpd3gZ3fjBy8EjwUk8/lWt3YD4vKBYaWB7K8Z5D8fa4hgLnQz9vbN/5fh6EBrnMyXeGI sYEQ7EAtCvs88cX3rF2+HsMhOEeefGkrwOBJ9kKFUqJdvRusyf9urzSNE8fbMP3M5VPx BN9kDCgF6zd2fLiWGpEx3Y/DiOkY7dqNTRpRuerL8jqOYedQUi5b57CJa2zNHHqhPdKg mB4Q== X-Gm-Message-State: AOJu0YzNYUeJ/XxvSHGuQTjbMzqofrEA5baDTSK58gcVFGG+AabVQSoS mcEFRzHD64Dv9ju92hG4thsu8lHXt00le1b3pUdIAZk6t0A9zUB2y5qxtshrSCGIgsByJZZMCEa lTSU= X-Gm-Gg: ASbGncvlx6LxKjv7bZprMDZaPk4oEXtsa7Za7QFSdnal/2MPr7hiKblXNgshgqbQc3h QnExyUT6p/Hx7vk8R/zA1r+fpr0eJCqJPFtYqmhKvkH+0sZzGkQ3QisMVA5Rhd4cGiJTGgcFnxp E3ZnwYv0b6mzP78WrFZ37/DnxCMZ6cwp538hsAJWyeerhovYPUjhum4AxWyEs8rUuKTQHrnCw9f CWmdY0pYb1M0552uCjVB3CzM10QYdo/RAvTmufbGowPgls+gmll5/8ENQh/wutFIXWFO928cvid ft9FwCQWAMw/3n3J3zgERORB9t3zXvnPiphE1890vn7/ X-Received: by 2002:a05:6a00:228e:b0:736:562b:9a9c with SMTP id d2e1a72fcca58-7372242d387mr4348766b3a.18.1741973517785; Fri, 14 Mar 2025 10:31:57 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-af56e9cd03bsm2990529a12.8.2025.03.14.10.31.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 10:31:57 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Yoshinori Sato , Paul Durrant , Peter Xu , alex.bennee@linaro.org, Harsh Prateek Bora , David Hildenbrand , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= , Richard Henderson , "Edgar E. Iglesias" , Liu Zhiwei , Nicholas Piggin , Daniel Henrique Barboza , qemu-riscv@nongnu.org, manos.pitsidianakis@linaro.org, Palmer Dabbelt , Anthony PERARD , kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini , Paolo Bonzini , Weiwei Li , Pierrick Bouvier Subject: [PATCH v5 11/17] exec/ram_addr: call xen_hvm_modified_memory only if xen is enabled Date: Fri, 14 Mar 2025 10:31:33 -0700 Message-Id: <20250314173139.2122904-12-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> References: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62d.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 Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- include/exec/ram_addr.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/exec/ram_addr.h b/include/exec/ram_addr.h index f5d574261a3..92e8708af76 100644 --- a/include/exec/ram_addr.h +++ b/include/exec/ram_addr.h @@ -339,7 +339,9 @@ static inline void cpu_physical_memory_set_dirty_range(ram_addr_t start, } } - xen_hvm_modified_memory(start, length); + if (xen_enabled()) { + xen_hvm_modified_memory(start, length); + } } #if !defined(_WIN32) @@ -415,7 +417,9 @@ uint64_t cpu_physical_memory_set_dirty_lebitmap(unsigned long *bitmap, } } - xen_hvm_modified_memory(start, pages << TARGET_PAGE_BITS); + if (xen_enabled()) { + xen_hvm_modified_memory(start, pages << TARGET_PAGE_BITS); + } } else { uint8_t clients = tcg_enabled() ? DIRTY_CLIENTS_ALL : DIRTY_CLIENTS_NOCODE; From patchwork Fri Mar 14 17:31:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 873464 Delivered-To: patch@linaro.org Received: by 2002:a5d:4308:0:b0:38f:210b:807b with SMTP id h8csp837176wrq; Fri, 14 Mar 2025 10:36:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXC+Xjx8ViLcW1t6u7CDDxG2FmXxFI2yoL/Q1JUIbAupoCJH2LbacubvnpcnI5XgxIbY/Ssew==@linaro.org X-Google-Smtp-Source: AGHT+IHZcZd0GmzBiIHVQO9OBV+JR8Vz4JqpVibucRcCH3uXxlZRcRqzgQmeYWJiwzxQRlwMxQpo X-Received: by 2002:a05:620a:269b:b0:7c5:54d8:3d43 with SMTP id af79cd13be357-7c57c8f320bmr415899385a.58.1741973777599; Fri, 14 Mar 2025 10:36:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1741973777; cv=none; d=google.com; s=arc-20240605; b=i7Tr9QicAG8J+TfTBgiC5nVPOUV6mvxTwy3rdftdMdC35ukARVhCKV0qy8zJqCRe01 S8QM9YwrEtYE82q8vafIZk0RuiIqGiUslftLMEdLU/yaCACItrIBYM94PngxsTrvMT7m tvcwkC2Rgvs3HJOAmf3ckQm0UuKscZpNXh5ADHjGv7qnuFh3KM9w9Z9GRTOcYPH0VYMR J/ORUv6YrVKsjO0x586G6SoJH2UW5FY2DwGNpoTSZEdWVfGgvjXZPhYqWaIuitJTltUR U3le+LnuwHHHTFWQ4fXkaYxP4UgQTA0MgVWlm6R+tlq7s6/7eowV0LtX/cutx+C2buIF 4Qdg== 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=WZK4IDfbpcoj/UHXYNBc9hj61CH/qnmJNHrSERoWz24=; fh=1eYTt0LXtkjMcfys9030kry1SyzhnfeGSEB2y21iMUE=; b=DmUNrBQNexZRpVc/LvzB94vbqq5TS9ttPvzCBbTk/zm1pKp3Cn3D5wPQmlQXHNmHgp SizljHQSKYbuUfG5Xnf4m8s0UoaYb0dUopD4q1dIA2bf1x2r5nqXciTS5+QJdAMeKN4d +nk0meONIqeKPReF4y6y3DlL8UTqaQEzvChh6Vtsedx23ovjAEL8i59yAYNBwPrtFtIq j7tJ0HWvwv6dAbk9e5I0WElZOQIcklaptIwjt+6SO7gC5b11x1Uj31p7qxsb+zcNrVHa LthXiLrxFYg82HUfXSpUtyqqiIKmq947i4gXg3vVEYppNgOKKDc9CWhwgDJqrfuYr8Tp VJeA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k285P5i9; 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-7c573b73815si450932885a.12.2025.03.14.10.36.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Mar 2025 10:36:17 -0700 (PDT) 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=k285P5i9; 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 1tt8ts-00061Q-NA; Fri, 14 Mar 2025 13:32:48 -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 1tt8tE-0005ed-5z for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:10 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tt8t6-0008HG-HA for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:06 -0400 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-22409077c06so62105905ad.1 for ; Fri, 14 Mar 2025 10:31:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741973519; x=1742578319; 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=WZK4IDfbpcoj/UHXYNBc9hj61CH/qnmJNHrSERoWz24=; b=k285P5i9vOuCu9IxPnh7OBLSosROs8en99zv6zczWSCR9fI16nQSB1ZKJhuimUck6P QMT8a2nOci676V8rchwL97ywt4v5jj/U/zANyulfkxL33nnwRCSXBlSFli+5kOwMa5Sw Jct6qfL/2y3S415Be2+Ptd8kNpxao1GpH6lpRGGf/j+hkFmDGd8WtWCV3b1CJ4OIMoer tK+y6vtrSwy2LRnFEm5fnT4TW9BGr8FZz0+bocPDzY7Mb8MEmkkYcNsoa5B74dEEnOhm 1qH2c7ySCW4/BpS26uCJjZGCuHPfa8E+1aLs/ccFn4lUgLJloJJRCoUSFN5uUYFcOC5h mfgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741973519; x=1742578319; 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=WZK4IDfbpcoj/UHXYNBc9hj61CH/qnmJNHrSERoWz24=; b=SbYIyHJczAtdWV+zbe0jgoi9xlg/tnI6TW4VqgerRP7oQtghyByvnuJxCXgdHVjGLA gNdVtWG+kqBqHcpGG0a6EhFXxdtdzX8qHlrx102iEVgN8Fkd/AUwgwVuBiMsflN46av1 EZEaAFOq9KQLa4tWiowmAraqi7Bk/xIccHEl32x47q2Av0TCtag4uzj1zFK+fkEbQAZw w+p/Aie/i1AILQOpA31KHKMJbfHtMqcowkU2gXUwMaFHKr7eDJfqHwKf2vRqWyW8ex1M xBxJPla2u0IoJ7NfqtaTC40Phou2o1zfO34rF39VL9p/bHrMjEaTrNJJ5erufdAw7yAM taZA== X-Gm-Message-State: AOJu0Yw1se82XyrCAvC2eyR94H/jLN0n9PNmeQoP/0E6kXRtdPZZkUgU n1xS1E4N8rFg6tuPO6ZfaReAVWSvJ5YKVJVWshIDU+0v7R3vHBz3AVhPkVvyXqQnNt9ZeQYtilt vQtY= X-Gm-Gg: ASbGnctoAY5PoC2QLK/kUwdan7L3DlIX2lC5DRSypi1CsUqg8YC7S8UJ9cxD6Csym2U HCBdSRI0ruIIwjfhTr+ODi5tT989WuImoufzFzeMH8nYSFWIgsh6hGthRsVTGbJq25xH3c5d1Oq WNoOUcQ1ZCs09qrdvHmzt+98JgIjjG6stpgdT/aiWVEQzJBLiElY/aRSKL26q4vmlpELQHVtmRB +DaNN8rrJz+R6PVvOuudfkV/GaHDd/3qPj412xq0PTp4rIWcY0jZLmsUgB0wdiiDxdHAu+t6THa UbE8gU/k/Q4fhlJQVv24IqWGLL8kA1LkgBNvCZkqfOJn X-Received: by 2002:a05:6a00:b4e:b0:736:533b:f6fa with SMTP id d2e1a72fcca58-737223bf5e7mr3790179b3a.13.1741973518933; Fri, 14 Mar 2025 10:31:58 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-af56e9cd03bsm2990529a12.8.2025.03.14.10.31.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 10:31:58 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Yoshinori Sato , Paul Durrant , Peter Xu , alex.bennee@linaro.org, Harsh Prateek Bora , David Hildenbrand , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= , Richard Henderson , "Edgar E. Iglesias" , Liu Zhiwei , Nicholas Piggin , Daniel Henrique Barboza , qemu-riscv@nongnu.org, manos.pitsidianakis@linaro.org, Palmer Dabbelt , Anthony PERARD , kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini , Paolo Bonzini , Weiwei Li , Pierrick Bouvier , Anthony PERARD Subject: [PATCH v5 12/17] hw/xen: add stubs for various functions Date: Fri, 14 Mar 2025 10:31:34 -0700 Message-Id: <20250314173139.2122904-13-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> References: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62a.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 Those symbols are used by system/physmem.c, and are called only if xen_enabled() (which happens only if CONFIG_XEN is set and xen is available). So we can crash the stubs in case those are called, as they are linked only when CONFIG_XEN is not set. Acked-by: Richard Henderson Acked-by: Anthony PERARD Signed-off-by: Pierrick Bouvier --- hw/xen/xen_stubs.c | 51 ++++++++++++++++++++++++++++++++++++++++++++++ hw/xen/meson.build | 3 +++ 2 files changed, 54 insertions(+) create mode 100644 hw/xen/xen_stubs.c diff --git a/hw/xen/xen_stubs.c b/hw/xen/xen_stubs.c new file mode 100644 index 00000000000..5e565df3929 --- /dev/null +++ b/hw/xen/xen_stubs.c @@ -0,0 +1,51 @@ +/* + * Various stubs for xen functions + * + * Those functions are used only if xen_enabled(). This file is linked only if + * CONFIG_XEN is not set, so they should never be called. + * + * Copyright (c) 2025 Linaro, Ltd. + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "qemu/osdep.h" +#include "system/xen.h" +#include "system/xen-mapcache.h" + +void xen_hvm_modified_memory(ram_addr_t start, ram_addr_t length) +{ + g_assert_not_reached(); +} + +void xen_ram_alloc(ram_addr_t ram_addr, ram_addr_t size, + struct MemoryRegion *mr, Error **errp) +{ + g_assert_not_reached(); +} + +bool xen_mr_is_memory(MemoryRegion *mr) +{ + g_assert_not_reached(); +} + +void xen_invalidate_map_cache_entry(uint8_t *buffer) +{ + g_assert_not_reached(); +} + +ram_addr_t xen_ram_addr_from_mapcache(void *ptr) +{ + g_assert_not_reached(); +} + +uint8_t *xen_map_cache(MemoryRegion *mr, + hwaddr phys_addr, + hwaddr size, + ram_addr_t ram_addr_offset, + uint8_t lock, + bool dma, + bool is_write) +{ + g_assert_not_reached(); +} diff --git a/hw/xen/meson.build b/hw/xen/meson.build index 4a486e36738..a1850e76988 100644 --- a/hw/xen/meson.build +++ b/hw/xen/meson.build @@ -9,6 +9,9 @@ system_ss.add(when: ['CONFIG_XEN_BUS'], if_true: files( system_ss.add(when: ['CONFIG_XEN', xen], if_true: files( 'xen-operations.c', +), +if_false: files( + 'xen_stubs.c', )) xen_specific_ss = ss.source_set() From patchwork Fri Mar 14 17:31:35 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 873470 Delivered-To: patch@linaro.org Received: by 2002:a5d:4308:0:b0:38f:210b:807b with SMTP id h8csp838610wrq; Fri, 14 Mar 2025 10:39:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWlWxB6xXqdGuQYPdoi1T4XzpdKpd9e0P64HL6JzeYEpW6nlrzrI9thiW2wWwB76fes2YzQXQ==@linaro.org X-Google-Smtp-Source: AGHT+IF3wl3f0eCw6vgSxWyyaCcD/GWECeHWPB5vk5ayL6WWK5xOOtXzeF6vzELbJX1NgqMQWOh5 X-Received: by 2002:a05:620a:1921:b0:7c5:53ab:a722 with SMTP id af79cd13be357-7c57c79ba57mr393356085a.5.1741973988518; Fri, 14 Mar 2025 10:39:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1741973988; cv=none; d=google.com; s=arc-20240605; b=al3gWE+Gl7WuMIacf+SzSt6d8Xw1iqIxH0IbY9Y9WwHq5sGV/zE0jDAYMOuc881fdi Py/FqCBX0ss9lvoinHJ0xzg/pfTTnMLsNUyr0i5kZHbw1YKCVArfC4ZzmAykBESQ20nB h7w41V+qvNWBH3NmqWwMQa3njfg0jFY+XQ2WPTjil3x//CqOpiLs2ZX6N3DG+uB0a1k5 Lq/1V0P6P0VO9ExGm17hQjIFNaidZ8BIwesCXtepIM/OhZ+v9zlcY+jmlfYj53A4LujB +bde0q88ZslUmetEbGDL/3QADlacHVvSJh/6rYLpkUWDYffKTrm1FeS+g9PCC/zqnGKF 2bOQ== 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=cOa15ppvF5kxsldjPkSIJYe5T0c824L9GaUvR3via0Q=; fh=1okYn/R2grs/obLcH/MB7/qs9S9nHlecEB/w1J23kko=; b=KrVTn7zqmp2wXbpHUswO5wZ8DoyBaGKWkIzPZZVmsVl8QR6B63wS1MRb0atcYrJFzU jcvVZIdqVxVS7TbQqqNj/Ciix8pFbnQGfZJkWtL2KT2JTx3CcdY1TQ830gsQnNJ24/0+ 4zUwIdnE3ksYnRmRSErPkAy4YY553xYLT36ezOwA6ctKNEKkQQ7CUwo8PxqYNsjvOP+J bhQ9Gc+iPAtW6IjqPFDZ4t2u0p8FaptRWc3Ep9Iw9Rv04FGdedyGJaT3+kyZmXmcpJRA 9hsRpQl4hmjECou+Ka6FK4PCe2lNsBzZiwCmslVer+M6MVxCPS154q9V5uWQdGglAuTp bTRA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x4ccqJU2; 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-7c573d1accfsi447908685a.553.2025.03.14.10.39.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Mar 2025 10:39:48 -0700 (PDT) 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=x4ccqJU2; 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 1tt8tr-0005ze-4j; Fri, 14 Mar 2025 13:32:47 -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 1tt8tI-0005ft-Q6 for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:16 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tt8tF-0008IR-2l for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:12 -0400 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-225a28a511eso43039015ad.1 for ; Fri, 14 Mar 2025 10:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741973520; x=1742578320; 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=cOa15ppvF5kxsldjPkSIJYe5T0c824L9GaUvR3via0Q=; b=x4ccqJU2JUQQ4yet4DjM5vBu8Il7lqMZ4PMkueyUg/A4G8TO/fe7ORIXPA2F3x7clI jJvmHQXPhumSvRwXKjWOtjZ/+Hc/i1aIAu/Hv+X7XTWZUO6B+/8ck5A/Sp178Z4FRlU+ nIAHYPdbt3JdT9hbdis4mAHBU3QRZ0s60mrd8vX0gLmrvwz7pcPumVOt7H2mV9Ow75Jt KERHQ2e2QTkgpfHXSS6P1AA1u60vFcBOJAkHkoFv0iCtM/vqgIMyVbmvVPhklOOVEF3h 3GbTIcbPiM/4GhTWu5YmPugR72mixdwCIt1dqiBRYVd7z1Cwu/g5pv4Irctz25FGyKAp g+Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741973520; x=1742578320; 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=cOa15ppvF5kxsldjPkSIJYe5T0c824L9GaUvR3via0Q=; b=hrrmS8ESv/WkOVvztp0q4JGegl0TCkaWZIR4F8IbknF/7aN/p96v6WJIZ+BWPpFS8j eNk06uru3oVq19IIhUh+fqh1yXEUC5nQ6Uoz1G6mJJEwnDU3s+opGgJUrjZdHrFLU/T/ yed5Isz5BxCYGoIqUm9sag90vJWM7oBsZ5uZSJf23JrAncMwTGBh/rHej9VIHwCCl3zX L1KUa96Ton+hKT20kX19K8T/XpAhJV9boiwYWZt9Ikk+GZ//xgZG1dhBAgaFPkq7BehB Y9PjRyPis8gZKCIXehs2MGRIppb6l/wjMu37bnp27pCkTSKzocjWS+HjjzoO26YkymZl dImA== X-Gm-Message-State: AOJu0Yx+Y7iprq2pCOcyifc2WxL/VDt8gtCwzkD6FUBqQKX2r95oR2tO JQVBEWEyFtasoVxoruhPgARpzRd9DFMUeHs7ifvYOGic9tQmv7pOY/W7ekKy1f8ve5GuM4797PY UsZ4= X-Gm-Gg: ASbGncvxsT1li3eLbfmlNo2Lto7VVaRkzgZxHHMip79bynZwBI4qlmj8N7ccGrOp1ub UuoRWIoJH2OpHkCYPnsmb6zZ4D71T/Lzniu1lEnAaDeg3plrWNE6oDdH7Ymo7VdkxUiswqzlRaP kcxX33T9YoUJH9WpC0NK9SGFcqv8NEker6DTwPkQmz6qs0xljhQrHVk7ztdLV2NL86ezcAHImlW YKOvl6iOqELF6RUBTM5voUHi07sShN9UZW18sLxAFGlwx7NzqnY/YUec8YHxEGoTXffQWhk5ixy ONmLgYBcZpNlp3IsEnZgQ3gzsgI+7aJRMoCWy5+GMHYoqndpKyQxdBg= X-Received: by 2002:a05:6a21:4a8c:b0:1f0:e42e:fb1d with SMTP id adf61e73a8af0-1f5c1326a41mr6196288637.36.1741973520104; Fri, 14 Mar 2025 10:32:00 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-af56e9cd03bsm2990529a12.8.2025.03.14.10.31.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 10:31:59 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Yoshinori Sato , Paul Durrant , Peter Xu , alex.bennee@linaro.org, Harsh Prateek Bora , David Hildenbrand , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= , Richard Henderson , "Edgar E. Iglesias" , Liu Zhiwei , Nicholas Piggin , Daniel Henrique Barboza , qemu-riscv@nongnu.org, manos.pitsidianakis@linaro.org, Palmer Dabbelt , Anthony PERARD , kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini , Paolo Bonzini , Weiwei Li , Pierrick Bouvier Subject: [PATCH v5 13/17] system/physmem: compilation unit is now common to all targets Date: Fri, 14 Mar 2025 10:31:35 -0700 Message-Id: <20250314173139.2122904-14-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> References: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x633.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 Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- system/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/meson.build b/system/meson.build index eec07a94513..bd82ef132e7 100644 --- a/system/meson.build +++ b/system/meson.build @@ -3,7 +3,6 @@ specific_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_true: [files( 'ioport.c', 'globals-target.c', 'memory.c', - 'physmem.c', )]) system_ss.add(files( @@ -16,6 +15,7 @@ system_ss.add(files( 'dma-helpers.c', 'globals.c', 'memory_mapping.c', + 'physmem.c', 'qdev-monitor.c', 'qtest.c', 'rtc.c', From patchwork Fri Mar 14 17:31:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 873463 Delivered-To: patch@linaro.org Received: by 2002:a5d:4308:0:b0:38f:210b:807b with SMTP id h8csp836606wrq; Fri, 14 Mar 2025 10:34:56 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX/4oztPDYXLXWuKViGT/eZuh9c8deDbPv1x4xcQDQr84nJWA5GK1ptCIVgqL/kJRsEjSbhzw==@linaro.org X-Google-Smtp-Source: AGHT+IE0hBItirWIujtlcqBNx76BJA6TE5JGzRrH/1Sc6Suw9t56+G8JMKmjkzUKS4uQlCX/L0BV X-Received: by 2002:a05:620a:4409:b0:7c5:65fb:fe0e with SMTP id af79cd13be357-7c57c737f40mr522716085a.6.1741973696107; Fri, 14 Mar 2025 10:34:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1741973696; cv=none; d=google.com; s=arc-20240605; b=IN75J/53EW0SEG9f+mYsV8teckPXxq4GK8icNR2UM6A9ERJmWO+VTCBf6O8U4OVaYQ mxL6rJz2l92RpxkX5v1LRvCiGzBwu6Mbuxjcsl7lNu0wMgJaEFWlXvFAuuKBd/fpBPdy GICNtKXaYQqebi6zL0vU3sRjIsSwRvzT2N7hHe2jNoTxOOa2zs25neiMIXfiw2nqCxPg IBFcwPlNTXkiA5VMLJfQgf3yo01P/tKMDxyZC2B+pj6m9NbEpj7OmT+Yfm2FVYX7etYk HfMNWLDOimcjRUbPYls5d71v/TBGvu478VtLqZktyMzI9bsEp0hSUpJG41u+8zSZ+qDw nmpQ== 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=0vI16NHb2tKWbIxjnq/SoVUTdY/Lep770BkCc47k0Rc=; fh=1okYn/R2grs/obLcH/MB7/qs9S9nHlecEB/w1J23kko=; b=TgVz6E9QixfUnzkFw22VRZ/bQ6CjmTLGqbL2UM4otB1xXf9ibbSE+4vbGmfKB7CGNR LSwOjWdCwGaBma+qZwNLAsCRJ224jMKtXTvsrYzvwZzHU6UCFtp5pYqOHvovEfWIFfZk nC4WG+kE54cbrP14CgYBzuD3FXGynvxZnb9BlNEfepZzwI0t6H64qrbYzzeUR/NALdVc Uq/D6HUZX1mtNYqD/W3HQ8fxSs6q069W6yX5fEP1myBuYlWbVqpYoJhALoD0qSzVYK9t bqegabOMtyNlNuHOZWhn8q3pY5SsXFthd+L6jfyqywiB9rWBaEQW/IFQM2m+/bSLL9KY 8Pew==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N23ywjmO; 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-7c573d1a7adsi440717885a.584.2025.03.14.10.34.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Mar 2025 10:34:56 -0700 (PDT) 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=N23ywjmO; 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 1tt8tp-0005y7-3H; Fri, 14 Mar 2025 13:32:45 -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 1tt8tJ-0005fv-7K for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:16 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tt8tF-0008Io-1G for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:12 -0400 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-2243803b776so66984475ad.0 for ; Fri, 14 Mar 2025 10:32:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741973521; x=1742578321; 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=0vI16NHb2tKWbIxjnq/SoVUTdY/Lep770BkCc47k0Rc=; b=N23ywjmO/uXqb54kDNyZLNU4nfZo0sSKep4zmAmuojzrktWIuZkkfp3xLnNhSHjCkN 9v4Sdrkma7B8fxuFIH+tlh2KWxQnS4UmOhG+CY/Whyq8gyK/arNOk0/iZS6ad0AkZvMb rAEQVm3nN1vp2naiTnB63wOwwSGqcMN+WD5V+pCZSPpSt0598n9dAs1jJMlN0uGe3rkK iNGLQWnlt9PsSgjdDOvRgv+H+ab5HkKNszTxteqYdF16YoBHknfkH7/sOToVRyMetK+0 MF8rV6NWXfFamwCRFCyY1NaQ4YCOqKV9RciC8MQ96dDXchFukcUqoyzt5i4iJ4mrxtDL ZUzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741973521; x=1742578321; 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=0vI16NHb2tKWbIxjnq/SoVUTdY/Lep770BkCc47k0Rc=; b=CryHV1eCPzHWRSqIqhzKBM8wEGgRo7V2LFcr0IwKYEeVbkgqLZs7ENEDvzYxBauuOH Tuz5zpO1J8QQbwr0u8KZKw/l7CkO6sy8UvyGne3X8Kn60DW24kvo2n96KH44CkeI3icu v6rzTas8MbmYYSMmWbwnKAZMPBT/ZlresPwouV8G3G4HgljipGLxfr3qhd85u5PzSf1e JhGlld5zfkZlGFKNLHYjvBwBak+ApkIBodjY90v1Ry6M9g7or3Qon2my6yTNHgohWLma hqOwZv/GpN0wBh6TYeS1juL8Ro1RhT2OSOF7moBtrO55HDQFOyM88Fa6YbftatRuEYQF EmfA== X-Gm-Message-State: AOJu0YwH0syQyH6GvtU0ZRSCfMTlUG4o/EOhskqku4Tm0PH7kGjES9f7 STNBq6zYjfUrhonVN0h3LQkcKnDL+IjMnuRKPg7LT5ZRtf061ohRDG3tOpZYn7XhWZBQWjhvkn0 7uu8= X-Gm-Gg: ASbGncuXTcawmtZLHUaBkmy3z4dibhbwyTMa6eXnFHX5E1ObtYhPfQWX8u7Rn1f7HF+ i7uCxehj0rj63AVba7qH+xn2f7dxDi0bHz9jU8RkiUkRax0lR3xea3tQY3FQUsCAGGGJWGv67Pf 9943VbleFTP7cWqKN0DsjQCYk+ONqsGYtv77H8PWNkN9C/LANnJRrN0iZZXuU+hWy2HnKHrijrt Pm2SBG0PnAp2VZ2gQLRu9cztAccWUK6x7qa0FKQ6CCQAQYT5meAMKSP7YfamNohmiE6Q+ldro4j aZnnbhBygm5oFCRe2OlR18nw2Wr2izalUzY9rYUiAtff X-Received: by 2002:a05:6a20:9c8d:b0:1ee:efa5:6573 with SMTP id adf61e73a8af0-1f5c113f552mr5261243637.8.1741973521265; Fri, 14 Mar 2025 10:32:01 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-af56e9cd03bsm2990529a12.8.2025.03.14.10.32.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 10:32:00 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Yoshinori Sato , Paul Durrant , Peter Xu , alex.bennee@linaro.org, Harsh Prateek Bora , David Hildenbrand , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= , Richard Henderson , "Edgar E. Iglesias" , Liu Zhiwei , Nicholas Piggin , Daniel Henrique Barboza , qemu-riscv@nongnu.org, manos.pitsidianakis@linaro.org, Palmer Dabbelt , Anthony PERARD , kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini , Paolo Bonzini , Weiwei Li , Pierrick Bouvier Subject: [PATCH v5 14/17] include/exec/memory: extract devend_big_endian from devend_memop Date: Fri, 14 Mar 2025 10:31:36 -0700 Message-Id: <20250314173139.2122904-15-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> References: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x629.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 we'll use it in system/memory.c. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- include/exec/memory.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index 069021ac3ff..70177304a92 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -3138,16 +3138,22 @@ address_space_write_cached(MemoryRegionCache *cache, hwaddr addr, MemTxResult address_space_set(AddressSpace *as, hwaddr addr, uint8_t c, hwaddr len, MemTxAttrs attrs); -/* enum device_endian to MemOp. */ -static inline MemOp devend_memop(enum device_endian end) +/* returns true if end is big endian. */ +static inline bool devend_big_endian(enum device_endian end) { QEMU_BUILD_BUG_ON(DEVICE_HOST_ENDIAN != DEVICE_LITTLE_ENDIAN && DEVICE_HOST_ENDIAN != DEVICE_BIG_ENDIAN); - bool big_endian = (end == DEVICE_NATIVE_ENDIAN - ? target_words_bigendian() - : end == DEVICE_BIG_ENDIAN); - return big_endian ? MO_BE : MO_LE; + if (end == DEVICE_NATIVE_ENDIAN) { + return target_words_bigendian(); + } + return end == DEVICE_BIG_ENDIAN; +} + +/* enum device_endian to MemOp. */ +static inline MemOp devend_memop(enum device_endian end) +{ + return devend_big_endian(end) ? MO_BE : MO_LE; } /* From patchwork Fri Mar 14 17:31:37 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 873467 Delivered-To: patch@linaro.org Received: by 2002:a5d:4308:0:b0:38f:210b:807b with SMTP id h8csp837704wrq; Fri, 14 Mar 2025 10:37:33 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXjm7nd/JPnXLewMfeqa/Vt2tVRwq/MzTVAIC/X58N7XyXPdb4QetzXEnePuWrqCiqIM6HpmQ==@linaro.org X-Google-Smtp-Source: AGHT+IGfXuRo35v/g1RCeajitJGOXH4hPIXQI0BNvelL4V7NemXchFNT79W3j+J+Aqz7xk/YxS+8 X-Received: by 2002:a05:620a:1a22:b0:7c5:3cf6:782b with SMTP id af79cd13be357-7c57c930ccamr513644285a.54.1741973852760; Fri, 14 Mar 2025 10:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1741973852; cv=none; d=google.com; s=arc-20240605; b=CelMs93u4trW8wyPnTkWPBIHWiCqj4WL5dQq3au5bDISyCxiXBxeUFqJHLUaFD4JMl siTOFTftYXIhheYMCi84H9KCQxeHKkG5Uan40u+exF8T7hdb4BUR02I3RX5razCZhBWW yZGN0i91MS68kTsu3zilDs9IgFixAKs7TZP7DFAiCllImmaTCWGFBPn0/76t5lX7UkhA 4n6UDx/qlIgLS9fVFEEZ+LENqHk/JXju680IToFuYMF/TZI0r6ygG7GT76s6fkKf2xeT YY4jRchYD0lj3oR5qKlzRgy1T0PR+lrNILsp0RQuXjqhy/ShrNWgzLr6pRH1vFbZEhHq IxGA== 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=ipPAyCMNYKQgJ+e1Pj22cNEjWMul6XXi9iVGdQZJ7Rc=; fh=1okYn/R2grs/obLcH/MB7/qs9S9nHlecEB/w1J23kko=; b=kQhlsNi26S8ne6MeKdBvLPTdNHIW1q77zNmq2YP31oRBtzdac2v5x98UzIevaZ+0Ej AqxwJSwJ3Fm7xOOocBsgswSE+kizPQEUnmDcndnWadn4mLmfN5zdsijLnDy1Hx8YcZ8Q ZD4f0eF/hwopMuW8kEiWlH7nw2PYELxZeLoX/Qdyk+4HYHsDNFWE6TyJU4uF+Yl+shHk A1XgO25KgKayw9HlUmYluxj3GoiRs4C3EgStENJpvDTBr+MQEPEDBqudZj3P6fbD+dDf lssSNpUvBMMfuqLC2OMEJc4RKlW7OqFxly48pOhcsuAx7LipV34bNXKyuOxWxr2tZCi0 ml8w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xYpxq0h+; 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-7c573caa3dbsi406765185a.280.2025.03.14.10.37.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Mar 2025 10:37:32 -0700 (PDT) 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=xYpxq0h+; 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 1tt8tw-00064g-22; Fri, 14 Mar 2025 13:32:52 -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 1tt8tI-0005fQ-Ce for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:16 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tt8tD-0008JC-SK for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:10 -0400 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-224100e9a5cso48995405ad.2 for ; Fri, 14 Mar 2025 10:32:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741973522; x=1742578322; 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=ipPAyCMNYKQgJ+e1Pj22cNEjWMul6XXi9iVGdQZJ7Rc=; b=xYpxq0h+ebVTHIFOxqOTni3MZq7i51vLM/Fq6xr3oB+lL5j6gnulNtIi1/nvoTA+9L i+Em+bU1uCB9SlekJRhF9tJNn/5re4+HcwBYSPFnIvHjGdniWSqe2fu9cTTJBnh/Eoss YkifVC3c22qadqgAgxnrIEqIqvJ4H5ATUuDWuN5wzDD0FBMaZw2yPFHX01s7BMDYD6f+ aaUTA0yEgiwFyQzkZIFrP0b+NjO7ptPndqxtYaQItgxs7tD7WvSnA6EimTOJTIhfVb3E fUMz2ut3DMhpipXVn9f7Fo5mo16C9hm/5V1lJxquceMMG04WUKl+WhxBMP/NPKhN3Byz /EHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741973522; x=1742578322; 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=ipPAyCMNYKQgJ+e1Pj22cNEjWMul6XXi9iVGdQZJ7Rc=; b=RJy8gnZxJzqgPaHFbhpHTLTAAPO7HxeDT2vP6FLxpi2L7lKY+nMfdCNhX5vLBwrFf8 CzO5yAhU9uwt6/Gfmc5L64K+8XIJslb9AdpIDDIUgNjsnnrnR0OSbnaCkG6SPGTu6j7W utXaIQqSu9GBzYUl1ik0qLWrkSJyyApgGuxu27GeLZYYtaj9G9NyaYOz4OmDWYv6Qorq gYWoEl2vULRup03jvKTmlR9U2gW56DJwWxP8pyPJqr1eHje7Lh4uPY9Wht3zqxSh1Mpp 2pPC6vxuMjudHAtuhit/lyM3aWkSHo9b5Q095501pPri9vrWhOzLoSj2A2EOIyZS1dJd a7wQ== X-Gm-Message-State: AOJu0Yyt1+H83e0CXnV7pPirf7V6U6J71aBWr5Ud1YZ4DjozOzkyk3O5 Bx+FMUK5iCEuhr6ciaSx4T3v+ZE3MKFXKxHU/1Xyeb7VYlnJ4aCa82cd4AGPdLqsQt4cOhYDB4E x63c= X-Gm-Gg: ASbGnctNZd2VS1/6pZYchf4uApvrGmMQtuRcTJOiFPY3X/2/oBtQfRQHpI+/tSO0CGd uu5QqmhBeu5RdRfXoxKGwF7MLeq/kNVH/1v6VJYMPtYGrMuvI13Br67fILbeF/wUDSVz809TDZw 8746EAAvaTfkKE2rRv8QjbEDQJ6Y9lJ4Lpss3dLDKXLDTctUdM+rD7q0BrkbiqqLgv9cHCA3Pfx mo98qTamX2n8zy934YhitM/0wZ7DoLEkqK6ne29IxNuIGpTfuTNUOG9oQ7cLAxaM8iT9vIwx0ee ViEVQEHnp4DRGGhVMp6oP/XH1eepIOXEM8hd3rpZ1f/6 X-Received: by 2002:a05:6a21:6d88:b0:1f5:7873:3053 with SMTP id adf61e73a8af0-1f5c12ec5b1mr4773946637.29.1741973522470; Fri, 14 Mar 2025 10:32:02 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-af56e9cd03bsm2990529a12.8.2025.03.14.10.32.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 10:32:02 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Yoshinori Sato , Paul Durrant , Peter Xu , alex.bennee@linaro.org, Harsh Prateek Bora , David Hildenbrand , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= , Richard Henderson , "Edgar E. Iglesias" , Liu Zhiwei , Nicholas Piggin , Daniel Henrique Barboza , qemu-riscv@nongnu.org, manos.pitsidianakis@linaro.org, Palmer Dabbelt , Anthony PERARD , kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini , Paolo Bonzini , Weiwei Li , Pierrick Bouvier Subject: [PATCH v5 15/17] include/exec/memory: move devend functions to memory-internal.h Date: Fri, 14 Mar 2025 10:31:37 -0700 Message-Id: <20250314173139.2122904-16-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> References: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62b.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 Only system/physmem.c and system/memory.c use those functions, so we can move then to internal header. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Reviewed-by: Philippe Mathieu-Daudé --- include/exec/memory-internal.h | 19 +++++++++++++++++++ include/exec/memory.h | 18 ------------------ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/include/exec/memory-internal.h b/include/exec/memory-internal.h index b729f3b25ad..c75178a3d6b 100644 --- a/include/exec/memory-internal.h +++ b/include/exec/memory-internal.h @@ -43,5 +43,24 @@ void address_space_dispatch_free(AddressSpaceDispatch *d); void mtree_print_dispatch(struct AddressSpaceDispatch *d, MemoryRegion *root); + +/* returns true if end is big endian. */ +static inline bool devend_big_endian(enum device_endian end) +{ + QEMU_BUILD_BUG_ON(DEVICE_HOST_ENDIAN != DEVICE_LITTLE_ENDIAN && + DEVICE_HOST_ENDIAN != DEVICE_BIG_ENDIAN); + + if (end == DEVICE_NATIVE_ENDIAN) { + return target_words_bigendian(); + } + return end == DEVICE_BIG_ENDIAN; +} + +/* enum device_endian to MemOp. */ +static inline MemOp devend_memop(enum device_endian end) +{ + return devend_big_endian(end) ? MO_BE : MO_LE; +} + #endif #endif diff --git a/include/exec/memory.h b/include/exec/memory.h index 70177304a92..a3bb0542bf6 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -3138,24 +3138,6 @@ address_space_write_cached(MemoryRegionCache *cache, hwaddr addr, MemTxResult address_space_set(AddressSpace *as, hwaddr addr, uint8_t c, hwaddr len, MemTxAttrs attrs); -/* returns true if end is big endian. */ -static inline bool devend_big_endian(enum device_endian end) -{ - QEMU_BUILD_BUG_ON(DEVICE_HOST_ENDIAN != DEVICE_LITTLE_ENDIAN && - DEVICE_HOST_ENDIAN != DEVICE_BIG_ENDIAN); - - if (end == DEVICE_NATIVE_ENDIAN) { - return target_words_bigendian(); - } - return end == DEVICE_BIG_ENDIAN; -} - -/* enum device_endian to MemOp. */ -static inline MemOp devend_memop(enum device_endian end) -{ - return devend_big_endian(end) ? MO_BE : MO_LE; -} - /* * Inhibit technologies that require discarding of pages in RAM blocks, e.g., * to manage the actual amount of memory consumed by the VM (then, the memory From patchwork Fri Mar 14 17:31:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 873469 Delivered-To: patch@linaro.org Received: by 2002:a5d:4308:0:b0:38f:210b:807b with SMTP id h8csp838544wrq; Fri, 14 Mar 2025 10:39:38 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUT+SQQWbU/5pMKv507FL/dlgc5zUvWvy4As7EvsBOxerSAY1CKmjHgJp9+sruLv0F9Ql6jXg==@linaro.org X-Google-Smtp-Source: AGHT+IGrsRg0leXwVkRz64xoL8Zjms5LqSVpENpwHaJLBYn0NG9L45Wl/D7/24nFuC4cCubeJygz X-Received: by 2002:a05:620a:1a88:b0:7b6:d7be:2e4 with SMTP id af79cd13be357-7c5738c349amr1095465785a.26.1741973977876; Fri, 14 Mar 2025 10:39:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1741973977; cv=none; d=google.com; s=arc-20240605; b=ZP+64Zv91HTIpVMDVSL+bwL/JtQaGIsSoipf9MT+l4LnkOI66J3Nmw6ZJdVynNKimK pnqnZTNLhWYVy/uvB7SFywK7aNbYEHrTZXjQd3Brj5aavEBaAG0+VKebYiwjxGFNxmko GqtmzfgvLPFJgpupw72zl/tQVfqqPD5bUfaN1kLk/wPzx92HSlMvLJ9EdygVnTt9H78k ICys0eFjaSsmxDnLJCW/AXNQKn26WlRIosplZlPn2mWzziJoSsGGQ9/y2edvMpmfLzrr pRV6i788hytmr9dJB/xJ5xe0R9PbuJPS1FUi1JuSzynjQM+ClY9PdQaJC3jvHy59lqBu RBMA== 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=EBRugwqnxw4q7Phz2P050i5IjB6Zbf1WGwdoEilqtkY=; fh=1okYn/R2grs/obLcH/MB7/qs9S9nHlecEB/w1J23kko=; b=DiA9aAkVGWbAB+wROBkPzDbopmugDAOM/3eudqNYGUXBY19yFWP5v7/tKekWMKrjks WV1AxXQpKBtg23TA4PSc7fM5ju1a3qoEZZJ7EmTx0E9nl9HExpjbdx9AnQYGq7eXVDWS Xp/gGl/84IHF9Fk56LuEUwmGthtSY5zg9u2WXyY3Q92urQLEE61622tH2FRocNG/x0Dz HztVL1L5azm7vET3IKsQuskE9Xr/IoL+PBw/fr+7Jz3DGOOCkaePG2JLJYp/yrZt13u0 fP3sOmlH1c/dFZyWIJuWNcj42k0CJya8AaDwikcfJeCZnLLeTtWQ3578QAWLmlinlTpO oYUQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="bq/hioWF"; 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-7c573ce9720si406014785a.329.2025.03.14.10.39.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Mar 2025 10:39:37 -0700 (PDT) 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="bq/hioWF"; 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 1tt8tu-00063G-IT; Fri, 14 Mar 2025 13:32:50 -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 1tt8tL-0005gW-9L for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:16 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tt8tF-0008JT-E5 for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:14 -0400 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-225df540edcso18254665ad.0 for ; Fri, 14 Mar 2025 10:32:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741973524; x=1742578324; 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=EBRugwqnxw4q7Phz2P050i5IjB6Zbf1WGwdoEilqtkY=; b=bq/hioWF6BlpZB8kw8QqycHbjAXtdCj5BaYZo6e3k5D3JcMCaMdBNPAhlLh9uT3jDG RuUaiiKvnOg9JOgbGcLU0TDLoeEPHYXtNlFx+JRsHyAYfpFlI3s3C2fgvt5ItCj7bEcg 9XKJuOF9cxcdt5qYt2bwfl+c7hwU3ryCMhRbsISzlcvdNkRpnSL1TQ83YMtVYB5HFh9F hoxZZWMDW1R618UFlR8xkT4MkOV0KfFma5d0AZz+Rq9BcH2TX6LguNJ3DVEg3DdUFzEG J6vEVGWVL6AO/4Z0gYQVITCgIHwS2xwVbQrNdF/QKNUWvmibQZz2lhqomL4l6SNzCGUC hb4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741973524; x=1742578324; 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=EBRugwqnxw4q7Phz2P050i5IjB6Zbf1WGwdoEilqtkY=; b=n4thnmdXFa/OzN+U07s8CZJ9Pxm94avCKEi7sBfSyKInVtcCJs4KjnC0r7BLe0NA// qizUqjxmiXgi9YotS7q6ipyKT+LS6i7QlTLUzBbQYX1mCqP0nIONKPhv3wxkY73CyrRO YrshyjagjWj0Q4qZFlV5LkA+rDHwWSYehj+vG9X1V9U3tDl3hLROm2U1RO73mwm8FtgT iQQyXbmerlEg6tG8d0hcheVi2iSjWrFcmHL4jlMNp90VODPErL5FS1mZ/57e7jEw/qHR InLRKQ2vFXWhRbJtCqPUgjPm8fmLblLtv6awf1GUreez1u0hChhSixIZKljl8Utoia63 v3xg== X-Gm-Message-State: AOJu0Yz2iDgzhwGSxUOfbykH5OkxNVV5BM1QTFlSI36hTTn2NrfcGApd DOlUdKbdWDFwO6/4eJ4Pu6yqm/xvHm/MvanpBTBubCgMmZp6iyPzOUPKBmEw/5fvKAxxOQxczve fKuo= X-Gm-Gg: ASbGncto5i4Xgx1WU3q45CsFwrPrtXW1xsv8JRahcxpAaFaCwb0+z0D+E6PV/LJw6FT 2SmfX/++AptpPqLpME0qipXFpIwAULwZ0pF2mT9EBbbn5etrpQeF6ovaCXDnuHXVFjT151OMIpl gKAHQfOaXjHjCEGa2LqTD7/75PvW7MhOHInQp6jwAZdP1KxWvxJFcBQmQvfjm5t+eCJ/THGqeu9 qovkUTfYp/qJIM7k+SOQbuQ7I7EYz9V6rQy2BwdIvqDG3xjWSp410kd/tVcP/WbxDtGM4Vpl1XH 9aH7lglH6ue/FCHT5DIIVdH/dYx3WkbFm26UtyOihepQ3kuWgapFeRU= X-Received: by 2002:a05:6a21:1583:b0:1e1:a449:ff71 with SMTP id adf61e73a8af0-1f5c279ef94mr4638551637.1.1741973523678; Fri, 14 Mar 2025 10:32:03 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-af56e9cd03bsm2990529a12.8.2025.03.14.10.32.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 10:32:03 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Yoshinori Sato , Paul Durrant , Peter Xu , alex.bennee@linaro.org, Harsh Prateek Bora , David Hildenbrand , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= , Richard Henderson , "Edgar E. Iglesias" , Liu Zhiwei , Nicholas Piggin , Daniel Henrique Barboza , qemu-riscv@nongnu.org, manos.pitsidianakis@linaro.org, Palmer Dabbelt , Anthony PERARD , kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini , Paolo Bonzini , Weiwei Li , Pierrick Bouvier Subject: [PATCH v5 16/17] system/memory: make compilation unit common Date: Fri, 14 Mar 2025 10:31:38 -0700 Message-Id: <20250314173139.2122904-17-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> References: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x636.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 Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- system/memory.c | 17 +++++------------ system/meson.build | 2 +- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/system/memory.c b/system/memory.c index 4c829793a0a..eddd21a6cdb 100644 --- a/system/memory.c +++ b/system/memory.c @@ -353,15 +353,6 @@ static void flatview_simplify(FlatView *view) } } -static bool memory_region_big_endian(MemoryRegion *mr) -{ -#if TARGET_BIG_ENDIAN - return mr->ops->endianness != DEVICE_LITTLE_ENDIAN; -#else - return mr->ops->endianness == DEVICE_BIG_ENDIAN; -#endif -} - static void adjust_endianness(MemoryRegion *mr, uint64_t *data, MemOp op) { if ((op & MO_BSWAP) != devend_memop(mr->ops->endianness)) { @@ -563,7 +554,7 @@ static MemTxResult access_with_adjusted_size(hwaddr addr, /* FIXME: support unaligned access? */ access_size = MAX(MIN(size, access_size_max), access_size_min); access_mask = MAKE_64BIT_MASK(0, access_size * 8); - if (memory_region_big_endian(mr)) { + if (devend_big_endian(mr->ops->endianness)) { for (i = 0; i < size; i += access_size) { r |= access_fn(mr, addr + i, value, access_size, (size - access_size - i) * 8, access_mask, attrs); @@ -2584,7 +2575,8 @@ void memory_region_add_eventfd(MemoryRegion *mr, unsigned i; if (size) { - adjust_endianness(mr, &mrfd.data, size_memop(size) | MO_TE); + MemOp mop = (target_words_bigendian() ? MO_BE : MO_LE) | size_memop(size); + adjust_endianness(mr, &mrfd.data, mop); } memory_region_transaction_begin(); for (i = 0; i < mr->ioeventfd_nb; ++i) { @@ -2619,7 +2611,8 @@ void memory_region_del_eventfd(MemoryRegion *mr, unsigned i; if (size) { - adjust_endianness(mr, &mrfd.data, size_memop(size) | MO_TE); + MemOp mop = (target_words_bigendian() ? MO_BE : MO_LE) | size_memop(size); + adjust_endianness(mr, &mrfd.data, mop); } memory_region_transaction_begin(); for (i = 0; i < mr->ioeventfd_nb; ++i) { diff --git a/system/meson.build b/system/meson.build index bd82ef132e7..4f44b78df31 100644 --- a/system/meson.build +++ b/system/meson.build @@ -2,7 +2,6 @@ specific_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_true: [files( 'arch_init.c', 'ioport.c', 'globals-target.c', - 'memory.c', )]) system_ss.add(files( @@ -15,6 +14,7 @@ system_ss.add(files( 'dma-helpers.c', 'globals.c', 'memory_mapping.c', + 'memory.c', 'physmem.c', 'qdev-monitor.c', 'qtest.c', From patchwork Fri Mar 14 17:31:39 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 873461 Delivered-To: patch@linaro.org Received: by 2002:a5d:4308:0:b0:38f:210b:807b with SMTP id h8csp836078wrq; Fri, 14 Mar 2025 10:33:47 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVlau9UMA/aQrKpi9w1Hkvo8860uVlB/viC+fcm2UGPdpCELUQ7KWxxjSCcgwSMTZ1saSy1bQ==@linaro.org X-Google-Smtp-Source: AGHT+IFtjtpn3XZf1gLKWXhrj5aufblFrDuqwvOEPOjTlXjTh3WmAxrXhd9Muyuj+yzBXLoupGuw X-Received: by 2002:ac8:5806:0:b0:476:98d6:1419 with SMTP id d75a77b69052e-476c8146c2bmr42817131cf.30.1741973627303; Fri, 14 Mar 2025 10:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1741973627; cv=none; d=google.com; s=arc-20240605; b=DCg4Kq3GCSTofrYCXwJsi4UPPPL4fsxOJhW3YLJgDQeIEyCmw5LmRW38wNUFE4tTVd pWO9wYicOIeAvWsC+yhZzaca18W+COm7ROELplsxc1z2jz2W9074aF0TCtKg0PXLhjri jztMMKHG480ra/TevCi0ZmSbaFLvazN1/VghBEuUz11lOAI2utzWIdzWL0+sIhjnNo09 Gh0eR63uO3EhaVo8xU7/QPH1LBvfELIXGuYRhfalxkHHd2GTCUUFCNvA44NduAtiEMe+ feJi2ooUJ1KOtELZFr1PIaIVCUgiMABeNn2fEA/7I26DvEj3oHtz33k4NgQgW5smDyCG qx2Q== 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=pdsNHldr91xnqdGHk1DTLXuYnmkD/cCe/HKmA2EoKL4=; fh=1okYn/R2grs/obLcH/MB7/qs9S9nHlecEB/w1J23kko=; b=jmtSUp3KsqORgRkDWgNs793GotFPOPGwtZ10FlD/L60rxaEWJYUY/11hjMslYv0h31 /PP5sS8y4f82c8LBqpbQdWs5wxZEOaKk4dNrhHLbxaTbjtE34XzTMxU7Rv8VofkfC+ck CPVd4hSxWIiWlZaCaOJfducCDcnxlBRkWp1hbnLt8/nCxqlYFqaiQmAfWP/t/NNrEr4q TfMgnwZ63IVQn+OHGSkgq6XXQrW8hEbIT8ZX73TSWnzrcqwBDhNAE5sge+VvHt5Ohhtc 5+HvxBvBULfYHzlqmFrKi+fWfnQIbVnjjKJhP1TRIeV+JKpTi+z8VAgU889g7PlzOjmN XKyw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o0TsBlHv; 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 d75a77b69052e-476bb81a5basi42907731cf.386.2025.03.14.10.33.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Mar 2025 10:33:47 -0700 (PDT) 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=o0TsBlHv; 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 1tt8uI-0006X3-Rw; Fri, 14 Mar 2025 13:33:15 -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 1tt8tI-0005fs-Q0 for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:16 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tt8tF-0008Jj-19 for qemu-devel@nongnu.org; Fri, 14 Mar 2025 13:32:12 -0400 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-219f8263ae0so42502505ad.0 for ; Fri, 14 Mar 2025 10:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741973525; x=1742578325; 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=pdsNHldr91xnqdGHk1DTLXuYnmkD/cCe/HKmA2EoKL4=; b=o0TsBlHvwzPry7dZIYBB3/tKrBPkA7Ip6AGgpw4DSKNlQHzaP33D1IE4bMMxdgunbE B2Q25p2kCZ/nrs1vAxfSmIziSaUFerD6z8YZWZf/+LICU2IqZMTqCpdCCqQFMTfQD3aC h/scudom0yreY/ubpMqpBndAnObPEhYLwV43uJR1DMqbnUqGYXkOZ1dgMLKmRbC1PG+Y M4SL8SX5Db9nt6oIBaFMG+1+VHFHh22PUMkwKXZkXva4v9h9Y5tgNYuOYOw/et4By5sZ TEjNrc313mc25N/WBE5SU2NiUxb8mBj6LfxHUjox82uZfAdGQs3Qa0AZyk8HVqi9mo5S iMcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741973525; x=1742578325; 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=pdsNHldr91xnqdGHk1DTLXuYnmkD/cCe/HKmA2EoKL4=; b=lomcgqmBFRk7w2vRL9HFetNSE9Z0lGxlvGU0F/fDD4Z3XWYGhnms2/ZrpkMZervCej +3sax8ti6zb6bdtMFuX8nrpHuxNtd6ne4T+xiQp7iWJWbIOiKz8NFy8kcuaFvEIYbvbF 6BupUO4r9S++I4uwR9Q9eltCGn+CsesfljoVbklbMhu4/uAj6ELLehd0UbEnOJ2j9/4x yTcmlYR4KwsWzceTiY+eb/t0G7dD/yXhaM5mCZEImykdpYniVA+pk1ISmOR9qwKkVAcp ymBHgbltmX3p4qgQT9ggnkL6YFrtw7W9nXmZeRMZQLlGExzg3O4Zt12UOFKklGfHLJrY 9qsw== X-Gm-Message-State: AOJu0YxgtayIUGC04CJhXeUdVQbhOvJ/AUiQQdx2NrVO/mtgSUJD8F9N kZGyY2VDzJJ7u1acOZrFKFUkJIE9g1SqAV8czTVNJxKiMMC1V2NLELi4sLiO/xizrNAqp40jM3Z E9MY= X-Gm-Gg: ASbGncvvSbj64I3HzVSh/nfeH0oKl9huFD08vI9fTp6M2XaoKQRfjWXdiDR8brolQkr /QaiJYYGYkhFS9Cp9KWw/JQtNgczUGTgWlYQbv/bQy0WHfWAScjV5k0CLnSDjsTwSVGyuhvz+7I yLDKf+L1KURA9Wy/BJ5/+wv2Fj+iZBVOxkhvbnv0CQS+Z8hxPV7Ow1+8cble5cU6b3loaxoWFmc EK8F3nkOsZbC3ER2jH6qqZywNCQJOga+A3rT7MPypNW0kkGxvDo+NSoTWEezbj7Lt63QDKWoi0Z Lop7pAORuX5PE8JSYLuQ3NHHa1lHys/oJDqr67/CjUsJ X-Received: by 2002:a05:6a21:1f81:b0:1f5:75a9:5257 with SMTP id adf61e73a8af0-1f5c1174fd0mr5240657637.13.1741973524846; Fri, 14 Mar 2025 10:32:04 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-af56e9cd03bsm2990529a12.8.2025.03.14.10.32.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Mar 2025 10:32:04 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Yoshinori Sato , Paul Durrant , Peter Xu , alex.bennee@linaro.org, Harsh Prateek Bora , David Hildenbrand , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= , Richard Henderson , "Edgar E. Iglesias" , Liu Zhiwei , Nicholas Piggin , Daniel Henrique Barboza , qemu-riscv@nongnu.org, manos.pitsidianakis@linaro.org, Palmer Dabbelt , Anthony PERARD , kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini , Paolo Bonzini , Weiwei Li , Pierrick Bouvier Subject: [PATCH v5 17/17] system/ioport: make compilation unit common Date: Fri, 14 Mar 2025 10:31:39 -0700 Message-Id: <20250314173139.2122904-18-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> References: <20250314173139.2122904-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62e.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 Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- system/ioport.c | 1 - system/meson.build | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/system/ioport.c b/system/ioport.c index 55c2a752396..89daae9d602 100644 --- a/system/ioport.c +++ b/system/ioport.c @@ -26,7 +26,6 @@ */ #include "qemu/osdep.h" -#include "cpu.h" #include "exec/ioport.h" #include "exec/memory.h" #include "exec/address-spaces.h" diff --git a/system/meson.build b/system/meson.build index 4f44b78df31..063301c3ad0 100644 --- a/system/meson.build +++ b/system/meson.build @@ -1,6 +1,5 @@ specific_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_true: [files( 'arch_init.c', - 'ioport.c', 'globals-target.c', )]) @@ -13,6 +12,7 @@ system_ss.add(files( 'dirtylimit.c', 'dma-helpers.c', 'globals.c', + 'ioport.c', 'memory_mapping.c', 'memory.c', 'physmem.c',