From nobody Thu Oct 16 01:45:16 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=1753475026; cv=none; d=zohomail.com; s=zohoarc; b=ZbxhjxfzFMUYHj09ZsdUB3jA0bwGy4yUdyhERue1T3FFO1l+xp98BqvqlgsedvdDqF8LB0mqnq4XO8oO0CMPev7x/LcQMnSE2ORomuNq5gx7f6wuyKHP/qixnzDJR/vaSSEqMN5N5+XPer5BRRelqxsCcLzTOb8YGhVZz54PIdo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753475026; 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=4E8h6PUuy46iYtWk/kPGPrLRfA5dKcU3GTa22nF6Dz0=; b=iyCT8H/sUF5YrEAqLMd4rmmdz8Py5ptw4PiKYnhBuqhJEKcIie62Y63vasnM0RUjRzO34CdSIjW0e3dl1+77sRYu+/maLOoEaqces6Y1TXbYbAfi+a0EDL4oM5uT1vCu5Qm9jmH7rCPyxB2/HIGFvoAtf/uCujAyKMhufDz5h64= 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 1753475026709356.07822414405723; Fri, 25 Jul 2025 13:23:46 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufOwN-0000xR-91; Fri, 25 Jul 2025 16:22:51 -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 1ufOrO-0005s3-6i for qemu-devel@nongnu.org; Fri, 25 Jul 2025 16:17:55 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufOrM-0000pN-2r for qemu-devel@nongnu.org; Fri, 25 Jul 2025 16:17:41 -0400 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-7490acf57b9so1875762b3a.2 for ; Fri, 25 Jul 2025 13:17:39 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-76408c023absm383611b3a.38.2025.07.25.13.17.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 13:17:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753474658; x=1754079458; 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=4E8h6PUuy46iYtWk/kPGPrLRfA5dKcU3GTa22nF6Dz0=; b=C3zImqqCyUnoIGbhrWXiEZ1jiRfgk+pOlD9Izqm6Grae7tr/uUho+Hslg+QvabMXRa LXk+Qs9f1Rjix7mUkvz/L34WdjXEadpPHFYdMeyJ78kjhHPsSQSDI//Ww4pR7n0hS1t+ 8jNPYNYEZjQajsboz8rgcXQAoGK6jkGC2RGs/eQzuoBPcwYOrv/K450xtBZ3JiKCa0+u 23g93dUNJkAw3Op0SMfeBW6PghmbBQDpkJmZAMlpOhoelmtxFq1gNiq1TnzrYbc3KLMY +tgelWz1ujxRXwVFeeFYyE/QlvA3u6eL5hQHexmouBtnUlN18aETx7aY4+Uh/GpcwbK0 Mbdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753474658; x=1754079458; 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=4E8h6PUuy46iYtWk/kPGPrLRfA5dKcU3GTa22nF6Dz0=; b=QqTBTu3hOyrKT3kdkdd7jHk/++Yk+42hl6XaOlBThnX3YFDgnh78ixrC7arPAzmtUl D2OQj96fFRca55691lXT5zpXeAGhk+/M6zLCbqwiuIwGMi4Hr2UUwxVjkyQvD7EqEwyZ qw8do26GxY1wcDnWLU6qW01ONf/IR81gMZV7fT0GDBLjbcs4WYf+4vIFX1svLVcsIugZ sPOUdIgOen+iLQFNnhK3gBVb/8m8th9P3zq4P3+Tod5fHOsILqykkBq+6+tXw1d0UQMB 4fsoEyscEjFFWIcE2XpmR0ixkxjngZ7zh1v3qFbSN19w9FMflX+Yimrjk2i6Se9+PkiE Iqmg== X-Gm-Message-State: AOJu0YyJkWR+EUuONuqei6H14W2+UGRDrVcVwHZsfIKpKiS8WAnyjaYq BT6deIGSzsVafB3lW3k2WFSH02ICd2NakiX+Oe+WwLg9M3aH8TOD3o5iGZpNkZ28hultTzLk+DN 5Hknh X-Gm-Gg: ASbGncsoekuA/6jj3tbdTOf2gwKuAhBKhfVB8C16le1wbXlj5lnegDMw5ZhoMRXoYhl RCT17XJGsHAS0iDFUWCN4ASN0DKwV/3fiU15PxkNJQvukpFuKFP91RR2OscbEit43r2PhsPbv6r Xt7MEYldtoKL64zqCm2cmJTr6BgIUlAGLc4yrguIznJMDPDTnheeeGlfoxLcQwaIRlvittFoikw R/IZhZkAHY4+MUmIFFMjA3Y3H/HSoMW3SMdTtD9CN8VLce0fLuRJwMnv685q4h8SCf8mU5xL2OQ 0p0feqhryIoaQ/VPMhC8dU3lzJ2DxYFVcn2ypiMws1fgVdL1kwqi91ipOXQQbyTZHtxYZ5cs2WQ TVC9wzQyO5Gg3m5LTMnmmYA== X-Google-Smtp-Source: AGHT+IFN+s2lu3GbMNOFf+FIWoUvMiLEKIpWxBQKMonySfwzXEC99bc6ALS3Re9XSESfnqsEUcsAIA== X-Received: by 2002:a05:6a00:14ce:b0:736:4d05:2e2e with SMTP id d2e1a72fcca58-76335985230mr4853238b3a.6.1753474658312; Fri, 25 Jul 2025 13:17:38 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Xu , Fabiano Rosas , Pierrick Bouvier Subject: [PATCH 1/3] migration: compile migration/ram.c once Date: Fri, 25 Jul 2025 13:17:27 -0700 Message-ID: <20250725201729.17100-2-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725201729.17100-1-pierrick.bouvier@linaro.org> References: <20250725201729.17100-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::42e; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42e.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: 1753475028176116600 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pierrick Bouvier Acked-by: Fabiano Rosas Reviewed-by: Peter Xu 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 9aa48b290e2..36fb950b3b1 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', - 'target.c')) + if_true: files('target.c')) --=20 2.47.2 From nobody Thu Oct 16 01:45:16 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=1753474951; cv=none; d=zohomail.com; s=zohoarc; b=ibMCr7BuTTrybFAyeXoDSTKN4wys5YFRMtu+6s61RefDzQvgFNNvKfeOLsUUhoWD+9KHSFy8XQn00OSsWrxnHbLVfvSaFZOspL/SjRyg1wrTEygbtq/zHppjohIdtNm0IWtDHiPQUtD8VH4hX36CttLKIfVgDkm6649iW1pdVSI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753474951; 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=d5tkjtMzBOBR6USVMTtNoVzWl8Jjj5UpHbw8uOgchWo=; b=L1oKXCcDnIjI57wTp+SLDyW1a+uwNnKKvoh/07qf87Fo4eAk/o/MkBiUd7Olv6D3EwdnbJgdcUt7Okk0Reob5EJOo7I5470EIAKrMUmG7uCoA/QC+PThq8YYO1IIkFY9SFw8tGqakl3lXDkUoXPbZyuXEU6hbP9N+L3t+iJl28Q= 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 1753474951418386.6409839570143; Fri, 25 Jul 2025 13:22:31 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufOvJ-0008Vm-2R; Fri, 25 Jul 2025 16:21: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 1ufOrO-0005s9-F2 for qemu-devel@nongnu.org; Fri, 25 Jul 2025 16:17:55 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufOrM-0000pT-Iz for qemu-devel@nongnu.org; Fri, 25 Jul 2025 16:17:42 -0400 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-74801bc6dc5so2500432b3a.1 for ; Fri, 25 Jul 2025 13:17:40 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-76408c023absm383611b3a.38.2025.07.25.13.17.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 13:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753474659; x=1754079459; 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=d5tkjtMzBOBR6USVMTtNoVzWl8Jjj5UpHbw8uOgchWo=; b=BWe1xxu3aTFe+bOnbTAmJAsWPVDrALMi31eU677UH9GE6+uvDdxeKGj2Ob6qDMPDfm SqOz3/8sxqYlKiKGCW8DtOZg0ABVr3fyVOnen+Tg+L4PFy1FEYoZb7hBO4Q6+74cJU1m sT3c4JoMbfZK/k51cUqFzq518T6RoMs9h6NRxutuxqjKXoq7K1/ltEZPeE6ovINyjBJP naVi7rcnkrRQl+FQnb1bbtLXYNOehCmZGWdO6nN8clinZFmWlY+SfM+WY7wcOiStvf0Y JdjiPQqQytEuoo0Kogy83IPBKoFUOejw6cPEmOb4HDSAfl/2bfm3e2dg32EmBf+cgoov MOKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753474659; x=1754079459; 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=d5tkjtMzBOBR6USVMTtNoVzWl8Jjj5UpHbw8uOgchWo=; b=ViX7CF1ABHsMKAUsD9jvnYnrMWH8TyBd/9fNBbHpZx/N38eT5CRf/Xoza/ZzKqjW/Q edmqhbTOgHIZbp8qY2R622r+mvkIuOJ/3NO3PSqbK895JEn+Dw24hcXI9HmCLWA/PFnw J9JeIHgIKZQA8hsd5wqVyQhic0EKXtsebyULuFgfIsNsJ9Y2t1jUjAyp5EjgMvbNCZdG 2/UEgavk8fk414psK0FVwI+nZ8OQsq4u8rHW9xTuYSpfFcDl6JU1+VyWqyrQg2iqoG0h RHp0k+Lwp3BVyN1wy6jUnHJ7Oi/hvmkTCs3tYv6L3oWzzDWGkMks2nllEv3WYX7/Egmt duBw== X-Gm-Message-State: AOJu0YyQUqpjsCDg/Blgbkmp/X+3HS2su60m0VnSX9xZUCfkq0mHbWlH s8Zuoea3awsBs6+1iZbGf2FZCYRfDYO6VsEyzxpDGyR9aF0nuCCvujbyZEoxwoY1hnLB8Za+9AP +i3U6 X-Gm-Gg: ASbGncsajpJjdMVJDoQJ6Qk2zEjpez6yPHks1iktwLe+ES7MltQa253KpIitGUIvF3d bnNtPcFLBP35Q2t6oxArhQupGMCqtl+i/vp+4M2J9FNlRVNHQ15oprIHkJDq1QIj6Fz+4KZMfSm Un186GSCNvTyHuXOOFm8t8asYvThHGNUX77jy+ddg3pNBlL7Obsby1YQJF+z5FxhEQYXOiLOhLU X9X7I6fW/N3Usqo7FlCL4BwmxNaahkVKD82d/udLrt86TfsYblhYpg6HmYyZywY20gC5p+1MCPW KvyyvW90SqKxKvSeS2XNpqKD2s6XrDg3QRdUR9vmA7CZNogaWKFW3bEwj8eEboNTKHCbualOEFJ MOGGUQOzZtdWDusvI1QLV4g== X-Google-Smtp-Source: AGHT+IHoXYj+0uQYOAbsELszkFweTzTJZgp1vu5sY9XyPFM5HhHmmEtIqVExzj5LtH/0HnT5hHuM6g== X-Received: by 2002:a05:6a20:7d8b:b0:238:351a:f960 with SMTP id adf61e73a8af0-23d6e3b90d0mr5556271637.23.1753474659080; Fri, 25 Jul 2025 13:17:39 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Xu , Fabiano Rosas , Pierrick Bouvier Subject: [PATCH 2/3] migration: rename target.c to vfio.c Date: Fri, 25 Jul 2025 13:17:28 -0700 Message-ID: <20250725201729.17100-3-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725201729.17100-1-pierrick.bouvier@linaro.org> References: <20250725201729.17100-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::429; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x429.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: 1753474953770116600 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pierrick Bouvier Acked-by: Fabiano Rosas Reviewed-by: Peter Xu Reviewed-by: Richard Henderson --- migration/{target.c =3D> vfio.c} | 2 +- migration/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename migration/{target.c =3D> vfio.c} (90%) diff --git a/migration/target.c b/migration/vfio.c similarity index 90% rename from migration/target.c rename to migration/vfio.c index 12fd399f0c5..0b64e49ef06 100644 --- a/migration/target.c +++ b/migration/vfio.c @@ -1,5 +1,5 @@ /* - * QEMU live migration - functions that need to be compiled target-specific + * QEMU live migration - VFIO * * This work is licensed under the terms of the GNU GPL, version 2 * or (at your option) any later version. diff --git a/migration/meson.build b/migration/meson.build index 36fb950b3b1..45e9445f97d 100644 --- a/migration/meson.build +++ b/migration/meson.build @@ -51,4 +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('target.c')) + if_true: files('vfio.c')) --=20 2.47.2 From nobody Thu Oct 16 01:45:16 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=1753474969; cv=none; d=zohomail.com; s=zohoarc; b=hCA0cRzBsLIyRJxCSz01+j02i2436pVMfUN8H2EOUp9Q6GooJJNS+FQ4aNvHanr2gtcwUub/1X7psyoa+Ve1tnYSly7b7Amm+x/lVD7yeWMEUfzsusxGZ6Fd3M19kOlupPpw0zlJCKvKKZ407pdtx0oad3+oSRvu8s8HY5LC5ts= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753474969; 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=FD4Gd1pna1IUWe5RbcA+2/xdxsAuojInLMOC0axkExY=; b=YjA6bsgXJVpxmPexVvkoW0FPuzSNy8Ec51AWAmR4Y/9PX8vSIsUemFrxaknHPrdVngEtPsgPzwK4b9mUzGpUP6Lir6+nmd7ihW84/pnD9WcClCjp/rzHOMNpk9iNADLpXtlf0Iy1BofbDA+3bxeENYrY3N6//03Tmw99UEjloII= 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 1753474968964658.2693332995149; Fri, 25 Jul 2025 13:22:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufOwB-0000fO-UG; Fri, 25 Jul 2025 16:22:39 -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 1ufOrP-0005sM-9k for qemu-devel@nongnu.org; Fri, 25 Jul 2025 16:17:55 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufOrN-0000pa-Cy for qemu-devel@nongnu.org; Fri, 25 Jul 2025 16:17:43 -0400 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-74801bc6dc5so2500443b3a.1 for ; Fri, 25 Jul 2025 13:17:41 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-76408c023absm383611b3a.38.2025.07.25.13.17.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 13:17:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753474660; x=1754079460; 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=FD4Gd1pna1IUWe5RbcA+2/xdxsAuojInLMOC0axkExY=; b=UJoHjZPAvCnPiq+K/5hAc3Nmqct8XI9Cygcl8nVEY9BjQjw1I7OhSfKkGXc1vp+x7u h1uFORQMLjtDvzUt7bxJeDXmulQVmVOtFXnHAV8tC/3qw63fGgmD2lxh2sqhl3uFJUz9 krNgtCKAawRCZBG1IzgQRDB0P7iZjz8SkFR7hwjXF3CpK4rwYFUoVCMkNFWKaTW9YqTR x1PjjygENat2QXAJ8pTWaNzRROrJQ24WYhzg33MjnVqlKqlqNJKHk7DRCRWnTiAKiUnu Oia24I+0gSalhZ/L6tQoj076UyHPIXXnEd55AFLAhNe/mR6I3DJyT3WB8fqWWsHEbm8S 4eoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753474660; x=1754079460; 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=FD4Gd1pna1IUWe5RbcA+2/xdxsAuojInLMOC0axkExY=; b=VGETf0aao3AKYZI4F8G6iJhzZbTEy4PiSE/MyhSy2Opk4t+KG52Q0yS736RgnQSuaD PoST/L2o3MAT/OfBwgEqtNMLj8kCWw49ip4zZB2A/tbnGm084snO7zo0wfmvJrclcYWz p02jR8Df/6MS622Xwoa69O5IgkS4nh2L3aNvtJkRmXPEi/H6euIkkYVOIqcUpn6+ILLc kxlU3Tywie2mrjJM6Uj/CruEILxRBy3SpeDcFnvaUULwFcZZb76rwWwHTlh8fJJBE3X6 UPsXVvY2+LEv7dfJU9AbTUNYUOW+8OTB/610pf2NU/K8WQw1WOQYosDt0RXLRsg+ZMUD HoUw== X-Gm-Message-State: AOJu0YybjPrQQMYfnKYDHQSeVCkNEYNzZYpaBClfNZ5liVjcrzBqCNQd oDVOlUWdRAPDT4u9np/P6oJkxJHVU9mVo/Mr3i3wViK+UdeJ/VFQi3nveNQ5Y7q8v/ONfTv5sQ4 PUto1 X-Gm-Gg: ASbGncuc+WVYbH56rOPCFnAoi2dZRQNOo/nco8H7dd3HGUl8C+a2nCMBYnT8yceloep 2m6EANAf8ziAY5fvNXH85swkpbQzd99LC0F/7LRRqYWVpE1dsF9txI+vLp0bUttPAGfDy+Jbzww cN7yvOR9sjyLOywSVUjB0/9Io1bIUXeNHDM9lQM+ggoMjpv6YVQgQ7plqk+Fgv4j8xDo1aJLEZ0 xuyC7Z0Nxh6lxFPXcLE3hCISp39F42BPq0j+vs4LgqQfM9JvW2wUQmJ2xNh896lc4IFP/pJKG/g cLVJOyMlrLOZvpROsLehIsif4nYh3OUvxiJ4H68UKVw8GZGftS1a8r8ogYjZH37jIG1V005Qsqd anyAYCEupG1ZlAgjislAGGA== X-Google-Smtp-Source: AGHT+IGfOxZILnpU+tCZ2Rr1XNUJ9qeEDY/fUHRVSEZNZESPsVM38cQ+swdd6igJzV9d9X1jJ/A32g== X-Received: by 2002:a05:6a00:a884:b0:746:2217:5863 with SMTP id d2e1a72fcca58-761ef312a8cmr9432005b3a.6.1753474659867; Fri, 25 Jul 2025 13:17:39 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Xu , Fabiano Rosas , Pierrick Bouvier Subject: [PATCH 3/3] migration/vfio: compile only once Date: Fri, 25 Jul 2025 13:17:29 -0700 Message-ID: <20250725201729.17100-4-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725201729.17100-1-pierrick.bouvier@linaro.org> References: <20250725201729.17100-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::42d; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42d.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: 1753474969793116600 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pierrick Bouvier Acked-by: Fabiano Rosas Reviewed-by: Peter Xu 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