From nobody Mon Feb 9 05:19:20 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1658753168; cv=none; d=zohomail.com; s=zohoarc; b=FxN3RDco7DyK6SluXNC3GgI5CzditcBKvouRslauD/hFSb296XTSMx+pHp6A5o5HzHNobCjb+vP9h6vL7JT7W86DjWtnZLmvQiBqKhD+RM2rM4S8umT1i28uO5O/SbG1V4xdIUen2iJc27U6NxrCRpKa5JiPkbYfsoHoepoaTg8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1658753168; h=Content-Type:Content-Transfer-Encoding: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=B7Yi4KhG/3veBBmH60GIZgoujVWZ+34Ux6XeX/7VVMs=; b=lFFI0dOKpFADVIP3kOFr7LgNLIA7odBP8FtV9sgGutuLMuC+lFBHJ4fYDS3jROSCW1tKSDaYG+PNHforcv7gkn4CigoU3ihU8mgIEp4swV+5lgNUaR75Ns4I3WWuYgMpE3Fdi0Tmq1VNyC5MNRYee89SAWsHSdRw7YiSMuc8PA4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1658753168249704.2679671878834; Mon, 25 Jul 2022 05:46:08 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-63-ruYhtVgQPCOLoAehqul6oQ-1; Mon, 25 Jul 2022 08:45:34 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E59F71035341; Mon, 25 Jul 2022 12:45:31 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id D01951121314; Mon, 25 Jul 2022 12:45:31 +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 9D4821945D83; Mon, 25 Jul 2022 12:45:31 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 0B68E1945D90 for ; Mon, 25 Jul 2022 12:45:30 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id EF2DF18EB5; Mon, 25 Jul 2022 12:45:29 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id 690C518EAA for ; Mon, 25 Jul 2022 12:45:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658753167; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=B7Yi4KhG/3veBBmH60GIZgoujVWZ+34Ux6XeX/7VVMs=; b=fwpsLx8YwN8lnDOQ+yS11YddvZdo0jS4kb8RdhabK12YJxOgI0o4qHNH/vK9QwO6WGMOuW 7dAwAt10lJlG+hT3Zeq3GQuK5iZcRxXKgVXLMJDQ/CsXe6csPX7GN18MjPD9aVN8G5olZ4 gnPF4qETad5TcQvIiZg6Y0WhIQdwImw= X-MC-Unique: ruYhtVgQPCOLoAehqul6oQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 5/5] qemu: monitor: Split up enum strings definitions Date: Mon, 25 Jul 2022 14:45:22 +0200 Message-Id: <1b7dd555829ff787224f34f1a5096a0c6b8beb01.1658753062.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 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: 1658753169474100001 Content-Type: text/plain; charset="utf-8" The VIR_ENUM_IMPL macros directly above them list one string per line. Use the same also for qemuMonitorMigrationStatus and qemuMonitorVMStatus. Signed-off-by: Peter Krempa --- src/qemu/qemu_monitor.c | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c index 9687746703..6ebdeb46f3 100644 --- a/src/qemu/qemu_monitor.c +++ b/src/qemu/qemu_monitor.c @@ -144,20 +144,37 @@ VIR_ENUM_IMPL(qemuMonitorCPUProperty, VIR_ENUM_IMPL(qemuMonitorMigrationStatus, QEMU_MONITOR_MIGRATION_STATUS_LAST, - "inactive", "setup", - "active", "pre-switchover", - "device", "postcopy-active", - "postcopy-paused", "postcopy-recover", - "completed", "failed", - "cancelling", "cancelled", + "inactive", + "setup", + "active", + "pre-switchover", + "device", + "postcopy-active", + "postcopy-paused", + "postcopy-recover", + "completed", + "failed", + "cancelling", + "cancelled", "wait-unplug", ); VIR_ENUM_IMPL(qemuMonitorVMStatus, QEMU_MONITOR_VM_STATUS_LAST, - "debug", "inmigrate", "internal-error", "io-error", "paused", - "postmigrate", "prelaunch", "finish-migrate", "restore-vm", - "running", "save-vm", "shutdown", "watchdog", "guest-panicke= d", + "debug", + "inmigrate", + "internal-error", + "io-error", + "paused", + "postmigrate", + "prelaunch", + "finish-migrate", + "restore-vm", + "running", + "save-vm", + "shutdown", + "watchdog", + "guest-panicked", ); typedef enum { --=20 2.36.1