From nobody Mon May 13 01:23:26 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=1602425499; cv=none; d=zohomail.com; s=zohoarc; b=SLXx2vcWiDRrBi5709FaGbAAeI8nJI/pyBAv/UBjgHFgt9Yp2iJuhBM9GN0P2Z6ZaLKrBLb5u1VD9wr4tzcr6SK+/r4yyqSffbZDh3KBw6oNaVyhyNBsQDFieVIsDFJb2+K3GPnUTtA7DAqV0C/FRSTjniKN1k0jA8EAWS2rOxU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602425499; 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=Vdo2RSAjsAW8/RUmgYaajK79GehTgRaYpsGcXq8UeG99q+noLv7cTKAqjVUuBg2mwz4x15Dga0zVLcf6hMHrCaK/xmHpnyFnF9owzAzJqAemWX6myglx/Y7q9d+YWOm7btAymzTCKOLdNbRp0nwo+VDcjPy2rHrKWTO7hX2vzlc= 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 16024254997430.3860866441171993; Sun, 11 Oct 2020 07:11:39 -0700 (PDT) Received: from localhost ([::1]:47366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRbis-0004qI-7s for importer@patchew.org; Sun, 11 Oct 2020 09:49:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRYY3-0000yP-VK; Sun, 11 Oct 2020 06:25:51 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:51950 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 1kRYY1-0003CG-W9; Sun, 11 Oct 2020 06:25:51 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id CCB34F6EF7D28400F5FE; Sun, 11 Oct 2020 18:25:43 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Sun, 11 Oct 2020 18:25:36 +0800 From: Bihong Yu To: , Subject: [PATCH v1 1/8] migration: Do not use C99 // comments Date: Sun, 11 Oct 2020 18:57:36 +0800 Message-ID: <1602413863-19513-2-git-send-email-yubihong@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602413863-19513-1-git-send-email-yubihong@huawei.com> References: <1602413863-19513-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.32; envelope-from=yubihong@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 06:25:44 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:19 -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: yubihong@huawei.com, zhengchuan@huawei.com, quintela@redhat.com, dgilbert@redhat.com, alex.chen@huawei.com, wanghao232@huawei.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 Mon May 13 01:23:26 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=1602427359; cv=none; d=zohomail.com; s=zohoarc; b=KG8TCQAsAZovxlWWDR/FU8CNETerfYV4rP3v0EwlNXJMAWR9OPtl+BqYiGZ4UstE3A01VGJi/lIJZ6/n2L6mTJaDc7wvPhlLkb/NDP8+A6ilU4h1mGJMY5JK3ONLFFAE2HPm6Kf8HKHN8qfQpJAsh5ROx3324MDK7quLpnZ3KgA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602427359; 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=G3Gh68b5uQQpJ4KUiwtpDZknJ5ZE14800Ji1bguY4+HXq6lePAHMF8549gJYNAW2RHE60lNHVMMlTw+j40U2gn1cIo9paBpkYOcTI1WyGR38LOdQ4GgGCjBjOMsVd+IZEkcmCSBqZiWvKL15W77Ug1jwjanU/EqR04oAZc+Q8pk= 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 1602427359935334.3066460929713; Sun, 11 Oct 2020 07:42:39 -0700 (PDT) Received: from localhost ([::1]:53738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRble-0007to-Px for importer@patchew.org; Sun, 11 Oct 2020 09:52:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRYY8-0000ze-1N; Sun, 11 Oct 2020 06:25:56 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:51952 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 1kRYY3-0003CH-7d; Sun, 11 Oct 2020 06:25:55 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id DA5BC6A1EFA62AB7FFC6; Sun, 11 Oct 2020 18:25:43 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Sun, 11 Oct 2020 18:25:37 +0800 From: Bihong Yu To: , Subject: [PATCH v1 2/8] migration: Don't use '#' flag of printf format Date: Sun, 11 Oct 2020 18:57:37 +0800 Message-ID: <1602413863-19513-3-git-send-email-yubihong@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602413863-19513-1-git-send-email-yubihong@huawei.com> References: <1602413863-19513-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.32; envelope-from=yubihong@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 06:25:44 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:19 -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: yubihong@huawei.com, zhengchuan@huawei.com, quintela@redhat.com, dgilbert@redhat.com, alex.chen@huawei.com, wanghao232@huawei.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 Mon May 13 01:23:26 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=1602424950; cv=none; d=zohomail.com; s=zohoarc; b=RU4kskTt4S96YHUkKJW9nod7zQIpp3rQHvQ09DbEW3M3ncGFJTQUOm5i4qNWSPLn7pyjF0WVEgkGzuYgvRHjKFl0A1KZeJ5/lKqt2K7t10Pgc950z+jHufhtdBl3Pr5C45WwNwV/15VBXdyMT2f7tXAD9jNEox2PLs+KQgWh//4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602424950; 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=N/V+tW9Nroaw7+iVI4mbq5fZZMmz1txMWo5NWm2uTlWzQVuceN5G0aj3xTBK77giVxeN7fjHF4aiGy8/Ya3XyNTRFscfsnm3bnfKOIjRy0pZb1MuyjepuZhlrxYWIfGM9cWBK+rLktA5Qfsilz2Q4oVUdyx6R5nvXzAdO624XJQ= 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 1602424950388860.4025598885785; Sun, 11 Oct 2020 07:02:30 -0700 (PDT) Received: from localhost ([::1]:51042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRbkf-0006hQ-7D for importer@patchew.org; Sun, 11 Oct 2020 09:51:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRYY7-0000zU-Os; Sun, 11 Oct 2020 06:25:55 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:51946 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 1kRYY1-0003Ci-UV; Sun, 11 Oct 2020 06:25:55 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D113C6D346D392BE2184; Sun, 11 Oct 2020 18:25:43 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Sun, 11 Oct 2020 18:25:38 +0800 From: Bihong Yu To: , Subject: [PATCH v1 3/8] migration: Add spaces around operator Date: Sun, 11 Oct 2020 18:57:38 +0800 Message-ID: <1602413863-19513-4-git-send-email-yubihong@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602413863-19513-1-git-send-email-yubihong@huawei.com> References: <1602413863-19513-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.32; envelope-from=yubihong@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 06:25:44 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:19 -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: yubihong@huawei.com, zhengchuan@huawei.com, quintela@redhat.com, dgilbert@redhat.com, alex.chen@huawei.com, wanghao232@huawei.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 Mon May 13 01:23:26 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=1602425555; cv=none; d=zohomail.com; s=zohoarc; b=DmTC7e+Ec4JfWZsiwR3q2PDvEV/IQZTKu9mPV2QgZx2W5VV8/ui+X5B7cBKoAvhBlUdCMyLR0IA7GU729nrQVegflPgRVHlViwGYgrKyV6UiPIO1tFtdInvn7IbzJoVOfzt4/+GhPTMvy7J4pw0Z36Ylykxytk1DLSqHjVgnUIc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602425555; 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=aLRrYYerbpokSRBeYEmuZEMcGAfIgv4AJ/8heTok9gemuhVbRxc8F1zwJNZvq5CoryiewxVfIJkovcGXRYlktnry5nU23T9/ChDZTeu9Rw88zb9BSYYlGrDuf65i6eP9TUBS+XsU+4lQfidlxl23sgFBbL08DmGNBj25DjYY7p4= 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 1602425555333182.99016390932582; Sun, 11 Oct 2020 07:12:35 -0700 (PDT) Received: from localhost ([::1]:58746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRboJ-0001fj-7v for importer@patchew.org; Sun, 11 Oct 2020 09:54:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRYYA-00011C-43; Sun, 11 Oct 2020 06:25:58 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:52134 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 1kRYY8-0003IG-3h; Sun, 11 Oct 2020 06:25:57 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E76ACD955EE26CB46FB0; Sun, 11 Oct 2020 18:25:48 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Sun, 11 Oct 2020 18:25:38 +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:57:39 +0800 Message-ID: <1602413863-19513-5-git-send-email-yubihong@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602413863-19513-1-git-send-email-yubihong@huawei.com> References: <1602413863-19513-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.32; envelope-from=yubihong@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 06:25:44 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:19 -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: yubihong@huawei.com, zhengchuan@huawei.com, quintela@redhat.com, dgilbert@redhat.com, alex.chen@huawei.com, wanghao232@huawei.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 Mon May 13 01:23:26 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=1602425505; cv=none; d=zohomail.com; s=zohoarc; b=NcUeWnayvMZhrx7Z0+yHFyLeADDNiG8jgPdHnauOGDkSFm0t0fmrAqvFvkV3QB6XGIc4JKvaBep+MBg+mHQt4feBGUgvUvCwPvVzi1jMWKi88LEt/y3iLcr6Ae/URJnxNw2H66ScjOiTtVwUn4Kqj7BTlSruoFfTus5Fk/83AUc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602425505; 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=l6lSJtlaLaHHEEQIPu4cDz7X9lPw483+ajaAPxVEgXHx0Z6wea4LKG4U54KQJf3gXe8lX7Txiu39n9wD0+PGOsJSJU4AmlBYCO3HJLhD6phAZVTeuk3+MQPUQzoyH/+cqtS0TBH+wezOSNS/VfveYK8AHLttj6MzcmFdLV8NlFc= 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 1602425505226912.8338518646966; Sun, 11 Oct 2020 07:11:45 -0700 (PDT) Received: from localhost ([::1]:35360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRbpw-0003mb-DV for importer@patchew.org; Sun, 11 Oct 2020 09:56:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRYYC-00013M-Bm; Sun, 11 Oct 2020 06:26:00 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:52168 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 1kRYYA-0003Ji-Eg; Sun, 11 Oct 2020 06:26:00 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id EF935A9660D1AEBE83CC; Sun, 11 Oct 2020 18:25:48 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Sun, 11 Oct 2020 18:25:39 +0800 From: Bihong Yu To: , Subject: [PATCH v1 5/8] migration: Add braces {} for if statement Date: Sun, 11 Oct 2020 18:57:40 +0800 Message-ID: <1602413863-19513-6-git-send-email-yubihong@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602413863-19513-1-git-send-email-yubihong@huawei.com> References: <1602413863-19513-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.32; envelope-from=yubihong@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 06:25:44 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:21 -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: yubihong@huawei.com, zhengchuan@huawei.com, quintela@redhat.com, dgilbert@redhat.com, alex.chen@huawei.com, wanghao232@huawei.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 Mon May 13 01:23:26 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=1602425309; cv=none; d=zohomail.com; s=zohoarc; b=F0yTNfPtqoMIuZsbvGWAnRoxM9rXuXDeaodFWYvQu7Y2OqQwMpijSo/TpigsmyO/ddpOhcyF3sqDbHXu32+kReBYZx9E7rNZVVI7ooaO3t9FjgfVSgPapUZDrGcb3ZLXO5i1gOESQuwhzqQ34H4Dvc1YY9lbeFtfkZdaEDqR5cw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602425309; 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=aEyEy6e8loCiee6RVki5a7sQJf6BvaVGqCoWVS+BxtiTA9Rsd7nzTUZjdP+8X4vl8bzx7/sXW0mHMGul+JVL8/0u5SFWJp8yOFAtxwkFgkHTfraq4UbuBwDRjZu0l746KHunr+R0WmBjr13AAa7B2nx9dtNgz2FvbG/HLs9ZpGc= 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 1602425309409181.76995458772842; Sun, 11 Oct 2020 07:08:29 -0700 (PDT) Received: from localhost ([::1]:55728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRbn5-0000Ke-U5 for importer@patchew.org; Sun, 11 Oct 2020 09:53:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRYYB-00012B-F1; Sun, 11 Oct 2020 06:25:59 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:52170 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 1kRYY9-0003Jj-Jd; Sun, 11 Oct 2020 06:25:59 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id EB72EA4F2CD18C80B79F; Sun, 11 Oct 2020 18:25:48 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Sun, 11 Oct 2020 18:25:40 +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:57:41 +0800 Message-ID: <1602413863-19513-7-git-send-email-yubihong@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602413863-19513-1-git-send-email-yubihong@huawei.com> References: <1602413863-19513-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.32; envelope-from=yubihong@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 06:25:44 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:21 -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: yubihong@huawei.com, zhengchuan@huawei.com, quintela@redhat.com, dgilbert@redhat.com, alex.chen@huawei.com, wanghao232@huawei.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 Mon May 13 01:23:26 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=1602423525; cv=none; d=zohomail.com; s=zohoarc; b=JJl6UHh4boSFayNViYKZGAMPQTq++zhmTuVD3JLG7zruNtFdSUvJtuNiqs05JQPelFvBCmiEt9kWsJprp5/2QAQciaCyVwI33jjJNrfr1Im5H8gbQAzfEcC0YSTEUtGrfpUImNItfzkdqot94dKp35QCTfPNwvngeKljjHk4cGg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602423525; 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=bfnUPMH8gxxaF7F6fDe6rGQ1VI93+m7BfMlF8c64bmQu2xoDWfExR3x3mvMFJbfIfIdUOhcIXzERcH0MRCz+eq700/vLzW0T6gOfvtL1sZTOC4QzokcwFbFijHHx+nHJU02Nn6p4UBhxHcgNCdVkmmPFbSaKMtt84YwxBVBZ6cY= 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 1602423525544646.6902553116348; Sun, 11 Oct 2020 06:38:45 -0700 (PDT) Received: from localhost ([::1]:33484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRbYi-0004Dz-CO for importer@patchew.org; Sun, 11 Oct 2020 09:38:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRYYA-00011a-IF; Sun, 11 Oct 2020 06:25:58 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:52132 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 1kRYY8-0003IF-LY; Sun, 11 Oct 2020 06:25:58 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E3704467C09C55F082D0; Sun, 11 Oct 2020 18:25:48 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Sun, 11 Oct 2020 18:25:40 +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:57:42 +0800 Message-ID: <1602413863-19513-8-git-send-email-yubihong@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602413863-19513-1-git-send-email-yubihong@huawei.com> References: <1602413863-19513-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.32; envelope-from=yubihong@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 06:25:44 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:21 -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: yubihong@huawei.com, zhengchuan@huawei.com, quintela@redhat.com, dgilbert@redhat.com, alex.chen@huawei.com, wanghao232@huawei.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 Mon May 13 01:23:26 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=1602427059; cv=none; d=zohomail.com; s=zohoarc; b=avtXKdo0dOSgCJk14apUrlSfb4E7rMVYnbiLW3S8zfDNPGnMFJVRBJlUOZDSrrXeEJ/Pi3+24zIw8VCzUGsA/dtBO/IgaluK2th8DT3t/W+LAifSCeD6AhIzDMwETwL4FwQpdDggJ/GYTgcGa17xTATDgW8lMzHH2I9l/2EUuTw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602427059; 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=N8pDRbmRh4Hwp1NO6v0rIVWa8Ly3siXB1fNLt8WD/HfoQq1wWTUPSBPM1DrjSwLzshP1Ov76W6XcOQvGo63QxArvNNhNNspDWPEQrsWafRT72fx6GYn9ec1VBDXcASEk6LkzDGCJWjakTTREIYeKy1D5sjaO7YSeauABSC8UR0Y= 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 1602427059129462.382700013669; Sun, 11 Oct 2020 07:37:39 -0700 (PDT) Received: from localhost ([::1]:37384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRbgD-0000XW-IV for importer@patchew.org; Sun, 11 Oct 2020 09:46:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRYY6-0000yz-KN; Sun, 11 Oct 2020 06:25:54 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:52058 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 1kRYY4-0003G7-On; Sun, 11 Oct 2020 06:25:54 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id DEFA347A27AEFD77E8CF; Sun, 11 Oct 2020 18:25:48 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Sun, 11 Oct 2020 18:25:41 +0800 From: Bihong Yu To: , Subject: [PATCH v1 8/8] migration: Delete redundant spaces Date: Sun, 11 Oct 2020 18:57:43 +0800 Message-ID: <1602413863-19513-9-git-send-email-yubihong@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602413863-19513-1-git-send-email-yubihong@huawei.com> References: <1602413863-19513-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.32; envelope-from=yubihong@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 06:25:44 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:19 -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: yubihong@huawei.com, zhengchuan@huawei.com, quintela@redhat.com, dgilbert@redhat.com, alex.chen@huawei.com, wanghao232@huawei.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