From nobody Mon Apr 29 14:54:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1559008180; cv=none; d=zoho.com; s=zohoarc; b=N2ebOo/+/tnwA9Ea3qEX4K1RMmni50UrLFDOKj6KqjQCAqSYRDc2h/wkcvUH/zV4MAnk5V1yAPoQtLTqVvENqa9yD1k+frjfvTrt5HqlPz8hiLW8IDyu2uDMjE7QFMi7/Tlo2FwrSkhgk3DlC1UrqC+YK0DrT+8baA1q9tnvdOs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559008180; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=7cbBcSPCPNX24XxL1FhDGj5+mKCkN5e1+TKoz9MKSR8=; b=KuHkHFpgRL4jIujWtq8QNx7V7MuaUX2X6MeSDtuGx+zAoSVz4jpVtkuT8USGMtfLIhadnAOHpbopS1oahbE4i/nATgr48iy/SiiDv/7Y2COkcelN/E+N2tVFAJyIy0Vb9OWVfL6YDpGfYvSdjbPtdo7cLDwX/J35C5WIfFk0ZOI= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1559008180881704.9682771387772; Mon, 27 May 2019 18:49:40 -0700 (PDT) Received: from localhost ([127.0.0.1]:55604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVRF3-0001so-3g for importer@patchew.org; Mon, 27 May 2019 21:49:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVRDP-0000zO-9g for qemu-devel@nongnu.org; Mon, 27 May 2019 21:47:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVRDO-0003aL-Da for qemu-devel@nongnu.org; Mon, 27 May 2019 21:47:47 -0400 Received: from mga11.intel.com ([192.55.52.93]:31236) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVRDO-0003YP-6W for qemu-devel@nongnu.org; Mon, 27 May 2019 21:47:46 -0400 Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 May 2019 18:47:45 -0700 Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by orsmga006.jf.intel.com with ESMTP; 27 May 2019 18:47:44 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 From: Wei Yang To: qemu-devel@nongnu.org Date: Tue, 28 May 2019 09:47:00 +0800 Message-Id: <20190528014703.21030-2-richardw.yang@linux.intel.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190528014703.21030-1-richardw.yang@linux.intel.com> References: <20190528014703.21030-1-richardw.yang@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.55.52.93 Subject: [Qemu-devel] [PATCH 1/4] migration: multifd_save_setup always return 0 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wei Yang , dgilbert@redhat.com, quintela@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Signed-off-by: Wei Yang --- migration/migration.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index d0a0f68f11..3aae4f2734 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -3336,12 +3336,7 @@ void migrate_fd_connect(MigrationState *s, Error *er= ror_in) return; } =20 - if (multifd_save_setup() !=3D 0) { - migrate_set_state(&s->state, MIGRATION_STATUS_SETUP, - MIGRATION_STATUS_FAILED); - migrate_fd_cleanup(s); - return; - } + multifd_save_setup(); qemu_thread_create(&s->thread, "live_migration", migration_thread, s, QEMU_THREAD_JOINABLE); s->migration_thread_running =3D true; --=20 2.19.1 From nobody Mon Apr 29 14:54:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1559008181; cv=none; d=zoho.com; s=zohoarc; b=cBzpCpAe0IwvEg8JpbhY8rWC0Kp0x2jOh6Irsxywt65OPdTZwBLNkIjGIOPYNA+4h9oQ5GWYP6WL+0QPbLbmJaPd9UOdW5HUs0E7t/fFrRqze5MynDTgBHiytNSOs8h0f8fSzqAelB0T7ZnWvHS5j7+qYzbKVqvXJd9MaCSHC1E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559008181; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=huNt7lAK+2Sw6VZJub9vavNJJqiAZ4jbksZpLqMCZvw=; b=oHsYer+x1tKJWUg0uJqNd39s0DxX+b/v+V2krJXwJA5qnLszRSmKvd7/1V3Y6akwxlF113UQqzyzt/ujKsXTV38EEmDDnp4jO8kauVXtNiEFTpYMyxvasdCxHMjHdH9VgvA7NyCEzurcqXhFf71R4I+DotV+738eLwCVQBDiS50= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1559008181294208.5705490198592; Mon, 27 May 2019 18:49:41 -0700 (PDT) Received: from localhost ([127.0.0.1]:55602 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVRF3-0001si-82 for importer@patchew.org; Mon, 27 May 2019 21:49:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVRDR-000108-8L for qemu-devel@nongnu.org; Mon, 27 May 2019 21:47:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVRDQ-0003c8-GO for qemu-devel@nongnu.org; Mon, 27 May 2019 21:47:49 -0400 Received: from mga11.intel.com ([192.55.52.93]:31236) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVRDQ-0003YP-9X for qemu-devel@nongnu.org; Mon, 27 May 2019 21:47:48 -0400 Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 May 2019 18:47:47 -0700 Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by orsmga006.jf.intel.com with ESMTP; 27 May 2019 18:47:46 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 From: Wei Yang To: qemu-devel@nongnu.org Date: Tue, 28 May 2019 09:47:01 +0800 Message-Id: <20190528014703.21030-3-richardw.yang@linux.intel.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190528014703.21030-1-richardw.yang@linux.intel.com> References: <20190528014703.21030-1-richardw.yang@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.55.52.93 Subject: [Qemu-devel] [PATCH 2/4] migration/ram.c: use same type in MultiFDPages_t to define offsest X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wei Yang , dgilbert@redhat.com, quintela@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" MultiFDPacket_t.offset is allocated to store MultiFDPages_t.offset. It would be better to use the same type. Signed-off-by: Wei Yang --- migration/ram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/ram.c b/migration/ram.c index 4c60869226..dcf4c54eb5 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -607,7 +607,7 @@ typedef struct { uint64_t packet_num; uint64_t unused[4]; /* Reserved for future use */ char ramblock[256]; - uint64_t offset[]; + ram_addr_t offset[]; } __attribute__((packed)) MultiFDPacket_t; =20 typedef struct { --=20 2.19.1 From nobody Mon Apr 29 14:54:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1559008298; cv=none; d=zoho.com; s=zohoarc; b=FNhWkw7l7YkYVTlz7VIIJOipq5X8TSkZHO3vf8eoz3ATJlT6SArd/DqjdJE6Sb+Zop03ConxfAd/Q2HkmTnD+9AkIKqrbhXMHten0GgaZbosQ383LN/OVi2iQIpZx/1GmNsfG9bOObgvA9k89RquNS01xFZHQGrLlNjFOze3BJk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559008298; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=ADT/Aky+dlBAGZqeY1Z42K4s/rxoSGPcKL2mmQdcB+E=; b=gafvhK1su0YdSzeL58jjic287jMXPZOW1qS5YTxVI8BBSjRZWCtKD30xr496SUPylnUDMft3Ko90b3wmfDusw3oyfpvQHQH6xRZogQfJomEwvtUFHX1+JQpHseadH17NXbTwK/RNXmhwBdIk8aZ/SOtrqIwG2BEsmKTrsmac+qM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1559008298808304.54771204344115; Mon, 27 May 2019 18:51:38 -0700 (PDT) Received: from localhost ([127.0.0.1]:55649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVRH2-0003fH-Rs for importer@patchew.org; Mon, 27 May 2019 21:51:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVRDU-00013N-Ut for qemu-devel@nongnu.org; Mon, 27 May 2019 21:47:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVRDU-0003f7-19 for qemu-devel@nongnu.org; Mon, 27 May 2019 21:47:52 -0400 Received: from mga11.intel.com ([192.55.52.93]:31236) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVRDT-0003YP-No for qemu-devel@nongnu.org; Mon, 27 May 2019 21:47:51 -0400 Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 May 2019 18:47:51 -0700 Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by orsmga006.jf.intel.com with ESMTP; 27 May 2019 18:47:49 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 From: Wei Yang To: qemu-devel@nongnu.org Date: Tue, 28 May 2019 09:47:02 +0800 Message-Id: <20190528014703.21030-4-richardw.yang@linux.intel.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190528014703.21030-1-richardw.yang@linux.intel.com> References: <20190528014703.21030-1-richardw.yang@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.55.52.93 Subject: [Qemu-devel] [PATCH 3/4] migration/ram.c: MultiFDSendParams.sem_sync is not really used X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wei Yang , dgilbert@redhat.com, quintela@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Besides init and destroy, MultiFDSendParams.sem_sync is not really used. Signed-off-by: Wei Yang Reviewed-by: Juan Quintela --- migration/ram.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index dcf4c54eb5..5d31f7bd4c 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -661,8 +661,6 @@ typedef struct { uint64_t num_packets; /* pages sent through this channel */ uint64_t num_pages; - /* syncs main thread and channels */ - QemuSemaphore sem_sync; } MultiFDSendParams; =20 typedef struct { @@ -1027,7 +1025,6 @@ void multifd_save_cleanup(void) p->c =3D NULL; qemu_mutex_destroy(&p->mutex); qemu_sem_destroy(&p->sem); - qemu_sem_destroy(&p->sem_sync); g_free(p->name); p->name =3D NULL; multifd_pages_clear(p->pages); @@ -1201,7 +1198,6 @@ int multifd_save_setup(void) =20 qemu_mutex_init(&p->mutex); qemu_sem_init(&p->sem, 0); - qemu_sem_init(&p->sem_sync, 0); p->quit =3D false; p->pending_job =3D 0; p->id =3D i; --=20 2.19.1 From nobody Mon Apr 29 14:54:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1559008301; cv=none; d=zoho.com; s=zohoarc; b=eOjiVZWwhQMlevl0MeTn2rmKaUW7NTQdAvtA0rj8EqysCtfc9LNiJhGlY2cPp5yFGF/bvkcnH2xO/b/q880SSsVWvK7jcS+HBJ8/9gMFxXUmhPTOw4d97PFhOCOl8eqF8sMjw16kqsrQzZJxRJMGdDY8L4hv87lgAO20I5uh5bg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559008301; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=SFLauA4X5l/lF/if79ka+7s2xITzio2RXvX1Zsgcmx4=; b=RkeazYomk6tZXHIuZFJAVPV4owBk3BkGE5eJzj/qHXUvR0cYInFLFTfODD5QVbIIU3JfZgFe73WMPx/6V7h+t8XOXJ22atyS4/xe60/NwMdUrCKOlwpXN2ByRAqbFeHA/UCMOCLZsddBqKafv1npc8dioicSzOmReceF74A212g= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1559008301078826.7679377796605; Mon, 27 May 2019 18:51:41 -0700 (PDT) Received: from localhost ([127.0.0.1]:55651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVRH7-0003l6-4c for importer@patchew.org; Mon, 27 May 2019 21:51:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVRDZ-00017E-6i for qemu-devel@nongnu.org; Mon, 27 May 2019 21:48:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVRDX-0003hm-5S for qemu-devel@nongnu.org; Mon, 27 May 2019 21:47:56 -0400 Received: from mga11.intel.com ([192.55.52.93]:31236) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVRDW-0003YP-RC for qemu-devel@nongnu.org; Mon, 27 May 2019 21:47:55 -0400 Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 May 2019 18:47:53 -0700 Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by orsmga006.jf.intel.com with ESMTP; 27 May 2019 18:47:52 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 From: Wei Yang To: qemu-devel@nongnu.org Date: Tue, 28 May 2019 09:47:03 +0800 Message-Id: <20190528014703.21030-5-richardw.yang@linux.intel.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190528014703.21030-1-richardw.yang@linux.intel.com> References: <20190528014703.21030-1-richardw.yang@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.55.52.93 Subject: [Qemu-devel] [PATCH 4/4] migration/ram.c: multifd_send_state->count is not really used X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wei Yang , dgilbert@redhat.com, quintela@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Signed-off-by: Wei Yang Reviewed-by: Juan Quintela --- migration/ram.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index 5d31f7bd4c..c9a9f7489b 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -892,8 +892,6 @@ static int multifd_recv_unfill_packet(MultiFDRecvParams= *p, Error **errp) =20 struct { MultiFDSendParams *params; - /* number of created threads */ - int count; /* array of pages to sent */ MultiFDPages_t *pages; /* syncs main thread and channels */ @@ -1171,8 +1169,6 @@ static void multifd_new_send_channel_async(QIOTask *t= ask, gpointer opaque) p->running =3D true; qemu_thread_create(&p->thread, p->name, multifd_send_thread, p, QEMU_THREAD_JOINABLE); - - atomic_inc(&multifd_send_state->count); } } =20 @@ -1188,7 +1184,6 @@ int multifd_save_setup(void) thread_count =3D migrate_multifd_channels(); multifd_send_state =3D g_malloc0(sizeof(*multifd_send_state)); multifd_send_state->params =3D g_new0(MultiFDSendParams, thread_count); - atomic_set(&multifd_send_state->count, 0); multifd_send_state->pages =3D multifd_pages_init(page_count); qemu_sem_init(&multifd_send_state->sem_sync, 0); qemu_sem_init(&multifd_send_state->channels_ready, 0); --=20 2.19.1