From patchwork Wed Jul 19 06:35:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tejus GK X-Patchwork-Id: 13318348 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2CAF3EB64DA for ; Wed, 19 Jul 2023 06:36:04 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qM0mJ-00088Z-La; Wed, 19 Jul 2023 02:35:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qM0mG-00088E-KZ for qemu-devel@nongnu.org; Wed, 19 Jul 2023 02:35:13 -0400 Received: from mx0b-002c1b01.pphosted.com ([148.163.155.12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qM0mE-0008DA-8j for qemu-devel@nongnu.org; Wed, 19 Jul 2023 02:35:12 -0400 Received: from pps.filterd (m0127842.ppops.net [127.0.0.1]) by mx0b-002c1b01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 36J1DfmB017982; Tue, 18 Jul 2023 23:35:04 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nutanix.com; h= from:to:cc:subject:date:message-id:content-type :content-transfer-encoding:mime-version; s=proofpoint20171006; bh=TP4EfPhSMHwM9eRNDGmysr0mUcKDQuXso44/cVGG6uI=; b=DoQxYnQFByaN gR9aVsbchMgWQd4CnE0mKzuAIFCn+TWz9QT8y0yFCGpAAyXT8ko+UKZfcYKii5MQ lnPrgTnS/beuHSe0r9wOQKDxbMYuz666BjnlceB/In9IgMpZQgj0376ihprrtAbU pdwSs9bQkSs6RZivFDGQRLTnWjIWxsIFj2lzz2gC+2dxITyfaTumgERDIqmaedxw WFnQqcYBn/1V5NL8TTFqmBPqC3CtvTSF0imC6ZyzIvva+QJKJ20VCf1KZoaslOE/ wBzHBrDPGi0ZGvm4wC1dgQHRIXWZ+usExt+2WCN+UbtyH8t8WXlNZCkk7ftJ8FaT kMLOBH1svw== Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by mx0b-002c1b01.pphosted.com (PPS) with ESMTPS id 3rx2fdrvnb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Jul 2023 23:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DsKRmhozv4bKfarQS7dwOwLsw4SzunRN3Ak6X/QVv/teIi/XQyaSOmZAzTZh9+CEEar1NNhzbpfAWfwnMqy/YwIqYYjPfoigq2qlXD6McQG6LpkAmqTIviG9/0ue0zcHKTCP89GGIlhWpyhOHCFZPuwdBSxuuScQRBFhFwOczn5PSoAqxWj4cg6KPH0xZvnnjsnvf/LTYUJiK+Yu79y/mq+UKvSA0cPYqHR/7pu6vLrqrFmlpR9dsN7g5gIVfY52PlI+z7qsFvK6XH+GMjJS1Wu01zH3AdyUdP7kZPoz33O3Zs5wvIlmxMucipX0uMvwCgyFy1r1ltJUhUmz75Xegg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TP4EfPhSMHwM9eRNDGmysr0mUcKDQuXso44/cVGG6uI=; b=jMMa6Z9fnfD1j7zLo1j4pMfbBLJItDA9nKejBQjVWLF0R3CcOomtFwbq6w2+XrGl7coZ+MqtID3qNpR7s1f8JlLbNYUwj7WnKtv0dcdAYcNUU0yDXK6j/EEocnmJ7iFQOedBZ1m0Y/4DXApi0BAZ3Zv0h6cs+HjRM7T3MGdmh3PafUPGSvmx64CTeD3yXHCwR7/Jx8mMSzBWsZVUwvoIP87jR8rSh8Rpn/c2zVeeetq/HJGg7hIsDlxLl+LYITRY+LeAMw/HoxFH8B6vRbGH0lZWyJP0oxQlhTxdSub662loSmHz0xd2I86nn9zwQO0XDYLt59RN4OaWdfeDVAydvQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nutanix.com; dmarc=pass action=none header.from=nutanix.com; dkim=pass header.d=nutanix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nutanix.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TP4EfPhSMHwM9eRNDGmysr0mUcKDQuXso44/cVGG6uI=; b=BT1UaEb/VLDrK/9O3nuLSpSpoSLMxXVLuj4XDyyjcF3rVqVlapEBdb/qJD0Dv+lxz2oYRPYVEMps2bY8D+IYPyciBNEF14ASIxGlM9GnhfuWBfftKCMpQNchbRt+FEahiXN5kQcaWmGA/O5JGYieW6Ff4HaGRi0UoQofvVeSjocHHDB5q5stIJ1sU7yGLFsar/+clFZ91K63db/k9T3t40NPM9hWTZlwU8acjnAWDAZrpOLiNYEraKkYxjlBIIq3eTTYXZV1WT13BqwFt/iqMTkLyT5o+yfHV/iJcd+Z9X/2Jwo5uXNF7VBjwtyyuSdAKxfjo7mRfR7jmwUfIHsyUw== Received: from BYAPR02MB4806.namprd02.prod.outlook.com (2603:10b6:a03:42::30) by DS0PR02MB9572.namprd02.prod.outlook.com (2603:10b6:8:f5::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.22; Wed, 19 Jul 2023 06:35:02 +0000 Received: from BYAPR02MB4806.namprd02.prod.outlook.com ([fe80::82a3:a948:abf6:8676]) by BYAPR02MB4806.namprd02.prod.outlook.com ([fe80::82a3:a948:abf6:8676%2]) with mapi id 15.20.6609.022; Wed, 19 Jul 2023 06:35:02 +0000 From: Tejus GK To: "qemu-devel@nongnu.org" CC: "quintela@redhat.com" , "peterx@redhat.com" , "leobras@redhat.com" , "berrange@redhat.com" , Aravind Retnakaran , Shivam Kumar , Tejus GK Subject: [PATCH v3 0/2] Update error description outside migration.c Thread-Topic: [PATCH v3 0/2] Update error description outside migration.c Thread-Index: Adm6CyWS6nNbte65xEGX7GvfShzCAA== Date: Wed, 19 Jul 2023 06:35:02 +0000 Message-ID: <20230719063455.128000-1-tejus.gk@nutanix.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR07CA0060.namprd07.prod.outlook.com (2603:10b6:a03:60::37) To BYAPR02MB4806.namprd02.prod.outlook.com (2603:10b6:a03:42::30) x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BYAPR02MB4806:EE_|DS0PR02MB9572:EE_ x-ms-office365-filtering-correlation-id: 3508f664-8cb4-476e-14df-08db88224815 x-proofpoint-crosstenant: true x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: P0tVBN+LGEFyLqx5hhG0O80hESGg9ZKfjGwv7zSANrc8ZG3xoKy56GZnd1+grP+CuDoRqLtXGA5ACp5ZfMkFLPCkV0bbmbih0gMDGQhfb+RAirj1xZlqCMnwkAaGIL5fS5QspXVyUKf49vBvfG6WpAlkiUfipatvB/dJDVOK/+jH1mtFbLKZ9hQ4YIs8tDajeFrfediUZ9ylqP4/SrYVVgs/k0J41mF+fiLpCXMV0Hi6yXHP3kmOYhcod1CXwXXF8TLPP8+8NNo8IEGl1K8sZrmAwt9zEKksGwtGFYsF7yO+E1/FcavtbtaUmaCCEn4s3YCCSLiuUkb1TSmkqhI1ZXvifS7yl8YG1jp2WoN7YBI5E1YGbqpkHSLloNalmgFXdgZdRmliEEEV9iflB94E06waZunECS/E0LufaaAktBXBwJUrLxLF4Sz8fwpSd/FucrkX5cl3LjGWu4HZPrheh/zhrEQNQ71192tJsQpZiavzXdiGKN/lEv6s56a0babiCaAJkJpbWG5lzwJRKkLPHFcY7k6Wc+h+HmVAEbckhNmFDJDDrCZbBJQRGUdHnLMUOLOXsaGBL1UlIk+cA7jJDYvIyJ49AEyVt/TsZZre/ZTmGTKYzWId+Qw0Uw2R/U3j x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR02MB4806.namprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(346002)(396003)(39860400002)(366004)(136003)(376002)(451199021)(107886003)(6506007)(71200400001)(83380400001)(1076003)(38100700002)(186003)(26005)(38350700002)(478600001)(6486002)(54906003)(66476007)(6512007)(41300700001)(8676002)(66446008)(2906002)(4744005)(8936002)(66556008)(15650500001)(6916009)(66946007)(316002)(4326008)(5660300002)(36756003)(52116002)(2616005)(64756008)(122000001)(86362001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?/QzpTHWbyxBegm21AWpzvhG2gf1F?= =?utf-8?q?yAiV9xqSRGBh/NcAf8WkbR7yjdgsev7ne1zq1Vi/A+6n5+lT6m02VmLH5/doRDPbI?= =?utf-8?q?Qu6Xk1Qx9YX6fVfrUcFGkyHvS9NrLfquMZsZUK+nEZSPgsHr2DSe+QuNUogerH+q3?= =?utf-8?q?ZoON7ROedArqme8/k/pb6jx+rniC9tKjcVZJHCK2Loew8axxtwcavYxQO80Rok/Q6?= =?utf-8?q?044XTh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hVAqke0Ykb5spDpyhWNBPRo3AHzrJDYp3rTIYnQErNZpZP+0p3ch1W+?= =?utf-8?q?RDqdfTKzWSjjUczN7tUy0NSDlcBC/lGqbhxdenzb1rMS8I7tkmUo9pvvnaqOfjPjW?= =?utf-8?q?GikAhly9ZcoEdxtPsYn8zu2NuyvTrQtJVmglyMAdVcFBiz85Nt+q5u/PH7ciTmMSx?= =?utf-8?q?bDAfjdXkNhIuAOrLiFb+8To1F2F7qjzmuIl0Lnps3KUocc9zSkD16wKNc/MuCAk2Z?= =?utf-8?q?hyt4dYg/W/nvq+FPBlG2q4SFxLXMMZ2nl9xf6J81GCN8sZz8mwAO7gUjCirZDj7zY?= =?utf-8?q?xr5QiwxWmwVLZJUxyHtWRT0Wn+HsKtpIDVbzTUypVHeRlVg23LHyvnNIksDDEiLsX?= =?utf-8?q?CM4p5E+bUDPIP+CVFu+1rutW2KmeBG8FGzTxRkqNIfMrMNy5o0bHwGyVHM006iRE2?= =?utf-8?q?MPDAWiGf9NKBYNPrDXOuL5I3Q4rcRUZfCw=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: nutanix.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR02MB4806.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3508f664-8cb4-476e-14df-08db88224815 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jul 2023 06:35:02.2275 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: bb047546-786f-4de1-bd75-24e5b6f79043 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: HFWeM42P6f/el3+9Os4XCJtpxVbnk969mTN2eMTwkQ3DI/Lc+/xUyJ+64vieXFMZkVV0eyth4RnDmgVJuJjZ+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR02MB9572 X-Proofpoint-ORIG-GUID: QBgZm1AVTpKphP05IERGilWVwhR9k6QP X-Proofpoint-GUID: QBgZm1AVTpKphP05IERGilWVwhR9k6QP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-19_03,2023-07-18_01,2023-05-22_02 X-Proofpoint-Spam-Reason: safe Received-SPF: pass client-ip=148.163.155.12; envelope-from=tejus.gk@nutanix.com; helo=mx0b-002c1b01.pphosted.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Hi everyone, I'm sending out the rebased version of the v2 patch, please review. Thanks, Tejus Changelog: v3: - Rebase on master v2: - Rebase on master Tejus GK (2): migration/vmstate: Introduce vmstate_save_state_with_err migration: Update error description outside migration.c include/migration/vmstate.h | 4 +++- migration/savevm.c | 19 +++++++++++++++---- migration/vmstate.c | 19 +++++++++++++------ 3 files changed, 31 insertions(+), 11 deletions(-)