From nobody Sun Apr 28 19:17:07 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=1623311164; cv=none; d=zohomail.com; s=zohoarc; b=duBsFo8AgveWv0ZhngDfiJsBWSYNxIpby68yqJoLUyv3fkKJUQ8j1GcPmgk60okETaRuT5hisA2KpxFjBYlWbNLhsVi+8ETuptUStvYVANKB+OQGWlH8ViX+NY4awQ4ftTQNmv/vwnDjR8UOd3FkLn7GbuVwRse5n1K4abGojdE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623311164; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=NjM9tVh0iFE+mi3GYV+UCa1PaoBZgRIuHOhF+ZMq6BM=; b=ZXMIW7HuKqKUeC+qFylzsU8HbIB3D47aWzAafUW/6ExKVJovb/bmqTGZrE177vcvrk3cajeDZa9QUa52qyGIGMrs7vJjQQILB16b8+JUACiyutM4w71jb+or9bhzfsqOZT6DRebvOxVY0wRr3WhnI83mtsuDp5v7L5sqI79D5Yc= 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 1623311164169886.664357730736; Thu, 10 Jun 2021 00:46:04 -0700 (PDT) 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-517-6yRi6P8cNhqy7KAdoGfbhg-1; Thu, 10 Jun 2021 03:46:01 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0F14F8015A4; Thu, 10 Jun 2021 07:45:54 +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 30C4E19CA8; Thu, 10 Jun 2021 07:45:52 +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 C557F1809CAE; Thu, 10 Jun 2021 07:45:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 15A7jkLi001383 for ; Thu, 10 Jun 2021 03:45:46 -0400 Received: by smtp.corp.redhat.com (Postfix) id 9628C5D735; Thu, 10 Jun 2021 07:45:46 +0000 (UTC) Received: from work.speedport.ip (ovpn-114-54.ams2.redhat.com [10.36.114.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id E102D5D6D1; Thu, 10 Jun 2021 07:45:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623311163; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=NjM9tVh0iFE+mi3GYV+UCa1PaoBZgRIuHOhF+ZMq6BM=; b=Yw1GW7d+mpYDVcZPpJ03MpjZmniIvlYiyMnzNsAYudU2huqfdX/ouiP82Tp58UX9CQjFUm iazdlo3Dp/Lc9o5qSum51ONpXF5bI8ulKjWct/DSucVE1lV5BkjECTxS7rVjHSQLS6vioj P0EfmchRz1FJ262Pg6JUR9dvdrBLfFY= X-MC-Unique: 6yRi6P8cNhqy7KAdoGfbhg-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH] cpu_map: Add cpu feature avx-vnni Date: Thu, 10 Jun 2021 09:45:41 +0200 Message-Id: <20210610074541.13112-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 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.11 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" "avx-vvni" was introduced to qemu in commit c1826ea6a052084f2e6a0bae9dd5932a727df039, adding it Cooperlake. This feature is currently not used by any libvirt CPU models, but its addition silences a warning from sync_qemu_i386.py: ``` warning: Unknown feature 'CPUID_7_1_EAX_AVX_VNNI' warning: Feature unknown to libvirt: CPUID_7_1_EAX_AVX_VNNI ``` Signed-off-by: Tim Wiederhake Reviewed-by: Michal Privoznik --- src/cpu_map/sync_qemu_i386.py | 1 + src/cpu_map/x86_features.xml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/cpu_map/sync_qemu_i386.py b/src/cpu_map/sync_qemu_i386.py index 92bb58f75b..4dd9f3b84d 100755 --- a/src/cpu_map/sync_qemu_i386.py +++ b/src/cpu_map/sync_qemu_i386.py @@ -73,6 +73,7 @@ def translate_feature(name): "CPUID_7_0_EDX_SPEC_CTRL_SSBD": "ssbd", "CPUID_7_0_EDX_STIBP": "stibp", "CPUID_7_1_EAX_AVX512_BF16": "avx512-bf16", + "CPUID_7_1_EAX_AVX_VNNI": "avx-vnni", "CPUID_8000_0008_EBX_AMD_SSBD": "amd-ssbd", "CPUID_8000_0008_EBX_CLZERO": "clzero", "CPUID_8000_0008_EBX_IBPB": "ibpb", diff --git a/src/cpu_map/x86_features.xml b/src/cpu_map/x86_features.xml index e98b84f3ef..4cf3ff0804 100644 --- a/src/cpu_map/x86_features.xml +++ b/src/cpu_map/x86_features.xml @@ -363,6 +363,9 @@ =20 + + + --=20 2.31.1