From nobody Sat Nov 15 23:38:12 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1746204178; cv=none; d=zohomail.com; s=zohoarc; b=T/W0VXTqA3JxMioz06qCd7QXX81AXRVdywc6zdpFzmi+0aH61ZKuDFKOdntMFo3tPhlleCr4O4uO7XWOkXZ/h4a8ak/RqveCYSzhJ5nhpor4HGlAHPe5oeI1eTBozONYS6/ggkLQwx4f08tKBvuRZNNJ0M5DsoMRPf/dsGCBWsQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1746204178; 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=A91K2f2iEcFS5/0lCkwRRzKMl7iUbP8Kzhy9MSsjHe0=; b=YaEX7YpKcVv425m1Qb3jfsoqrVpYZ1IWoBgsgZAtEEAeZqvK1Ggoz8GP+Ihd/mi7VLzBag5kZLpc3p2JwMTrVrrNRzU0+ezwLunVWtd+qEypWv+mEcWq8yf5C7YhiuYMQL97MxLoIxlti9rjojnu/0hsRRtttNUWL5mjuwIrcPk= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1746204178867222.64216585414613; Fri, 2 May 2025 09:42:58 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uAtSc-0007mZ-Bh; Fri, 02 May 2025 12:42:02 -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 1uAtSZ-0007lf-Qv for qemu-devel@nongnu.org; Fri, 02 May 2025 12:42:00 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uAtSY-0006SV-7z for qemu-devel@nongnu.org; Fri, 02 May 2025 12:41:59 -0400 Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-214-KXbdbyu2MaeOIb_9feuGFQ-1; Fri, 02 May 2025 12:41:56 -0400 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-7c0a3ff7e81so395722385a.3 for ; Fri, 02 May 2025 09:41:56 -0700 (PDT) Received: from x1.com ([85.131.185.92]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7cad23d1c8dsm203108385a.60.2025.05.02.09.41.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 May 2025 09:41:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1746204117; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A91K2f2iEcFS5/0lCkwRRzKMl7iUbP8Kzhy9MSsjHe0=; b=aZ5Hw3NQS3QyNWUFedF++b7tcgi4y5usCG0IZYhm+jyCYK0Tr3ufue8tfqsXIQdVZNNPQZ Hy9rkirmP/2i6aWesZg+remo+hAF7PDoPhXAxulg1QpNhXfDoEqe+8SUtKD6pV8M3Q4OuG JiGFFrh4c2xwatuXnV8KNQdYMdshyIY= X-MC-Unique: KXbdbyu2MaeOIb_9feuGFQ-1 X-Mimecast-MFC-AGG-ID: KXbdbyu2MaeOIb_9feuGFQ_1746204116 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746204115; x=1746808915; 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=A91K2f2iEcFS5/0lCkwRRzKMl7iUbP8Kzhy9MSsjHe0=; b=aFJlo/PcUqEbclYrP7ot4E8CM4G2Nw1XPRAE2x+p1t9CzOZ4oNtEkAuW7KmBeHB3sV LXTk6037sx5ehO2G5Mo0umGjk2dkgzt/j0m8AoCO7fLe4V9lGU56I5Cnslt5eaz+BMKh 5t8IZo2a+SUQVZMvT+1KsAt2Ad/guRrf1W9ZOH9Cdrir7yp3M0nhSV+qcKTTjUc2e5jn 1Kt2MsjDnH17zU05z/NyDoY4KbKb6K5mUYnWl5LDOBitfoHqHQ+DdQMcEEW2W4u51WYl 4slwMFU2lrSipV32Gs1VOgnYZyMSwuw6/fo92AxTYDmhzThIbRvl3Gx5AkNCDoBq6Ui3 239g== X-Gm-Message-State: AOJu0YwhIv8q/8bB8Xxe6y92j+Rxo2AOg1YTNGOmX9yj7tztHEmVB936 xd38Tfof6j8OprfNEN0cXCneJa2JuGYxGBrzbcBAhzyCwugLEduUE467s1CwJQ1V7S813jzRVot mvgnbLLHe7elURQsm55DxJV+CJnvyu4NtI1PLU0KBPc0hE1D//HGk1DSchDHwA4P3GnG94GJltj YmRHBlQ3YN4IPVhNrd3eSIQAleu3imx+T4Tw== X-Gm-Gg: ASbGncvh2Bci29RKjFTpFkEh/1L3C8Ko7uBeTfTsZ3fw4Ny+eQuzEaLSYWI0zGIwJIM 43AO1iQRHoyb3VUHsyZ6VgPpZIKnytA7AOVSb7fnB8k+h6B6VheFmAEA+b5Av4W5cSZIGTHphJt vtbQYPbafx5BDSY4Q9xD6hygefD4DRTZIzejZEUjTZ77AO8lE3SAYNeMkyFHlJTUr0d9ELfJb8G z2OQYrIgNe4dErGWhhl1bMzorMpHIWHcDpqncTwsjFOPbolbBP6lfhQPMV458SeKLZAB34Mwb5t X-Received: by 2002:a05:620a:4414:b0:7c9:253d:f226 with SMTP id af79cd13be357-7cad5bb7addmr518421885a.51.1746204115443; Fri, 02 May 2025 09:41:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGy0By6NYhfxhE4SizeIlhGDnryvdseEzbnAy9Cu+7NL8RfFPfLMpwGjKsefrnoOa+2SHMg+w== X-Received: by 2002:a05:620a:4414:b0:7c9:253d:f226 with SMTP id af79cd13be357-7cad5bb7addmr518418185a.51.1746204115122; Fri, 02 May 2025 09:41:55 -0700 (PDT) From: Peter Xu To: qemu-devel@nongnu.org Cc: Fabiano Rosas , Stefan Hajnoczi , peterx@redhat.com, Prasad Pandit Subject: [PULL 07/14] migration/multifd: move macros to multifd header Date: Fri, 2 May 2025 12:41:34 -0400 Message-ID: <20250502164141.747202-8-peterx@redhat.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250502164141.747202-1-peterx@redhat.com> References: <20250502164141.747202-1-peterx@redhat.com> 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=170.10.133.124; envelope-from=peterx@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.644, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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 @redhat.com) X-ZM-MESSAGEID: 1746204179825116600 Content-Type: text/plain; charset="utf-8" From: Prasad Pandit Move MULTIFD_ macros to the header file so that they are accessible from other source files. Reviewed-by: Fabiano Rosas Signed-off-by: Prasad Pandit Reviewed-by: Peter Xu Message-ID: <20250411114534.3370816-2-ppandit@redhat.com> Signed-off-by: Fabiano Rosas --- migration/multifd.h | 5 +++++ migration/multifd.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/migration/multifd.h b/migration/multifd.h index 2d337e7b3b..9b6d81e7ed 100644 --- a/migration/multifd.h +++ b/migration/multifd.h @@ -49,6 +49,11 @@ bool multifd_queue_page(RAMBlock *block, ram_addr_t offs= et); bool multifd_recv(void); MultiFDRecvData *multifd_get_recv_data(void); =20 +/* Multiple fd's */ + +#define MULTIFD_MAGIC 0x11223344U +#define MULTIFD_VERSION 1 + /* Multifd Compression flags */ #define MULTIFD_FLAG_SYNC (1 << 0) =20 diff --git a/migration/multifd.c b/migration/multifd.c index 86c83e43c0..ec108af624 100644 --- a/migration/multifd.c +++ b/migration/multifd.c @@ -36,11 +36,6 @@ #include "io/channel-socket.h" #include "yank_functions.h" =20 -/* Multiple fd's */ - -#define MULTIFD_MAGIC 0x11223344U -#define MULTIFD_VERSION 1 - typedef struct { uint32_t magic; uint32_t version; --=20 2.48.1