From nobody Mon Feb 9 17:59:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1582748601; cv=none; d=zohomail.com; s=zohoarc; b=ZoAsAeGXEnvyBCMmjKKKGJ6+rnHLJNmfv1esLGBFtUw7UNyQ/EZukEA+hpnDcLIE7NMpSg7zBElZjsYEGgSpYPfcLmoRerQnk52uM50wUPBoNfx6ovVQ6wdMZTY0ESRJYJQql++UHUielrMEkhirzHzZ+u/apt6F3CNbC0NCIdo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582748601; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Ynv1oNyMYgkoxVqCi0ddyvpKwvIuR7j8I9h3zGZGle4=; b=eF0jHFpYwQgxRElfHLdzxswx+zJb7zHwssMCiGT+6ZN7DGPaA8Tfrilw6OD3nEMT7e41quAySgAq/3lzIw2Xs2zTdmMJ7L0mAm9gBg7HEe2gqXpbg+VbtC9T8BfTV1ewjhKmhbNhn9/IdKoo0wrTWXs0/n+fO0HSM3G8ep0Kh7g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1582748600921299.18886791420664; Wed, 26 Feb 2020 12:23:20 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j73Ca-0003lN-6L; Wed, 26 Feb 2020 20:22:40 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j73CY-0003kZ-H8 for xen-devel@lists.xenproject.org; Wed, 26 Feb 2020 20:22:38 +0000 Received: from esa6.hc3370-68.iphmx.com (unknown [216.71.155.175]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id b5c99f1c-58d5-11ea-aba8-bc764e2007e4; Wed, 26 Feb 2020 20:22:29 +0000 (UTC) X-Inumbo-ID: b5c99f1c-58d5-11ea-aba8-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1582748548; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Mp3vTSIoidrYCPhEDJh/tjnLRnewseoGxmOw08frHcw=; b=MTZ7PpI89AApJug9ufrGP1CpJtsXRQLipeb2VQe3juUHqY132ohMITcQ QDshWLc7OjPjPgw7IegwOJbmFzvn7nfnQfdx3dW+drAkneMG9bGEoM8Eq 4LLRkFyVHbiVajjJShzLuKM3pXVczRK9p+kTuOKVWWyHqe2n5Z6v+TGqI Y=; Authentication-Results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@citrix.com; spf=Pass smtp.mailfrom=Andrew.Cooper3@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa6.hc3370-68.iphmx.com: no sender authenticity information available from domain of andrew.cooper3@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa6.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa6.hc3370-68.iphmx.com: domain of Andrew.Cooper3@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa6.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="Andrew.Cooper3@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa6.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa6.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: AejszfvZE+XcYYqkqYKwVEOkhLUKIu8VPp0jacGP93nLGHeLOVlsxKbdlf3R7CC1SKGQkIH2lK +FWzux0Hr+M8P2TAwyXOSN47OTI533kvvJPFauRHbIsh8rXiJixjnTv18doDDhIgRmE6+YuNu3 ugAXVpbf2CUmK9upAJ6STALnJ+d0I696/mjmD5Qzwyd9Cnr0U+HHrItQsY/qaW5enJYkFDM9/d mEJQr5yoIoDVihE2Jdi09Usey4rD56cJK8iR1Ni04/F4LqNxEoA78Noj6W4i9uh0R/xPYhRKHk AXw= X-SBRS: 2.7 X-MesageID: 13496575 X-Ironport-Server: esa6.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.70,489,1574139600"; d="scan'208";a="13496575" From: Andrew Cooper To: Xen-devel Date: Wed, 26 Feb 2020 20:22:20 +0000 Message-ID: <20200226202221.6555-10-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200226202221.6555-1-andrew.cooper3@citrix.com> References: <20200226202221.6555-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 09/10] x86/gen-cpuid: Distinguish default vs max in feature annotations X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , Wei Liu , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Allow lowercase a/s/h to be used to annotate a non-default feature. Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monn=C3=A9 --- xen/include/public/arch-x86/cpufeatureset.h | 2 ++ xen/tools/gen-cpuid.py | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/xen/include/public/arch-x86/cpufeatureset.h b/xen/include/publ= ic/arch-x86/cpufeatureset.h index 086736ac7b..d79a53befe 100644 --- a/xen/include/public/arch-x86/cpufeatureset.h +++ b/xen/include/public/arch-x86/cpufeatureset.h @@ -87,6 +87,8 @@ enum { * 'A' =3D All guests. * 'S' =3D All HVM guests (not PV guests). * 'H' =3D HVM HAP guests (not PV or HVM Shadow guests). + * Upper case =3D> Available by default + * Lower case =3D> Can be opted-in to, but not available by default. */ =20 /* Intel-defined CPU features, CPUID level 0x00000001.edx, word 0 */ diff --git a/xen/tools/gen-cpuid.py b/xen/tools/gen-cpuid.py index af5610a5e6..c178e2470d 100755 --- a/xen/tools/gen-cpuid.py +++ b/xen/tools/gen-cpuid.py @@ -23,6 +23,7 @@ def __init__(self, input, output): self.raw =3D { '!': set(), 'A': set(), 'S': set(), 'H': set(), + 'a': set(), 's': set(), 'h': set(), } =20 # State calculated @@ -133,9 +134,9 @@ def crunch_numbers(state): state.hvm_shadow_def =3D state.pv_def | state.raw['S'] state.hvm_hap_def =3D state.hvm_shadow_def | state.raw['H'] =20 - state.pv_max =3D state.pv_def - state.hvm_shadow_max =3D state.hvm_shadow_def - state.hvm_hap_max =3D state.hvm_hap_def + state.pv_max =3D state.raw['A'] | state.raw['a'] + state.hvm_shadow_max =3D state.pv_max | state.raw['S'] | state.raw['s'] + state.hvm_hap_max =3D state.hvm_shadow_max | state.raw['H'] | state.ra= w['h'] =20 # # Feature dependency information. --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel