From nobody Mon Feb 9 17:04:59 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.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=1605698466; cv=none; d=zohomail.com; s=zohoarc; b=C9QHwYL4pFyU4JiXHXJn/gA/ZWUichfRPtVZ/4DT/88XiH0O/QYYY/eKmyLsgpmY4zynk9eiCj5uXw9bzzfAHRBcKUBnLKDr9luVtKj/PhrPtszVKPMxqrsnMgZ7T7zKvNbsnzLmI9q+hVawgqZhtTcPMkVgtBX+6AvhV0fDNYY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605698466; 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=u+4jwPj7Ceg8Xh6Mzaig+cKpatye6zpjjXvXjnOkesw=; b=ASxaRQy3bRla9L6Z9jNvgCtTBip2pu1mqdvXHuYLN7Ak6FXiBFDo9opQGEVJ2ED6BXzpRTf6pb0jJGt1I0zLoC/FyKlEQiSvKXn+sVH2fY/nXGwdcxCTph6mQllmr+9P6s+yhXdlbLzVnidvFSAuDuVW40Np/+lHcqjSr6WdgPM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1605698466043701.9647336391889; Wed, 18 Nov 2020 03:21:06 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-315-Hv4T4yq9PJKyI9C4V8Mm9A-1; Wed, 18 Nov 2020 06:20:16 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E65628042BD; Wed, 18 Nov 2020 11:20:09 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BD0605C1BB; Wed, 18 Nov 2020 11:20:09 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 844BE58127; Wed, 18 Nov 2020 11:20:09 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0AIBK2jF008252 for ; Wed, 18 Nov 2020 06:20:02 -0500 Received: by smtp.corp.redhat.com (Postfix) id 590DA1002382; Wed, 18 Nov 2020 11:20:02 +0000 (UTC) Received: from work.redhat.com (ovpn-114-34.ams2.redhat.com [10.36.114.34]) by smtp.corp.redhat.com (Postfix) with ESMTP id B742810013C4; Wed, 18 Nov 2020 11:19:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605698465; 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=u+4jwPj7Ceg8Xh6Mzaig+cKpatye6zpjjXvXjnOkesw=; b=RNFCbldWFdNg13ANfdAN2ixjFIDCxzc5Ai0Rlbw0oRzt3htdOt/4tBTx5lK3wqdrORj0xG vNhJW6FjPzwbJfRcCQggIFcf5RF2+jIKLmqyZXuIjmAst9BZV1crELhZCiz5esgXzwEvaO M8WLGLxLesjGjM56Yy1vHJ4KYsL4cBM= X-MC-Unique: Hv4T4yq9PJKyI9C4V8Mm9A-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 3/3] cpu_map: sync_qemu_i386: Detect features missing in libvirt Date: Wed, 18 Nov 2020 12:19:49 +0100 Message-Id: <20201118111949.32551-4-twiederh@redhat.com> In-Reply-To: <20201118111949.32551-1-twiederh@redhat.com> References: <20201118111949.32551-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 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) Content-Type: text/plain; charset="utf-8" Signed-off-by: Tim Wiederhake --- src/cpu_map/sync_qemu_i386.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/cpu_map/sync_qemu_i386.py b/src/cpu_map/sync_qemu_i386.py index 684fc96dc0..8844aa00cd 100755 --- a/src/cpu_map/sync_qemu_i386.py +++ b/src/cpu_map/sync_qemu_i386.py @@ -5,6 +5,7 @@ import copy import lark import os import re +import xml.etree.ElementTree =20 =20 T =3D { @@ -382,6 +383,15 @@ def main(): "Features not in the translation table:", ", ".join(sorted(untranslated))) =20 + filename =3D os.path.join(args.outdir, "x86_features.xml") + DOMTree =3D xml.etree.ElementTree.parse(filename) + known =3D [x.attrib["name"] for x in DOMTree.getroot().iter("feature")] + unknown =3D [x for x in features if x not in known] + if unknown: + print( + "Features not in libvirt:", + ", ".join(sorted(unknown))) + =20 if __name__ =3D=3D "__main__": main() --=20 2.26.2