From nobody Fri Dec 27 15:13:09 2024 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=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1732801722147961.7234653574707; Thu, 28 Nov 2024 05:48:42 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 7DD1E130C; Thu, 28 Nov 2024 08:48:41 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 88DCB19D9; Thu, 28 Nov 2024 08:47:31 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 327951CAB; Thu, 28 Nov 2024 08:47:26 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 3C7791D0D for ; Thu, 28 Nov 2024 08:47:09 -0500 (EST) Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-617-_oVL1wZjM9S4cS2CraXIYw-1; Thu, 28 Nov 2024 08:47:07 -0500 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-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7B4A91955EA9 for ; Thu, 28 Nov 2024 13:47:06 +0000 (UTC) Received: from orkuz (unknown [10.43.3.115]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 094FF1955F41 for ; Thu, 28 Nov 2024 13:47:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1732801628; 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=ivKWixb5KbIQKEobWl0moZ0EtKTTOIpXfYeZa5JqxzU=; b=dczB7evkZb5tD24TV/RODc6zDRA0eAQ3FzhiS7uUpWPlEX/P1bslgoep3iPHr3MVVU0z9Z 4WjvHmrY8nvDv4HnYESeaIyTqGAaBaPo3vQ27YXQ/rMVpXvg88PQKOEHXzVaTEVHjYxfCW K48YvnPaEWyyB+HqSDR6MLk77Tvldqk= X-MC-Unique: _oVL1wZjM9S4cS2CraXIYw-1 X-Mimecast-MFC-AGG-ID: _oVL1wZjM9S4cS2CraXIYw From: Jiri Denemark To: devel@lists.libvirt.org Subject: [PATCH 3/5] sync_qemu_models_i386: Ignore old models Date: Thu, 28 Nov 2024 14:46:55 +0100 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: mGSzkglxDVspFJ_WLNZByq_sAXdU52bO2r5AXzXLbDI_1732801626 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: 6Q4ZKVEBJCUV3UZUIRA5DWOT6BOGCUL3 X-Message-ID-Hash: 6Q4ZKVEBJCUV3UZUIRA5DWOT6BOGCUL3 X-MailFrom: jdenemar@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1732801723343019100 Content-Type: text/plain; charset="utf-8" Do not try to generated definition of ancient models (and their versions). We don't want to generate (and then manually get remove before committing) -v1 variants of CPU models that are pretty much useless now. Signed-off-by: Jiri Denemark --- Notes: The main questions is which models should be in the list. All lowercase models should definitely be there. I also added Conroe and Penryn and all the Opteron_G* models. But I'm not quite sure if they should be there or not. src/cpu_map/sync_qemu_models_i386.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/cpu_map/sync_qemu_models_i386.py b/src/cpu_map/sync_qemu_m= odels_i386.py index 11fe1f7435..82437a6788 100755 --- a/src/cpu_map/sync_qemu_models_i386.py +++ b/src/cpu_map/sync_qemu_models_i386.py @@ -9,6 +9,31 @@ import lxml.etree import lark =20 =20 +# Old QEMU models we just ignore, they don't get any updates anyway. +old_models =3D [ + "486", + "athlon", + "Conroe", + "core2duo", + "coreduo", + "kvm32", + "kvm64", + "n270", + "Opteron_G1", + "Opteron_G2", + "Opteron_G3", + "Opteron_G4", + "Opteron_G5", + "Penryn", + "pentium", + "pentium2", + "pentium3", + "phenom", + "qemu32", + "qemu64", +] + + def translate_vendor(name): T =3D { "CPUID_VENDOR_AMD": "AMD", @@ -465,6 +490,9 @@ def expand_model(outdir, model): "signature": list(), } =20 + if result["name"] in old_models: + return + if ".family" in model and ".model" in model: result["signature"].append((model.pop(".family"), model.pop(".model"), --=20 2.47.0