From nobody Fri Apr 4 03:30:57 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=1742306988; cv=none; d=zohomail.com; s=zohoarc; b=mXSjXxn3WJF0wJP2h9v2DfvensB7u6KPEUiN7b3o/O0qoRIrgoBhlKoRY2l7A8ZXCcQJVq34mE9fAsc5EEeJh3L9S+JtchtQcdULo7dqz/i+Y0aRmWWPQdGfd5ncGMiAAz7XE/RH3qvu0IyoPYyKMtfvZnurOWZXYF5sfAzbR74= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742306988; 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=lbfxP3jjC8UrxJyTZ+GaVBR0Y8K+IXepORN0PpIWmOo=; b=BukgzdvGTUIuuwx7RbWmSELEjSZ5E/Sxs5QpHBRochJ9/03O2L0KKrTrKPcEGYC5QGcIdTzoCXWHIC71IlpMqc9hRYTVF/f8y6q2XSHy5Sm74te+8vkCaY6sjzC9avUtPTnNtSTu+5ixvn/3rptFto1gGqVXRg5nl7GPwt0PSXE= 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 1742306988198734.129811926249; Tue, 18 Mar 2025 07:09:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tuWER-0002ha-TW; Tue, 18 Mar 2025 08:39: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 1tuWDx-0002Pg-JQ for qemu-devel@nongnu.org; Tue, 18 Mar 2025 08:39:20 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tuWDu-0007Eg-6v for qemu-devel@nongnu.org; Tue, 18 Mar 2025 08:39:12 -0400 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-441-YkgTfX2iNBCIDj5vucJW1g-1; Tue, 18 Mar 2025 08:39:05 -0400 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DCFC919560AF; Tue, 18 Mar 2025 12:39:03 +0000 (UTC) Received: from kaapi.redhat.com (unknown [10.74.16.234]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 40F001801764; Tue, 18 Mar 2025 12:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1742301549; 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=lbfxP3jjC8UrxJyTZ+GaVBR0Y8K+IXepORN0PpIWmOo=; b=acv93UHf4cV+oQqvghrZ/70aDLP4YGega6z1eSbQy4iQiLXeEbEfz4a9Ihg44HtTJKJBWn xZ8o2YKS0sIJN35+SCP5p8TKyGOkaANy6U8Lnp4nnwi94lCyIn9VD9UCOYtIMwBLq/OMMu YCKzxRynfncTiUbkxNvWDteGFKoxDFU= X-MC-Unique: YkgTfX2iNBCIDj5vucJW1g-1 X-Mimecast-MFC-AGG-ID: YkgTfX2iNBCIDj5vucJW1g_1742301544 From: Prasad Pandit To: qemu-devel@nongnu.org Cc: peterx@redhat.com, farosas@suse.de, berrange@redhat.com, Prasad Pandit Subject: [PATCH v8 1/7] migration/multifd: move macros to multifd header Date: Tue, 18 Mar 2025 18:08:40 +0530 Message-ID: <20250318123846.1370312-2-ppandit@redhat.com> In-Reply-To: <20250318123846.1370312-1-ppandit@redhat.com> References: <20250318123846.1370312-1-ppandit@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 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.129.124; envelope-from=ppandit@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.332, 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_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_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: 1742306990849019100 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 --- migration/multifd.c | 5 ----- migration/multifd.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) v7: no change - https://lore.kernel.org/qemu-devel/20250228121749.553184-1-ppandit@redhat= .com/T/#t diff --git a/migration/multifd.c b/migration/multifd.c index dfb5189f0e..6139cabe44 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; 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 --=20 2.48.1