From nobody Thu Apr 25 06:54:49 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1605698411; cv=none; d=zohomail.com; s=zohoarc; b=SHT/rpjY3vVNmS9KbOBNncgxz/tu8O4Rq0hkVAnezJ1BNC55SuPlliadF+V57GaT6tr8giqhw9apFFB7AGadN8xMKfi5FI+aMpjfbk5xerEHdbe82l26x+BbGBPBlJib0E5us0weZn4kEn9Fam6PW1/LnPaTo836CIPu/C3bmXM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605698411; 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=3ZSV+hYuj1V5p2/zVRD3+cquw9jQnXjdqhc616Z07Yc=; b=F4UbMb5c6+EyxYpHawintoDcVhhA4PdF92EmoZj5BpL2ky7bpeGrA7SYhXxx/hQLV1WRjzMWLru/CxLYdFM0vobv0aQ2+PTw8mv2LRHY3HrvFpLcM9Fq//BwZQIdVFV0aqpgVmoAnyTFEvzYpD2jh258u/U2ii4Zv69of6mtysA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 1605698411835466.8457198624668; Wed, 18 Nov 2020 03:20:11 -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-479-FLzMq3UbNXmhVL1zSvXEjw-1; Wed, 18 Nov 2020 06:20:08 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E8BEC186DD4F; Wed, 18 Nov 2020 11:20:00 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 84E1B5D9CD; Wed, 18 Nov 2020 11:20:00 +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 7FF2A180B658; Wed, 18 Nov 2020 11:19:58 +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 0AIBJvam008211 for ; Wed, 18 Nov 2020 06:19:57 -0500 Received: by smtp.corp.redhat.com (Postfix) id 3F6BC1001E73; Wed, 18 Nov 2020 11:19:57 +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 7CBAF10013C4; Wed, 18 Nov 2020 11:19:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605698410; 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=3ZSV+hYuj1V5p2/zVRD3+cquw9jQnXjdqhc616Z07Yc=; b=dlm0h/qMKc1Bzov7xDW8l+qnhoToYhKXJFs8RGPZA4UOSWLqj+BQQOZctysS+6gLXKicMr OGmMeYTfFicBQ4Lr7F0n7KqHtNSGW0imVkLCB+VAiLMlFVOCM1raf+9a/jYc0IKdtfeIDy J/TfuBBhl0GeaZg9LFIqL/pNHcFqMtw= X-MC-Unique: FLzMq3UbNXmhVL1zSvXEjw-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 1/3] cpu_map: sync_qemu_i386: Detect features missing in translation table Date: Wed, 18 Nov 2020 12:19:47 +0100 Message-Id: <20201118111949.32551-2-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.14 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 8deda869df..fb4eea101b 100755 --- a/src/cpu_map/sync_qemu_i386.py +++ b/src/cpu_map/sync_qemu_i386.py @@ -364,6 +364,16 @@ def main(): with open(name, "wt") as f: output_model(f, model) =20 + features =3D set() + for model in models: + features.update(model["features"]) + + untranslated =3D [x for x in features if x not in T.values()] + if untranslated: + print( + "Features not in the translation table:", + ", ".join(sorted(untranslated))) + =20 if __name__ =3D=3D "__main__": main() --=20 2.26.2 From nobody Thu Apr 25 06:54:49 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1605698419; cv=none; d=zohomail.com; s=zohoarc; b=JHSPlIK+U1NaPCdWP6oiLctDR9qr1lCMDR2aKvaU8sYMU5YJGOJwGO31l7jhaAdOQbXRJIm/SkMRzRrEiK6gkN06kcuKadKrhgLVJwPuwmiuK+lzVLJ6wSCSqgABnlbkbd2iIOyYXyxDGFXMsMkFw/TEE5SGTjZXATHpeZADTRA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605698419; 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=RTDtqBZGZOAFiXlWZEpFtW105kUDnvu960O5e7QqLP8=; b=GKQmNPEsUFf83Pl/gDNvQEswgi9XHbifldYywAb/2huLV6/s1Ml8AkBmtHoDtO+UQVbP/MOivI+LF56+7iXEjiREu/mw0nSwFJeBOjcbqqq+7ujSRy25Gr233u8N/5FeJKQ0SlDp2cMtxs6mens/XDCtPE6K9bM1Vy58iAWkaxE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 16056984196311014.7734558141622; Wed, 18 Nov 2020 03:20:19 -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-0rxfhhCWM_GqkJwIxC761w-1; Wed, 18 Nov 2020 06:20:15 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E6C621008304; Wed, 18 Nov 2020 11:20:09 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C3E736B8E1; 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 87537180BACB; 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 0AIBJwxh008219 for ; Wed, 18 Nov 2020 06:19:58 -0500 Received: by smtp.corp.redhat.com (Postfix) id 590D21001E73; Wed, 18 Nov 2020 11:19:58 +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 97C4810013C4; Wed, 18 Nov 2020 11:19:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605698418; 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=RTDtqBZGZOAFiXlWZEpFtW105kUDnvu960O5e7QqLP8=; b=Q2YFukKwmGbm0BU5PvhwtRMmRGSkhtl8D3hnuDkd2Yk1rVqhkm+xei2Mr9as66kdylAN96 M7sgAO4vdV3UWfRBpzXmdcGz/J/0MzH52YOnT+lw7PSk3o+Q2z/OKUkk0Sc9IJVLFODY2V KkQ1ieucUjsiAWJiLS/xrfuOBgjlzj0= X-MC-Unique: 0rxfhhCWM_GqkJwIxC761w-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 2/3] cpu_map: sync_qemu_i386: Add features missing in translation table Date: Wed, 18 Nov 2020 12:19:48 +0100 Message-Id: <20201118111949.32551-3-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.13 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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cpu_map/sync_qemu_i386.py b/src/cpu_map/sync_qemu_i386.py index fb4eea101b..684fc96dc0 100755 --- a/src/cpu_map/sync_qemu_i386.py +++ b/src/cpu_map/sync_qemu_i386.py @@ -142,6 +142,14 @@ T =3D { "MSR_ARCH_CAP_TAA_NO": "taa-no", "MSR_CORE_CAP_SPLIT_LOCK_DETECT": "split-lock-detect", =20 + # identically named features + "avx512ifma": "avx512ifma", + "fsrm": "fsrm", + "perfctr-core": "perfctr-core", + "vmx-eptp-switching": "vmx-eptp-switching", + "vmx-pml": "vmx-pml", + "vmx-rdseed-exit": "vmx-rdseed-exit", + # always disabled features "CPUID_EXT_MONITOR": None, "0": None, --=20 2.26.2 From nobody Thu Apr 25 06:54:49 2024 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