From nobody Tue May 14 14:20:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1602423769; cv=none; d=zohomail.com; s=zohoarc; b=c/TNEYqMzPezk9iZQpk6N+Z6WtzTGsj9a/FeupoaWbl3/6gGfRgoIDuVU8aYOiwNqU6NYWuiCaTHEDmAHH8E8txFdfdW99H9mmvZlXJLA/BkfHMeM9/rsKj/r7UvwXmJzUYUmjEh6jaoVW8CjdCPBJrzL1EonTevv1TiLeX/AAc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602423769; h=Content-Type: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; bh=K6BEUDaDnSu9YUCGFl5YpGNF/61LCgXlaaoshvLXo98=; b=Za6/qTcLuHRaBAR3P6lGQLvuYhvR1EslahqZkCavQl3f43MMxfTJIVcZXDyDmDuGRMbSInPCZhChOur5pSzFgdpl0si6sTdW+QRruZvNr4FTklWC/o0JJvIsadRlhV8pjuXIGovgby+PzR+mk90pdalZkZqrIz9M9Ni8vlgqgdg= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 160242376944480.9406585019268; Sun, 11 Oct 2020 06:42:49 -0700 (PDT) Received: from localhost ([::1]:51772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRbce-0003Ii-8c for importer@patchew.org; Sun, 11 Oct 2020 09:42:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRXvF-0001B5-To; Sun, 11 Oct 2020 05:45:46 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5174 helo=huawei.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRXv6-0007SD-0P; Sun, 11 Oct 2020 05:45:44 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id A99115D73DC16BA43095; Sun, 11 Oct 2020 17:45:12 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Sun, 11 Oct 2020 17:45:03 +0800 From: Bihong Yu To: , Subject: [PATCH v1 1/8] migration: Do not use C99 // comments Date: Sun, 11 Oct 2020 18:17:02 +0800 Message-ID: <1602411429-12043-2-git-send-email-yubihong@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602411429-12043-1-git-send-email-yubihong@huawei.com> References: <1602411429-12043-1-git-send-email-yubihong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected 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=45.249.212.190; envelope-from=yubihong@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 05:45:13 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 11 Oct 2020 09:36:15 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.chen@huawei.com, zhengchuan@huawei.com, wanghao232@huawei.com, dgilbert@redhat.com, quintela@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by:Bihong Yu Reviewed-by: Chuan Zheng Signed-off-by: Bihong Yu --- migration/block.c | 2 +- migration/rdma.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/migration/block.c b/migration/block.c index 737b649..4b8576b 100644 --- a/migration/block.c +++ b/migration/block.c @@ -40,7 +40,7 @@ #define MAX_IO_BUFFERS 512 #define MAX_PARALLEL_IO 16 =20 -//#define DEBUG_BLK_MIGRATION +/* #define DEBUG_BLK_MIGRATION */ =20 #ifdef DEBUG_BLK_MIGRATION #define DPRINTF(fmt, ...) \ diff --git a/migration/rdma.c b/migration/rdma.c index 0340841..0eb42b7 100644 --- a/migration/rdma.c +++ b/migration/rdma.c @@ -1288,7 +1288,7 @@ const char *print_wrid(int wrid) * workload information or LRU information is available, do not attempt to= use * this feature except for basic testing. */ -//#define RDMA_UNREGISTRATION_EXAMPLE +/* #define RDMA_UNREGISTRATION_EXAMPLE */ =20 /* * Perform a non-optimized memory unregistration after every transfer --=20 1.8.3.1 From nobody Tue May 14 14:20:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1602423716; cv=none; d=zohomail.com; s=zohoarc; b=U6ZwXRLihvBiCAVNSAPQ8iDfLXNDA+fF5SpFCBWuoVQfhBOPCscdRINMAaGO5u96m+w+mQoIybMWXJOQJLka4F0DKItAGnsB0yiY2cvOIGrIIXcDXtRSj2R5ur9khurheNVs6NapnAkvufKbmO2x4dDwiZGM4cnNZUAdogulw+c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602423716; h=Content-Type: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; bh=8mnLa8ocYGIGrLWbyIpwrtBWCFhfZ1ykoRjTLut3W3M=; b=NpF0EPiiBYrqRMENodydH8JneAVxjPPbnP2PMsrAGuz+tbX3z2LVrfIUarojWBV3iTK+ZR9juKA+miuRUcP9pg0xAc1JnlpywuI6evlCA6Ap/BbY8VChCg3+YgqMA7hEn5fl+zTNdRrsCyIFBsbTf8F70XX7rYaKcVA7XQKaxfQ= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1602423716150384.81053177260117; Sun, 11 Oct 2020 06:41:56 -0700 (PDT) Received: from localhost ([::1]:47720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRbbm-0001fP-V8 for importer@patchew.org; Sun, 11 Oct 2020 09:41:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRXv5-00019i-VB; Sun, 11 Oct 2020 05:45:36 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5169 helo=huawei.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRXv1-0007P1-Pa; Sun, 11 Oct 2020 05:45:35 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 7E54E2BF15CC7CE11937; Sun, 11 Oct 2020 17:45:12 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Sun, 11 Oct 2020 17:45:03 +0800 From: Bihong Yu To: , Subject: [PATCH v1 2/8] migration: Don't use '#' flag of printf format Date: Sun, 11 Oct 2020 18:17:03 +0800 Message-ID: <1602411429-12043-3-git-send-email-yubihong@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602411429-12043-1-git-send-email-yubihong@huawei.com> References: <1602411429-12043-1-git-send-email-yubihong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected 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=45.249.212.190; envelope-from=yubihong@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 05:45:13 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 11 Oct 2020 09:36:15 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.chen@huawei.com, zhengchuan@huawei.com, wanghao232@huawei.com, dgilbert@redhat.com, quintela@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by:Bihong Yu Reviewed-by: Chuan Zheng Signed-off-by: Bihong Yu --- migration/block.c | 2 +- migration/ram.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/migration/block.c b/migration/block.c index 4b8576b..399dfb8 100644 --- a/migration/block.c +++ b/migration/block.c @@ -998,7 +998,7 @@ static int block_load(QEMUFile *f, void *opaque, int ve= rsion_id) (addr =3D=3D 100) ? '\n' : '\r'); fflush(stdout); } else if (!(flags & BLK_MIG_FLAG_EOS)) { - fprintf(stderr, "Unknown block migration flags: %#x\n", flags); + fprintf(stderr, "Unknown block migration flags: %0x\n", flags); return -EINVAL; } ret =3D qemu_file_get_error(f); diff --git a/migration/ram.c b/migration/ram.c index 433489d..59bdd15 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -3298,7 +3298,7 @@ static int ram_load_postcopy(QEMUFile *f) multifd_recv_sync_main(); break; default: - error_report("Unknown combination of migration flags: %#x" + error_report("Unknown combination of migration flags: %0x" " (postcopy mode)", flags); ret =3D -EINVAL; break; @@ -3576,7 +3576,7 @@ static int ram_load_precopy(QEMUFile *f) if (flags & RAM_SAVE_FLAG_HOOK) { ram_control_load_hook(f, RAM_CONTROL_HOOK, NULL); } else { - error_report("Unknown combination of migration flags: %#x", + error_report("Unknown combination of migration flags: %0x", flags); ret =3D -EINVAL; } --=20 1.8.3.1 From nobody Tue May 14 14:20:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1602423487; cv=none; d=zohomail.com; s=zohoarc; b=SYGRuoyENheKZCTQ1mYbD0RYaWiVbQgWqOk63MQ6DrQEKQuSEJk4NgzYN8ArsM9K6kMmpIv2oJ1GuxLEkBn+YVF3PWo244YyT958OVAxv+wG9pjNfnuj0UTAjlGCBiCA/vk3k7UlVfbKFJcTy57p++3d1MXMJJf3Bu1OQE76GD8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602423487; h=Content-Type: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; bh=jD4Svkr/ob140U3tAeYG4aOic9pR96wdWf/UX++GANY=; b=irjnRy1b6Mt4znrc2Q3LB05ujjG4d7guZirTHYHNGeTWspB44K7JRuzwhAhuxAaUP1a7V4qEG9URxWReQvrTsmT1g+ppU5bFRsqUxkbExMHAHR08+GDZeJM4S83tAvYwmFMZ6+7Fz/hpL5J2p/AJV8P9GJzfyBq0QTl01awMITw= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1602423487611487.2948940492661; Sun, 11 Oct 2020 06:38:07 -0700 (PDT) Received: from localhost ([::1]:57632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRbY6-0002Yh-9y for importer@patchew.org; Sun, 11 Oct 2020 09:38:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRXv2-00017O-Uf; Sun, 11 Oct 2020 05:45:33 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5172 helo=huawei.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRXv0-0007P2-BI; Sun, 11 Oct 2020 05:45:32 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 829E2A07CF3BCD9EF999; Sun, 11 Oct 2020 17:45:12 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Sun, 11 Oct 2020 17:45:04 +0800 From: Bihong Yu To: , Subject: [PATCH v1 3/8] migration: Add spaces around operator Date: Sun, 11 Oct 2020 18:17:04 +0800 Message-ID: <1602411429-12043-4-git-send-email-yubihong@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602411429-12043-1-git-send-email-yubihong@huawei.com> References: <1602411429-12043-1-git-send-email-yubihong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected 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=45.249.212.190; envelope-from=yubihong@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 05:45:13 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 11 Oct 2020 09:36:15 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.chen@huawei.com, zhengchuan@huawei.com, wanghao232@huawei.com, dgilbert@redhat.com, quintela@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by:Bihong Yu Reviewed-by: Chuan Zheng Signed-off-by: Bihong Yu --- migration/migration.c | 4 ++-- migration/postcopy-ram.c | 2 +- migration/ram.c | 2 +- migration/savevm.c | 2 +- migration/vmstate.c | 10 +++++----- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index 0575ecb..e050f57 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -2478,8 +2478,8 @@ static void migrate_handle_rp_req_pages(MigrationStat= e *ms, const char* rbname, * Since we currently insist on matching page sizes, just sanity check * we're being asked for whole host pages. */ - if (start & (our_host_ps-1) || - (len & (our_host_ps-1))) { + if (start & (our_host_ps - 1) || + (len & (our_host_ps - 1))) { error_report("%s: Misaligned page request, start: " RAM_ADDR_FMT " len: %zd", __func__, start, len); mark_source_rp_bad(ms); diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c index 0a2f88a8..eea92bb 100644 --- a/migration/postcopy-ram.c +++ b/migration/postcopy-ram.c @@ -403,7 +403,7 @@ bool postcopy_ram_supported_by_host(MigrationIncomingSt= ate *mis) strerror(errno)); goto out; } - g_assert(((size_t)testarea & (pagesize-1)) =3D=3D 0); + g_assert(((size_t)testarea & (pagesize - 1)) =3D=3D 0); =20 reg_struct.range.start =3D (uintptr_t)testarea; reg_struct.range.len =3D pagesize; diff --git a/migration/ram.c b/migration/ram.c index 59bdd15..90b277b 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -1563,7 +1563,7 @@ int ram_save_queue_pages(const char *rbname, ram_addr= _t start, ram_addr_t len) rs->last_req_rb =3D ramblock; } trace_ram_save_queue_pages(ramblock->idstr, start, len); - if (start+len > ramblock->used_length) { + if (start + len > ramblock->used_length) { error_report("%s request overrun start=3D" RAM_ADDR_FMT " len=3D" RAM_ADDR_FMT " blocklen=3D" RAM_ADDR_FMT, __func__, start, len, ramblock->used_length); diff --git a/migration/savevm.c b/migration/savevm.c index d2e141f..9e95df1 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -521,7 +521,7 @@ static const VMStateDescription vmstate_configuration = =3D { VMSTATE_VBUFFER_ALLOC_UINT32(name, SaveState, 0, NULL, len), VMSTATE_END_OF_LIST() }, - .subsections =3D (const VMStateDescription*[]) { + .subsections =3D (const VMStateDescription * []) { &vmstate_target_page_bits, &vmstate_capabilites, &vmstate_uuid, diff --git a/migration/vmstate.c b/migration/vmstate.c index bafa890..e9d2aef 100644 --- a/migration/vmstate.c +++ b/migration/vmstate.c @@ -32,13 +32,13 @@ static int vmstate_n_elems(void *opaque, const VMStateF= ield *field) if (field->flags & VMS_ARRAY) { n_elems =3D field->num; } else if (field->flags & VMS_VARRAY_INT32) { - n_elems =3D *(int32_t *)(opaque+field->num_offset); + n_elems =3D *(int32_t *)(opaque + field->num_offset); } else if (field->flags & VMS_VARRAY_UINT32) { - n_elems =3D *(uint32_t *)(opaque+field->num_offset); + n_elems =3D *(uint32_t *)(opaque + field->num_offset); } else if (field->flags & VMS_VARRAY_UINT16) { - n_elems =3D *(uint16_t *)(opaque+field->num_offset); + n_elems =3D *(uint16_t *)(opaque + field->num_offset); } else if (field->flags & VMS_VARRAY_UINT8) { - n_elems =3D *(uint8_t *)(opaque+field->num_offset); + n_elems =3D *(uint8_t *)(opaque + field->num_offset); } =20 if (field->flags & VMS_MULTIPLY_ELEMENTS) { @@ -54,7 +54,7 @@ static int vmstate_size(void *opaque, const VMStateField = *field) int size =3D field->size; =20 if (field->flags & VMS_VBUFFER) { - size =3D *(int32_t *)(opaque+field->size_offset); + size =3D *(int32_t *)(opaque + field->size_offset); if (field->flags & VMS_MULTIPLY) { size *=3D field->size; } --=20 1.8.3.1 From nobody Tue May 14 14:20:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1602423825; cv=none; d=zohomail.com; s=zohoarc; b=kYf6K0Dlz4fJDA0xgmH+PrTKnU9ZZTsl5h1TXkY9qU2L7ZZSCErs9JQkehi8Y9AFbSl5SVjrtvVz8JISRU+UkTjNfQNnkyxtmJSn0iAEx9NynTovPOgRY1tOhZGOd/aLBxOgFEsgX8jgRu5KYKruEokVSKqJ7fN5ilRKcZS3pVo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602423825; h=Content-Type: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; bh=xsQq8Kqq34BILmgQ5naa3We6zGSRcM3oDhXFZCy2f84=; b=KKnz4Edkr1n1qRsb5Z0+hpvQXC/H7Nz0BUUbOiE13fzx81VSfCVbiaJMR9ZHxD5E5HPodbghnwgPrEk96/YFyLR+Rd/J4ZoShPN78anvXz3OLa8V8+4SEeG0LujKuXne5Z/Bw4nix9OzZbtHAYd77goDNVktqmnnGwL+x0T0u60= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 160242382556451.964534888415415; Sun, 11 Oct 2020 06:43:45 -0700 (PDT) Received: from localhost ([::1]:56722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRbdY-0005JP-C7 for importer@patchew.org; Sun, 11 Oct 2020 09:43:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51470) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRXvF-0001B6-UW; Sun, 11 Oct 2020 05:45:46 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5173 helo=huawei.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRXv7-0007SC-Rz; Sun, 11 Oct 2020 05:45:45 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 87632C7A3AAD4115DF6E; Sun, 11 Oct 2020 17:45:12 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Sun, 11 Oct 2020 17:45:04 +0800 From: Bihong Yu To: , Subject: [PATCH v1 4/8] migration: Open brace '{' following struct go on the same line Date: Sun, 11 Oct 2020 18:17:05 +0800 Message-ID: <1602411429-12043-5-git-send-email-yubihong@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602411429-12043-1-git-send-email-yubihong@huawei.com> References: <1602411429-12043-1-git-send-email-yubihong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected 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=45.249.212.190; envelope-from=yubihong@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 05:45:13 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 11 Oct 2020 09:36:15 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.chen@huawei.com, zhengchuan@huawei.com, wanghao232@huawei.com, dgilbert@redhat.com, quintela@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by:Bihong Yu Reviewed-by: Chuan Zheng Signed-off-by: Bihong Yu --- migration/migration.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/migration/migration.h b/migration/migration.h index deb411a..99784b4 100644 --- a/migration/migration.h +++ b/migration/migration.h @@ -124,8 +124,7 @@ struct MigrationClass { DeviceClass parent_class; }; =20 -struct MigrationState -{ +struct MigrationState { /*< private >*/ DeviceState parent_obj; =20 --=20 1.8.3.1 From nobody Tue May 14 14:20:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1602423500; cv=none; d=zohomail.com; s=zohoarc; b=CROqxopBC+TYB7FaDT+zE9PaOmMNVZsEI2OOZAERiOcrpXF4Ji+tOQGqEMzkInMA4Mj/g6zSJdTIXs9J2nNOo2IQviPRG0QWOd9ZD2PoF0xfZfvExfbmWTpdBoJAUwPhWFHM3MeVZQ5qhQDpCJYdYStE+i1yIKDogZWe+aFmmek= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602423500; h=Content-Type: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; bh=ghYHjxFbbDuU/Jr0Kzbm4mmKp4DX+p7FL56p402/z84=; b=FewhLxP3kI8ZNCoj+yrlSPurMo84E75ZTdKtgFqKTkGh56CzzUCVYsRSB/oCL+CojwN2c2VkIo3P0Ff3JN6yBF7kvtGiZ69QVFY4o+1Spf7mKbfhcdO4B1wPdUUYf3LtV8O6iXMM/2pabVUeTdCfkPJtkSIrq2h4OLoG2nEPa+Q= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1602423500545290.80273286632985; Sun, 11 Oct 2020 06:38:20 -0700 (PDT) Received: from localhost ([::1]:59000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRbYJ-000382-Cb for importer@patchew.org; Sun, 11 Oct 2020 09:38:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRXv2-00017K-EY; Sun, 11 Oct 2020 05:45:32 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5171 helo=huawei.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRXv0-0007P5-Bn; Sun, 11 Oct 2020 05:45:32 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 8FAA85347C2F70B557BD; Sun, 11 Oct 2020 17:45:12 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Sun, 11 Oct 2020 17:45:05 +0800 From: Bihong Yu To: , Subject: [PATCH v1 5/8] migration: Add braces {} for if statement Date: Sun, 11 Oct 2020 18:17:06 +0800 Message-ID: <1602411429-12043-6-git-send-email-yubihong@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602411429-12043-1-git-send-email-yubihong@huawei.com> References: <1602411429-12043-1-git-send-email-yubihong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected 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=45.249.212.190; envelope-from=yubihong@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 05:45:13 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 11 Oct 2020 09:36:14 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.chen@huawei.com, zhengchuan@huawei.com, wanghao232@huawei.com, dgilbert@redhat.com, quintela@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by:Bihong Yu Reviewed-by: Chuan Zheng Signed-off-by: Bihong Yu --- migration/ram.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index 90b277b..12e7296 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -101,14 +101,16 @@ static struct { =20 static void XBZRLE_cache_lock(void) { - if (migrate_use_xbzrle()) + if (migrate_use_xbzrle()) { qemu_mutex_lock(&XBZRLE.lock); + } } =20 static void XBZRLE_cache_unlock(void) { - if (migrate_use_xbzrle()) + if (migrate_use_xbzrle()) { qemu_mutex_unlock(&XBZRLE.lock); + } } =20 /** --=20 1.8.3.1 From nobody Tue May 14 14:20:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1602423591; cv=none; d=zohomail.com; s=zohoarc; b=mtSlv/l4L88GneSIltbfv60cCxOP+Fr4Tjb87Sgz194T4mKFnf08Qu/2B180bfSxcYidq1AlLTml13KHMvAkjpalt74tUbrkD7GYe84OQt7UEnYmyEUZykU2oChvC7P/I+l27YPGNSCgbP1VI4CNzXHNrxcJnmeofg+cKkmGogM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602423591; h=Content-Type: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; bh=610GB1Zizqi8N2QjhuvjwfjDJ8jabaxzaJAUqvOAUms=; b=XbeppKnDuZ7+8v9QtYMXqFp3PuTUVWNANVLs3pUYMsCGKWF2UQ8fdbYSFQUjhulgStcWLcVfMwjQU6NuvKZ91PRiCZcd0s2qTHSp0hbqXEokkOUVzAixEIOM0zu/4+ItGjioa2pRyb2D6EXS6xhWHn7LOROrMlAHYr+0hdZmfR8= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1602423591394236.5229068075048; Sun, 11 Oct 2020 06:39:51 -0700 (PDT) Received: from localhost ([::1]:39216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRbZm-0006XE-0d for importer@patchew.org; Sun, 11 Oct 2020 09:39:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRXv3-00018S-Rv; Sun, 11 Oct 2020 05:45:33 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5168 helo=huawei.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRXv1-0007Oz-Ot; Sun, 11 Oct 2020 05:45:33 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 8B5C240B52EB53A016B3; Sun, 11 Oct 2020 17:45:12 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Sun, 11 Oct 2020 17:45:06 +0800 From: Bihong Yu To: , Subject: [PATCH v1 6/8] migration: Do not initialise statics and globals to 0 or NULL Date: Sun, 11 Oct 2020 18:17:07 +0800 Message-ID: <1602411429-12043-7-git-send-email-yubihong@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602411429-12043-1-git-send-email-yubihong@huawei.com> References: <1602411429-12043-1-git-send-email-yubihong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected 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=45.249.212.190; envelope-from=yubihong@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 05:45:13 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 11 Oct 2020 09:36:15 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.chen@huawei.com, zhengchuan@huawei.com, wanghao232@huawei.com, dgilbert@redhat.com, quintela@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by:Bihong Yu Reviewed-by: Chuan Zheng Signed-off-by: Bihong Yu --- migration/ram.c | 2 +- migration/savevm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index 12e7296..f71ff2b 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -2743,7 +2743,7 @@ static int load_xbzrle(QEMUFile *f, ram_addr_t addr, = void *host) */ static inline RAMBlock *ram_block_from_stream(QEMUFile *f, int flags) { - static RAMBlock *block =3D NULL; + static RAMBlock *block; char id[256]; uint8_t len; =20 diff --git a/migration/savevm.c b/migration/savevm.c index 9e95df1..f808bc2 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -64,7 +64,7 @@ #include "qemu/bitmap.h" #include "net/announce.h" =20 -const unsigned int postcopy_ram_discard_version =3D 0; +const unsigned int postcopy_ram_discard_version; =20 /* Subcommands for QEMU_VM_COMMAND */ enum qemu_vm_cmd { --=20 1.8.3.1 From nobody Tue May 14 14:20:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1602423794; cv=none; d=zohomail.com; s=zohoarc; b=Jnx9VH/sroy1obbIWazPcuMl0syzmDH/OzLfjEfyRSPFGrSar1COTjwVXcS+BfXhkFzGC7YyDt047veiJJNTS1qEsFQEEmNTb5zo0lR7z2oEhHGuZJ+FYQ5Bmzjc4yOWBcVOjHPCClUFwF8olbgHIaolkgRAILRUwxat67W2Moo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602423794; h=Content-Type: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; bh=yb1LIh3oYWlOqNCM2awVE/SD9S3vbXPdV/gpz/5UHI8=; b=YdgFcyQDCJZUrLqYR164kbD/HrIGcOSgY6nvwXUmit07GBZYfUJtm1imU49oWPHfPKFE3neNJZgNtj68r4pZNQwJQJ5Er/DbfYsdBUxC8arScXPFrxs6wSkKp8j9CkQigaYgF2jg6JYaWYAgMItvtRXCJL1FZWXmh2DmDjG26Ak= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1602423794365910.6660216358388; Sun, 11 Oct 2020 06:43:14 -0700 (PDT) Received: from localhost ([::1]:53118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRbd3-0003qg-4o for importer@patchew.org; Sun, 11 Oct 2020 09:43:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRXvI-0001Bo-4q; Sun, 11 Oct 2020 05:45:48 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5175 helo=huawei.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRXv7-0007SV-TR; Sun, 11 Oct 2020 05:45:47 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 8CDC098318C705229A41; Sun, 11 Oct 2020 17:45:17 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Sun, 11 Oct 2020 17:45:06 +0800 From: Bihong Yu To: , Subject: [PATCH v1 7/8] migration: Open brace '{' following function declarations go on the next line Date: Sun, 11 Oct 2020 18:17:08 +0800 Message-ID: <1602411429-12043-8-git-send-email-yubihong@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602411429-12043-1-git-send-email-yubihong@huawei.com> References: <1602411429-12043-1-git-send-email-yubihong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected 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=45.249.212.190; envelope-from=yubihong@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 05:45:13 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 11 Oct 2020 09:36:15 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.chen@huawei.com, zhengchuan@huawei.com, wanghao232@huawei.com, dgilbert@redhat.com, quintela@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by:Bihong Yu Reviewed-by: Chuan Zheng Signed-off-by: Bihong Yu --- migration/rdma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migration/rdma.c b/migration/rdma.c index 0eb42b7..ca4d315 100644 --- a/migration/rdma.c +++ b/migration/rdma.c @@ -273,7 +273,8 @@ static uint64_t htonll(uint64_t v) return u.llv; } =20 -static uint64_t ntohll(uint64_t v) { +static uint64_t ntohll(uint64_t v) +{ union { uint32_t lv[2]; uint64_t llv; } u; u.llv =3D v; return ((uint64_t)ntohl(u.lv[0]) << 32) | (uint64_t) ntohl(u.lv[1]); --=20 1.8.3.1 From nobody Tue May 14 14:20:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1602423665; cv=none; d=zohomail.com; s=zohoarc; b=RLAJc9C0vr2dbk99U+JKB/ZI8d6vSXAlocUCh4NmZHqzck6YZWVKVUcBwSuKKHSUrMhX0hjPOiO694LL31uFh4CpUjXue2F+5CcX1PiCapZcW3io21knzawn4Di1ue6dDii7KZ0VBWntBGWT3NQKtYYXXnI3D3ZgRRuq5p0flOI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602423665; h=Content-Type: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; bh=WgOhW1h6sOlO+Fbs509Fop6I+M74do9Q5DywywnWhdw=; b=PHIrS9PcW7wZgSMTShZSGdGlcvGadlHdXf1KDcRlUbTtq9bgs85OvOQ+JCM5dGgwK+bMmrdGSpn3afLULlkqR9r8PAHnVN/zkhdus3bD/BVcuNTK3LS/xzYUb7vLSYSY4z5gTb0MkMALuY70S/UPLjMS3eqnv0ReN8NYnmXq2J0= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1602423665759371.03904451662527; Sun, 11 Oct 2020 06:41:05 -0700 (PDT) Received: from localhost ([::1]:44544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRbay-0000FL-Ep for importer@patchew.org; Sun, 11 Oct 2020 09:41:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRXvE-0001At-5n; Sun, 11 Oct 2020 05:45:44 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5176 helo=huawei.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRXv6-0007SU-1r; Sun, 11 Oct 2020 05:45:42 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 88AD24EECD58D3342D8C; Sun, 11 Oct 2020 17:45:17 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Sun, 11 Oct 2020 17:45:07 +0800 From: Bihong Yu To: , Subject: [PATCH v1 8/8] migration: Delete redundant spaces Date: Sun, 11 Oct 2020 18:17:09 +0800 Message-ID: <1602411429-12043-9-git-send-email-yubihong@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602411429-12043-1-git-send-email-yubihong@huawei.com> References: <1602411429-12043-1-git-send-email-yubihong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected 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=45.249.212.190; envelope-from=yubihong@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 05:45:13 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 11 Oct 2020 09:36:15 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.chen@huawei.com, zhengchuan@huawei.com, wanghao232@huawei.com, dgilbert@redhat.com, quintela@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by:Bihong Yu Reviewed-by: Chuan Zheng Signed-off-by: Bihong Yu --- migration/rdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/rdma.c b/migration/rdma.c index ca4d315..00eac34 100644 --- a/migration/rdma.c +++ b/migration/rdma.c @@ -855,7 +855,7 @@ static int qemu_rdma_broken_ipv6_kernel(struct ibv_cont= ext *verbs, Error **errp) */ if (!verbs) { int num_devices, x; - struct ibv_device ** dev_list =3D ibv_get_device_list(&num_devices= ); + struct ibv_device **dev_list =3D ibv_get_device_list(&num_devices); bool roce_found =3D false; bool ib_found =3D false; =20 --=20 1.8.3.1