From nobody Mon Feb 9 19:53:50 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.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; dmarc=pass(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1640931984; cv=none; d=zohomail.com; s=zohoarc; b=OCuhc951s2zI2LFzJdATdij7roQEoQWNqfmK5u2t7l2co7qrtQOw3YZRXpn+Zt1OTSX1tmMBvvSXpPneN63FbbsWUSK8zFQaAa4UKUnxB4jdKHffjM/2rsslrepHNjlw0yPxE2EigWCNCYtJRUmuskSR2ZqN8Goder62uwILyH4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1640931984; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=p1gBamA908MjB2IQaJSns6LK7m02LL21vW+VrURKwqE=; b=C13lMwRooe8GBKv8/acfh73/G2AwBIy7WyFuAQXq/upef9yf1Zz1EwOyw1plLGpDJLjS0NbHjRTzb62NwIb5ZsM9+8/PZihA24aYwH6zHL36Nf9cKrd/S+tn4Lh6ZN9ZH7x9nDIuMim40Awsk5YH6ZOzIigkHqpD3MdEJFTejyc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16409319838831015.7475660948398; Thu, 30 Dec 2021 22:26:23 -0800 (PST) Received: from localhost ([::1]:42090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3BMs-0001Zo-Kj for importer@patchew.org; Fri, 31 Dec 2021 01:26:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3B7V-0003NI-MN for qemu-devel@nongnu.org; Fri, 31 Dec 2021 01:10:31 -0500 Received: from mga05.intel.com ([192.55.52.43]:3743) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3B7S-0008Hw-Mb for qemu-devel@nongnu.org; Fri, 31 Dec 2021 01:10:28 -0500 Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Dec 2021 22:10:23 -0800 Received: from unknown (HELO localhost.localdomain) ([10.239.13.19]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Dec 2021 22:10:22 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1640931026; x=1672467026; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jDBQXCJr6mRM51CY171mIjAONQezSBEhlvTSUD3CMC8=; b=oHDk42SZcD+GiK4grelCVlAMGvHqIDpO2Ow1rpJ28AgRDLKRRkuZsR7k gK4NApVqGttfx3zkJASibyzGclCrrv/w7TQrXD8ofTuRGla9QsOkLosa9 jVI2xSehtMsADGBQFLfasXQHu+mkmP3P6/18BF4dAmZsjI4Oa4H/UOs0q VxZ9BUSDt6IpUz2QPM+K8GVizCiIqcb0F8Gxc3lLoyzfXEJ2RUrDjvEoK Q/3w/lyJqU6CUk75IWWj/Yjw6UTIAo8SyhPR9Kp4kk0dYL3w77k5Te4+w 0ooFhaPseMeO/nievh9GS2fYs2CgI6H3hyRCpRzkEVKGpXQP0S4xKHLkn Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10213"; a="328110766" X-IronPort-AV: E=Sophos;i="5.88,250,1635231600"; d="scan'208";a="328110766" X-IronPort-AV: E=Sophos;i="5.88,250,1635231600"; d="scan'208";a="470867810" From: Zhang Chen To: "Dr. David Alan Gilbert" , Juan Quintela , qemu-dev Subject: [PATCH 3/3] migration/migration.c: Remove the MIGRATION_STATUS_ACTIVE when migration finished Date: Fri, 31 Dec 2021 13:59:35 +0800 Message-Id: <20211231055935.1878503-4-chen.zhang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211231055935.1878503-1-chen.zhang@intel.com> References: <20211231055935.1878503-1-chen.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=192.55.52.43; envelope-from=chen.zhang@intel.com; helo=mga05.intel.com X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) DKIMWL_WL_HIGH=-0.573, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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: , Cc: Zhang Chen Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1640931985143000001 Content-Type: text/plain; charset="utf-8" The MIGRATION_STATUS_ACTIVE indicates that migration is running. Remove it to be handled by the default operation, It should be part of the unknown ending states. Signed-off-by: Zhang Chen Reviewed-by: Juan Quintela --- migration/migration.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index 3fac9c67ca..21e1498f46 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -3625,12 +3625,6 @@ static void migration_iteration_finish(MigrationStat= e *s) "COLO enabled", __func__); } migrate_start_colo_process(s); - /* Fallthrough */ - case MIGRATION_STATUS_ACTIVE: - /* - * We should really assert here, but since it's during - * migration, let's try to reduce the usage of assertions. - */ s->vm_was_running =3D true; /* Fallthrough */ case MIGRATION_STATUS_FAILED: --=20 2.25.1