From nobody Fri Nov 21 10:12:04 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=1762444842; cv=none; d=zohomail.com; s=zohoarc; b=OhzaKbIXQH5nt8q0aJU24U2ZBREnPDBB2188mQJ/um2Jk851YyxFlBnSiTgCNcqACCu2vtwkMoRqxa4psRrFhIaFGiPhMDvpQe0oLa7UvpTMwL2Fg8kUYIuot+R7GCCVZqvOiFvvqP9llJwBJKt3DjuaCPKCzgYAjS/twED2mxU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1762444842; 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=XLrk8vC6v/5S8gnKXY5F4EW326hoDu/9YBVXVBKZl5s=; b=iQe4LDmLFBlaIHZuYls/bSB7eKX4gEj9Os/rlA4RKtVjF4gRGPpZDgTe1HMgMDI0JMtA5eMTWN51hqhOemMzg2sy9Tvb7PsRE2ez2OR4UBtdvOh30Pk9v6Mgx9/EqFIvK5NkCyJyRS2NDug2W/oM0lqnaiwe/yEfRH+NAFbKPic= 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 1762444842334793.4244548657513; Thu, 6 Nov 2025 08:00:42 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 325EE44412; Thu, 6 Nov 2025 11:00:41 -0500 (EST) Received: from [172.19.199.29] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id EDB8E444C4; Thu, 6 Nov 2025 10:50:59 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id A95F243F85; Thu, 6 Nov 2025 10:50:47 -0500 (EST) 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 DFE0F44232 for ; Thu, 6 Nov 2025 10:49:05 -0500 (EST) Received: from mx-prod-mc-08.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-191-uJZJfUk-MKmVwHLEyi1hSw-1; Thu, 06 Nov 2025 10:49:04 -0500 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 532601800372 for ; Thu, 6 Nov 2025 15:49:03 +0000 (UTC) Received: from orkuz (unknown [10.43.3.115]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id DF03419560A7 for ; Thu, 6 Nov 2025 15:49:02 +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=-5.0 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, 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=1762444145; 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=XLrk8vC6v/5S8gnKXY5F4EW326hoDu/9YBVXVBKZl5s=; b=QHYR2WG+7qwTH6ZjfRV/pFwxfFoxt1NFrVv483ToqemjNSye9WMrhj84EdDLPeSh1FIowq HwDu8cXxpRcrYz2UiBwn9Hl0GOtIrcSbQHFf8yyoGnqQcDlsEHYkBVk0LbXVkHQ1dbpgaV nTLQvRid41J1lfZRJHjccT/aeHuA4y8= X-MC-Unique: uJZJfUk-MKmVwHLEyi1hSw-1 X-Mimecast-MFC-AGG-ID: uJZJfUk-MKmVwHLEyi1hSw_1762444143 To: devel@lists.libvirt.org Subject: [PATCH 08/29] sync_qemu_models_i386: Print current model for unknown features Date: Thu, 6 Nov 2025 16:48:25 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 0y2xKQhPfmFZw6Vcdb9QgVLMwyClilMiJgCGa3FIJS0_1762444143 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: H437SAJKXESLQADGJOCHCFWIKXBRQOZF X-Message-ID-Hash: H437SAJKXESLQADGJOCHCFWIKXBRQOZF X-MailFrom: jdenemar@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: Jiri Denemark via Devel Reply-To: Jiri Denemark X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1762444845202154100 Content-Type: text/plain; charset="utf-8" From: Jiri Denemark This way one can just grep for all warnings in the script output and still be able to see for which CPU model is defined using features the script doesn't know about. Signed-off-by: Jiri Denemark --- src/cpu_map/sync_qemu_models_i386.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cpu_map/sync_qemu_models_i386.py b/src/cpu_map/sync_qemu_m= odels_i386.py index a6f1da5eda..37abe6289a 100755 --- a/src/cpu_map/sync_qemu_models_i386.py +++ b/src/cpu_map/sync_qemu_models_i386.py @@ -23,7 +23,7 @@ def translate_vendor(name): return name =20 =20 -def translate_feature(name): +def translate_feature(name, model): T =3D { "CPUID_6_EAX_ARAT": "arat", "CPUID_7_0_EBX_ADX": "adx", @@ -325,7 +325,7 @@ def translate_feature(name): if name.replace("-", "_") =3D=3D v.replace("-", "_"): return v =20 - print(f"warning: Unknown feature '{name}'") + print(f"warning: Unknown feature '{name}' in model '{model}'") return name =20 =20 @@ -480,7 +480,7 @@ def expand_model(outdir, model): for k in [k for k in model if k.startswith(".features")]: v =3D model.pop(k) for feature in v.split(): - translated =3D translate_feature(feature) + translated =3D translate_feature(feature, result["name"]) if translated: result["features"].add(translated) =20 @@ -513,7 +513,7 @@ def expand_model(outdir, model): props =3D version.pop(".props", dict()) for k, v in props: if k not in ("model-id", "stepping", "model"): - k =3D translate_feature(k) + k =3D translate_feature(k, result["name"]) if k is None: continue =20 --=20 2.51.0