From nobody Thu Oct 16 02:16:36 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1753913163; cv=none; d=zohomail.com; s=zohoarc; b=iClP8XrwJhtq5P5EJr85mgGE7f93kHUblFNWN8TWymyjUC1jOrOyeAiXo4XEmr6xjMvrkVGaK37gWAGNTsU0jRpw8Tbz8ZS1BkCxdU9KtjVkP7wntOS0TUdvSmh+pC3hT9O/PDk0xLdoMCFw78lzWH+LYHTJ8dMKgF27Vdz5gVo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753913163; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=RdL6k55SoWveZonLf24zRcrVCA47JiVVO5GLV1IfSFg=; b=ULOkPhBMEWP7B1Rcbzxub0kYx1kP+4Mcmx7TkzSoe52coabpJVDAgocji6qcu3ZIGOka4xFoMLZ7AfnwX5oswZDbm/3tnVj4P/5IYSD3ZH0d+hpbU0dUNcK+YSitPks/8AK3F/vr203wi6Wcf6NkWyoSaxO6A+i/w6k3E2Lql1w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1753913163788964.3944679066386; Wed, 30 Jul 2025 15:06:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uhEvE-0007U3-2y; Wed, 30 Jul 2025 18:05:16 -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 1uhEup-0007IH-1y for qemu-devel@nongnu.org; Wed, 30 Jul 2025 18:04:51 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uhEun-00020P-8z for qemu-devel@nongnu.org; Wed, 30 Jul 2025 18:04:50 -0400 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-23ffa7b3b30so3926485ad.1 for ; Wed, 30 Jul 2025 15:04:48 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-241d1f0e757sm1095645ad.55.2025.07.30.15.04.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jul 2025 15:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753913087; x=1754517887; 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=RdL6k55SoWveZonLf24zRcrVCA47JiVVO5GLV1IfSFg=; b=F/56mBx4yGM1reWzr0I1aX1OPx0p4O/VmKRXW+/1Zp9Al1FprAG17T44b9nb6mNwEt GcpQecI338n1Kun6arlhKw1Z4/wQryp8lnsPaxv/FhFwIumw4z15beoRED0F3bX+/WIp qPUqc6KdOwgsJGdfDvt0H2i/TaL7XAW4KAczrOgqhFoL2j2c91P8AZGjNanxJ2ZBsfRt fCEgFFMTgaD7rHOZmxPLHddJegwZOexTSXGx9lWPK2ZLsmPSyUzzOLv6vyt/U6HkuMnD 0Ya1frgh0FwhZ1snzcus88ZRTBERKYRrgBRzOtIO1hrkAhuYwo+uTGx3sruqqsmXHoCM DG9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753913087; x=1754517887; 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=RdL6k55SoWveZonLf24zRcrVCA47JiVVO5GLV1IfSFg=; b=Auy91M31/ftieR6e9qZihA44ilPM3K8V2lY4hseT6o56L8EYr6jW5pUzmHd8QHtlgu Ai2RRnFWrqLfD6brRpTRgzy1xKdmXMpfR28j28jDbHbEdbnjVvYFCeEmJVylT+DZAq9C 40fLUwttExAySAySIa6hMZGJB1xjpXCqpGpr7YzYM5W5VkYLXwAmqguxaAOYlgjfl3Kz pvaVjylGM8jYm8OkEU+Jb4Ti6RVeuAJ7reV+6t8ePnWl4fWA3oeBSbA7gnRDzsJbUKnt S+nPf2gGhmgCARS12L1dOYmvD98m69VrewxCfxo7Bdz6WsmuivBC2ZbeXnO5Z7cZaKZl Ai4w== X-Gm-Message-State: AOJu0YzdvZeaKYleqmNPoKRJBpchWSd5LhIsOzNYUHhR0K1N+CPb9ncV rcfmnKBNgpMLcDwOmXsqi+JUps82jwO+7VoYs3k7DA3TdWmHlN+ZAyIoFaURkmrVpJeojN/998a eRwpF X-Gm-Gg: ASbGncsJ3b8O6Sigy++JIm2w7fEPlRt+479QcdJfGx36UUKAS0F8FK5yXHxpz7kqWJt WazRsF/lvtbjCO7YRmEGq63r/cU6ii/bD6fJot2+CUEc6iJT3dmyalSaEekxdfF4kVAXvqN/9zO gGH737xlioBOVQlOOPvmXyZACgsA26zHnkrNg+fnR+1lTmYN6rFEfTHvF5lv5/SbxV2jGu0erdg MajETEd2lNoxThZ3Ai0IgXehv3RmBpLgJ945D/HTOKyUKMXHnujJ63lBnvO17J0nngey3ku/EaA oBu+88ShSAsMtMY/Kep8aQRqNy2EwFWC4cb9hElaC/HQwhsozhecmcIfoaemS8onEwn5eJDU2KF lEJFStd2Lxdej927bn+ARUodeteC+qoPJ X-Google-Smtp-Source: AGHT+IHaO2zchrNrjLawYAfnAt+w3/KvHgsmhkNd0gOoFQHzYRdaoagOyknHv8x8g4kLjwQ4nrTxYw== X-Received: by 2002:a17:903:228b:b0:240:7753:3bff with SMTP id d9443c01a7336-24096afe547mr72641595ad.30.1753913087372; Wed, 30 Jul 2025 15:04:47 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Peter Xu , philmd@linaro.org, Fabiano Rosas , Pierrick Bouvier Subject: [PATCH v2 1/2] migration: compile migration/ram.c once Date: Wed, 30 Jul 2025 15:04:34 -0700 Message-ID: <20250730220435.1139101-2-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250730220435.1139101-1-pierrick.bouvier@linaro.org> References: <20250730220435.1139101-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62f.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753913165521116600 Content-Type: text/plain; charset="utf-8" Acked-by: Fabiano Rosas Reviewed-by: Peter Xu Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- migration/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migration/meson.build b/migration/meson.build index 276da3be5a3..45e9445f97d 100644 --- a/migration/meson.build +++ b/migration/meson.build @@ -31,6 +31,7 @@ system_ss.add(files( 'multifd-zero-page.c', 'options.c', 'postcopy-ram.c', + 'ram.c', 'savevm.c', 'socket.c', 'tls.c', @@ -50,5 +51,4 @@ system_ss.add(when: uadk, if_true: files('multifd-uadk.c'= )) system_ss.add(when: qatzip, if_true: files('multifd-qatzip.c')) =20 specific_ss.add(when: 'CONFIG_SYSTEM_ONLY', - if_true: files('ram.c', - 'vfio.c')) + if_true: files('vfio.c')) --=20 2.47.2 From nobody Thu Oct 16 02:16:36 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1753913160; cv=none; d=zohomail.com; s=zohoarc; b=jerjxCMRSjzcJ8X4irUMPSJGzGrag4QD9rvX3+52eRLt5GAZRYUouwnzkVbZ1fpMVTPmSuJmFIxo440vvaPUArjEzG+CvsgJ9LoiVJphHgASbSnYTdb5dJkm1EsKHChSRO8Ms6WQ1iILzetv8qyTPkUkOrJYWSmTYIcAxB38mLU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753913160; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=V6X1CoA2MgT2UDXjHtgYe1Dd844yiDM2yHYqoaWtzog=; b=fZAIWL1h1rJkc4E6BLZFTkd13kMBkLvZNX2CVd32exCMuHZ4Rl8yhCTdmQ+HPViz/EZMwt13fePB9DhQ+KDf+9l1+8uzseNK/9jC2zZ4NMjrC0KZUNdJ/pOWKtZw3rtHwsjhyu76Tc1RMzlujtLc7DJNyHI8eDVe2n3lEWXYkeo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1753913160862510.74207127705347; Wed, 30 Jul 2025 15:06:00 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uhEvP-0007tw-PC; Wed, 30 Jul 2025 18:05:27 -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 1uhEuq-0007Kb-LR for qemu-devel@nongnu.org; Wed, 30 Jul 2025 18:04:52 -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 1uhEun-00020m-Pm for qemu-devel@nongnu.org; Wed, 30 Jul 2025 18:04:52 -0400 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-23fd3fe0d81so3324515ad.3 for ; Wed, 30 Jul 2025 15:04:49 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-241d1f0e757sm1095645ad.55.2025.07.30.15.04.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jul 2025 15:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753913088; x=1754517888; 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=V6X1CoA2MgT2UDXjHtgYe1Dd844yiDM2yHYqoaWtzog=; b=Vxoev6Yuvj8l13PYBU9bpD3sgueG/jJNCVT9LaE+UMwQ2dBrMhJg+sXBfh/K0J1jJC 04ar8Z8K1EoYtIJ5TG3hH3okvllJ7umLGl8WTIRm8vbu9rTdsEwUdNEq7XNaSxiVS+FP P0Dl0ea6Mh9JpzYgf0FJUeJuDm1UgelM2O1X71Pxa2e7vViEl+KsIUs5WE43PWUGE9VT ShNuH6jb+5xg2YRys55a8AqWFuUZ/vV1PB75EO6PvcaH/Psi6NDOBwCqmrmLgL8B43b5 Z8LcXEjYUZhVNz4cnmlHt8xFrdZilF8LKnKn2v6DeCgJFO3fxpCdCdITG3p7nahJ67sM lz2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753913088; x=1754517888; 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=V6X1CoA2MgT2UDXjHtgYe1Dd844yiDM2yHYqoaWtzog=; b=h68tyvOyMa2SkmP7dDiBMaLpKBKA7SuSa1YbGnpLX5qdVObcPUbb9F3JuQLGLAxL91 okVlQRolRg9BijXaPm0MjE9Wc6p5mYCJcn9BUy6RUkdwbxhRTv5Qvdcce6ok09mmJrsA RkSwFDSArBgE2OYd5DYPjQv8f+CUl8eQcMmPHv0Rhmfng3NLzqE7uFmJa+h3bUYCr2jU qDBw+ZusrU2KTuyDkVfU5Vns1WnMV2xJyQjR7//oO8JhT3YCTAMEF94eEpdcMH87lOG8 yqsWaHnJlqV82Vej43YsPUaYsWqjp7IgdeBbRlFPqADG+6eocmIggy7GE2RGTEOLcfzq 6HrQ== X-Gm-Message-State: AOJu0Yx/KlsDPOJXf6wujKjqNSf99sQBjZmAAZj5UxXDaNDKBrSmOqJj JNHNXiUzaMKVg1cJs/ONm0FFIdAXjgtiq24ZpbulaZ5dorfjc+QcUqJtzN33+gfijXISBg2BWyl f1RQG X-Gm-Gg: ASbGncvUin2GvOOIJLz4HhdUIV74avYmNtk+hfB7hkavVzfpq26uBb5FHvk46WbOTUZ kpeiWJoOLaCQO7KaR9IP8COQDUobI+jzpN7lQ6+h4ndVYCBBOQMza2TJrK0mQomyq7GuFLJ/1tk q/nUPfqJ/3beYOeKNlep3sDIhkqogdxVaSxnghuunUsMIbet/rIQga9Nw9hlJRnIV2BZYvkK5L+ Avj4XQWXQqq/eqOn09yLf2IJbh8Sr8td6nE6A/F+J+uCyDUnxq0IQXaSVS/8Gse18Qy5HJZl2z6 //d+HUJM6n4B3ocoPjN69MhGD3y3/OPMnSak9MAbEZjSH2q7brPcWxgIR6TDw5Z9NmZE9+6O0af AXToaAcjSlql2BZdDXNJlWDb18WfNpj3b X-Google-Smtp-Source: AGHT+IGqCd1xW1yq8SvtX26K5x9DAetlgToaZJXlxbmoNQXf9DBgGPSaEqTOuI6NbYAGmBENgb4q/w== X-Received: by 2002:a17:903:3c70:b0:240:2145:e53b with SMTP id d9443c01a7336-24096a72c1cmr72214325ad.9.1753913088177; Wed, 30 Jul 2025 15:04:48 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Peter Xu , philmd@linaro.org, Fabiano Rosas , Pierrick Bouvier Subject: [PATCH v2 2/2] migration/vfio: compile only once Date: Wed, 30 Jul 2025 15:04:35 -0700 Message-ID: <20250730220435.1139101-3-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250730220435.1139101-1-pierrick.bouvier@linaro.org> References: <20250730220435.1139101-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=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=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753913163649116600 Content-Type: text/plain; charset="utf-8" Acked-by: Fabiano Rosas Reviewed-by: Peter Xu Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- migration/vfio-stub.c | 16 ++++++++++++++++ migration/vfio.c | 14 -------------- migration/meson.build | 6 +++--- 3 files changed, 19 insertions(+), 17 deletions(-) create mode 100644 migration/vfio-stub.c diff --git a/migration/vfio-stub.c b/migration/vfio-stub.c new file mode 100644 index 00000000000..f59ebe075dc --- /dev/null +++ b/migration/vfio-stub.c @@ -0,0 +1,16 @@ +/* + * QEMU live migration - stubs for VFIO + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "qemu/osdep.h" +#include "migration.h" + +void migration_populate_vfio_info(MigrationInfo *info) +{ +} + +void migration_reset_vfio_bytes_transferred(void) +{ +} diff --git a/migration/vfio.c b/migration/vfio.c index 0b64e49ef06..af6ae2c1e19 100644 --- a/migration/vfio.c +++ b/migration/vfio.c @@ -8,13 +8,8 @@ #include "qemu/osdep.h" #include "qapi/qapi-types-migration.h" #include "migration.h" -#include CONFIG_DEVICES - -#ifdef CONFIG_VFIO #include "hw/vfio/vfio-migration.h" -#endif =20 -#ifdef CONFIG_VFIO void migration_populate_vfio_info(MigrationInfo *info) { if (vfio_migration_active()) { @@ -27,12 +22,3 @@ void migration_reset_vfio_bytes_transferred(void) { vfio_migration_reset_bytes_transferred(); } -#else -void migration_populate_vfio_info(MigrationInfo *info) -{ -} - -void migration_reset_vfio_bytes_transferred(void) -{ -} -#endif diff --git a/migration/meson.build b/migration/meson.build index 45e9445f97d..0f71544a825 100644 --- a/migration/meson.build +++ b/migration/meson.build @@ -49,6 +49,6 @@ system_ss.add(when: zstd, if_true: files('multifd-zstd.c'= )) system_ss.add(when: qpl, if_true: files('multifd-qpl.c')) system_ss.add(when: uadk, if_true: files('multifd-uadk.c')) system_ss.add(when: qatzip, if_true: files('multifd-qatzip.c')) - -specific_ss.add(when: 'CONFIG_SYSTEM_ONLY', - if_true: files('vfio.c')) +system_ss.add(when: 'CONFIG_VFIO', + if_true: files('vfio.c'), + if_false: files('vfio-stub.c')) --=20 2.47.2