From nobody Tue Sep 9 13:55:53 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1756478083; cv=none; d=zohomail.com; s=zohoarc; b=ipmhF3wpRYdgn0ahXpJ/4nbJwoPTW4zESCS0By4X3N07lOXRVKQPgOsNzGeYnubs0zEnMLwCEKRtIFLgSXGIDT+PKRAzwuQDyJYfct9X3QK0azRvOZFPdSYjjZtfCDVPovuYFgoZ62vywnpY25gFR6uqtkEAFV0avcTMedn2M+0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1756478083; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id:Cc; bh=OnwoXEBWCxElm4BQIuNSNX/NpEFYzG94GKy541kH2Gg=; b=KMObI4wkxEaru8zbKD0C59WjdBIdfsXtc4WDsqcc9qGnvAfVXVVTZV3GIbccT+hqDPA1U68twqQ3yXj0JVdyZNTTSHR/SADhP8iLUptfThfEo1GGRdpQj4MbGJ7F0NDTqB8fUs6qVz6lpaMQh6wc0newIhJkj+RG3SDAGaFUdZs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1756478083212446.67842986799064; Fri, 29 Aug 2025 07:34:43 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 993) id 9980E4413A; Fri, 29 Aug 2025 10:34:42 -0400 (EDT) Received: from [172.19.199.3] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id 2ADDD4438A; Fri, 29 Aug 2025 10:20:24 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 993) id 3708E441A3; Fri, 29 Aug 2025 10:19:49 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 54F474411E for ; Fri, 29 Aug 2025 10:19:45 -0400 (EDT) Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-297-5Oe4QSShPTmqMqzYTXUV3g-1; Fri, 29 Aug 2025 10:19:43 -0400 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B5FBA1800297 for ; Fri, 29 Aug 2025 14:19:42 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.44.22.3]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id EC70919560AB for ; Fri, 29 Aug 2025 14:19:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1756477185; h=from:from: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; bh=OnwoXEBWCxElm4BQIuNSNX/NpEFYzG94GKy541kH2Gg=; b=PPI8AaFiGSeL+kRcl7WpZ245LBOdHXXgn4SAVOq0HXd9qeD7tNpekthDZJk4Dyfdyl0CGD MX5ML1AUoArpXfh9+pVfZAVoqOovl1flBSlb5gq3bEgTCk9v8fOg7WhpK0ekJOU4RNM2f9 adSXq2EfAgWTJJoIzLlBurf0b0uyDTw= X-MC-Unique: 5Oe4QSShPTmqMqzYTXUV3g-1 X-Mimecast-MFC-AGG-ID: 5Oe4QSShPTmqMqzYTXUV3g_1756477182 To: devel@lists.libvirt.org Subject: [PATCH 6/8] scripts: qemu-replies-tool: Dump data from query-version/query-target/query-kvm Date: Fri, 29 Aug 2025 16:19:30 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 9SZ4SqOqagtc_0IYK-IjKLVffoTqBgxjjtvYIH1r-Hg_1756477182 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: WHKZJC5JH7XDU4LO7W7QJA2CKBIHMHTL X-Message-ID-Hash: WHKZJC5JH7XDU4LO7W7QJA2CKBIHMHTL X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Peter Krempa via Devel Reply-To: Peter Krempa X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1756478085694124100 Content-Type: text/plain; charset="utf-8" From: Peter Krempa Process few other simple commands. While this output doesn't change places it's useful to see it when comparing the dumps of two .replies files. Signed-off-by: Peter Krempa --- scripts/qemu-replies-tool.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scripts/qemu-replies-tool.py b/scripts/qemu-replies-tool.py index 8e48268456..7cda1d57ad 100755 --- a/scripts/qemu-replies-tool.py +++ b/scripts/qemu-replies-tool.py @@ -500,6 +500,24 @@ def dump_machine_types(conv, dumpprefix): print(dumpprefix + '(machine alias) ' + a) +def dump_other(conv, dumpprefix): + for c in conv: + if c['cmd']['execute'] =3D=3D 'query-version': + print('%s(version) %s.%s.%s %s' % (dumpprefix, + c['rep']['return']['qemu'][= 'major'], + c['rep']['return']['qemu'][= 'minor'], + c['rep']['return']['qemu'][= 'micro'], + c['rep']['return']['package= '])) + + if c['cmd']['execute'] =3D=3D 'query-target': + print('%s(target) %s' % (dumpprefix, c['rep']['return']['arch'= ])) + + if c['cmd']['execute'] =3D=3D 'query-kvm': + print('%s(kvm) present:%s enabled:%s' % (dumpprefix, + c['rep']['return']['p= resent'], + c['rep']['return']['e= nabled'])) + + def process_one(filename, args): try: conv =3D qemu_replies_load(filename) @@ -520,6 +538,7 @@ def process_one(filename, args): dumped =3D True if args.dump_all: + dump_other(conv, dumpprefix) dump_qom_list_types(conv, dumpprefix) dump_device_and_object_properties(conv, dumpprefix) dump_machine_types(conv, dumpprefix) --=20 2.51.0