From nobody Sun Feb 8 13:44:59 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1654087834; cv=none; d=zohomail.com; s=zohoarc; b=lu/++HAdGFtl7qEDt45yh6VcHChN4sKDNzd9rBseMD9DDiZchQ0CDAp1xP2Bj7yV8k5IrE/TGwfEoQBX+WC8zCCwwUGTo4ysFUwEosvu2P6o6HI/i2PTi7JPmeB/MUUlJ5VlTdPk3UEtismRR3kHdNcUhzjnGsUCwApEt1AFzJ4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1654087834; h=Content-Type: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=r2ybUFANwvMh51gkBsHbeaJdoYG9gcNeAqcwgDmQhEM=; b=TwTyh6JcuUqJZZlG3sq9pguOpo96gDIp80T3bqDB0hvvlB0WCzgDcRRvfXx4lterIe2LGknjLbY7/nmvtLcVn+r1l/UsCT0HFAkLB+iW2chs1ysS81b3r5EqjkfDN6qcmdzcmzCSWfuKORnYcWe97ky3NEt3XgNvMvDNcaJ3tRw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1654087834722763.1205352735936; Wed, 1 Jun 2022 05:50:34 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-314-FmKurMdkPGafq4SsUsuYsA-1; Wed, 01 Jun 2022 08:50:31 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 718D1294EDDA; Wed, 1 Jun 2022 12:50:29 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id D74B08289E; Wed, 1 Jun 2022 12:50:28 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id D0A4B1947B89; Wed, 1 Jun 2022 12:50:27 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id A85481947079 for ; Wed, 1 Jun 2022 12:50:26 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 918B42026987; Wed, 1 Jun 2022 12:50:26 +0000 (UTC) Received: from virval.usersys.redhat.com (unknown [10.43.2.227]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 70E322026D07; Wed, 1 Jun 2022 12:50:26 +0000 (UTC) Received: by virval.usersys.redhat.com (Postfix, from userid 500) id 5D9DE241055; Wed, 1 Jun 2022 14:50:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654087833; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=r2ybUFANwvMh51gkBsHbeaJdoYG9gcNeAqcwgDmQhEM=; b=KsnfoT9I98oV8Pl2EuFly2eTc6CEWnjrN+Gk8ewRHBj6eFANjOFI8+2XFPLJnbpvOF1cji jbsetupWFWy94GAbyhDJRGWzcJgP8XRkmDAJc9g3RC415eIkuCOP9rwlSElPLoIMUkBhge w1I7t80Wb6/QcinLTDvzw+iZjuLjbo0= X-MC-Unique: FmKurMdkPGafq4SsUsuYsA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Jiri Denemark To: libvir-list@redhat.com Subject: [libvirt PATCH v2 01/81] qemu: Add debug messages to job recovery code Date: Wed, 1 Jun 2022 14:49:01 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Krempa , Pavel Hrdina Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1654087835781100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Jiri Denemark Reviewed-by: Peter Krempa Reviewed-by: Pavel Hrdina --- Notes: Version 2: - no change src/qemu/qemu_process.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 1593ca7933..e8936cd623 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -3374,6 +3374,9 @@ qemuProcessRecoverMigrationIn(virQEMUDriver *driver, (state =3D=3D VIR_DOMAIN_RUNNING && reason =3D=3D VIR_DOMAIN_RUNNING_POSTCOPY); =20 + VIR_DEBUG("Active incoming migration in phase %s", + qemuMigrationJobPhaseTypeToString(job->phase)); + switch ((qemuMigrationJobPhase) job->phase) { case QEMU_MIGRATION_PHASE_NONE: case QEMU_MIGRATION_PHASE_PERFORM2: @@ -3435,6 +3438,9 @@ qemuProcessRecoverMigrationOut(virQEMUDriver *driver, reason =3D=3D VIR_DOMAIN_PAUSED_POSTCOPY_FAILED); bool resume =3D false; =20 + VIR_DEBUG("Active outgoing migration in phase %s", + qemuMigrationJobPhaseTypeToString(job->phase)); + switch ((qemuMigrationJobPhase) job->phase) { case QEMU_MIGRATION_PHASE_NONE: case QEMU_MIGRATION_PHASE_PREPARE: @@ -3530,6 +3536,13 @@ qemuProcessRecoverJob(virQEMUDriver *driver, =20 state =3D virDomainObjGetState(vm, &reason); =20 + VIR_DEBUG("Recovering job for domain %s, state=3D%s(%s), async=3D%s, j= ob=3D%s", + vm->def->name, + virDomainStateTypeToString(state), + virDomainStateReasonToString(state, reason), + virDomainAsyncJobTypeToString(job->asyncJob), + virDomainJobTypeToString(job->active)); + switch (job->asyncJob) { case VIR_ASYNC_JOB_MIGRATION_OUT: if (qemuProcessRecoverMigrationOut(driver, vm, job, --=20 2.35.1