[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] libs/light: use the cpuid feature names from cpufeatureset.h


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Mon, 5 Jun 2023 15:20:16 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MeioqXaB2OLmd2c6WMESP0yxxwkHMKNYi1LjgannAKU=; b=bcFCZkSHh3xXQaGiQ07lZ0AeNp84f/t8nGp4W6Rjgt85FyBPm0kFoZvnU3ybTUdY3TUYNZUccAXJkwSTiUyTeJptda67kBXl1GrawnwbCR61cEw5PW0a3p3B57Dz/nE+njiK2oJGZrSFM7EMXFqXt2gHA/pI/K4DxR8jKNamPakknY1qKPZ0RkqQTkKIvys7KuVlXuheV/HUV+y+23r3braB8WeXsPPU2y4D/JWuYJTsinFichlUmJDbZjImQt/D/A0zRUIhz7ba8eKJeYH6uU76+2kqQBwtguqtS1OB3/a03l+jMs4rEBhMd7YljhSmvVX1tk2J2+O1XcDkf5xQow==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EOShvd6oBGLpluFXHMK2rAVm48S/bjoNsId/5bAJg/Up3Azsk9R4OqOYHWDePXRbEuxGdiYPMVQmQz9GfHqACUJ8Nyk6vfqYgwuS7troKwPCVy2OFOwgkwJygNoTLYGAIqhUMXqRxPK468QnRTuAwcsnbSLciaF7wq5QkZsZi25UripBdueji+kEnY3Wvps2QNR89/QAA8bSaNbZApVHHz3eBjQExCpJNzjVBDU+5B4Kch3Up0QcDOeFX86caD6LilNoSAghfDCTSy/zZQH9mA3wHoltlz2poR/ZdC+OT/9SnbaKRVzza735v6FxsPsgnboeb04k0t1pdyH8AvbyXQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: andrew.cooper3@xxxxxxxxxx, Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>
  • Delivery-date: Mon, 05 Jun 2023 13:20:49 +0000
  • Ironport-data: A9a23:wSEEvKrkFGFyRLRm1ONeqEZAfX5eBmI8ZBIvgKrLsJaIsI4StFCzt garIBnXaPyJMDHwe9pwatnloRgB7JPVm9IwHgRqqSg2RSMVpJuZCYyVIHmrMnLJJKUvbq7FA +Y2MYCccZ9uHhcwgj/3b9ANeFEljfngqoLUUbKCYWYpA1c/Ek/NsDo788YhmIlknNOlNA2Ev NL2sqX3NUSsnjV5KQr40YrawP9UlKq04GtwUmAWP6gR5weAzyVNVfrzGInqR5fGatgMdgKFb 76rIIGRpgvx4xorA9W5pbf3GmVirmn6ZFXmZtJ+AsBOszAazsAA+v9T2Mk0MC+7vw6hjdFpo OihgLTrIesf0g8gr8xGO/VQO3kW0aSrY9YrK1Dn2SCY5xWun3cBX5yCpaz5VGEV0r8fPI1Ay RAXACFQSDCNjeid+ZiyE/NPg/VkN+LXZKpK7xmMzRmBZRonabbqZv2WoPpnhnI3jM0IGuvCb c0EbzYpdA7HfxBEJlYQDtQ5gfusgX78NTZfrTp5p4JuuzSVkFM3j+OraYWIEjCJbZw9ckKwv GXJ8n6/GhgHHNee1SCE4jSngeqncSbTAdtITOblqa8w6LGV7kAqMyQ8WGmCmOuGk2K8So0cA nMs5iV7+MDe82TuFLERRSaQsHOC+xIRRddUO+k78x2WjLrZ5R6DAWoJRSIHb8Yp3OcpQRQ62 1nPmMnmbRRtv6eSUmm17aqPoHW5Pi19EIMZTSoNTA9A5sa5pog21k7LVow6T/PzicDpEzbtx TzMtDI5m7gYkc8M0eO84EzDhDWv4JPOS2bZ+znqY45s1SshDKbNWmBiwQKzASpoRGpBcmS8g Q==
  • Ironport-hdrordr: A9a23:UY2BSKmZAIEMcTdTiW1e7ITah7jpDfLo3DAbv31ZSRFFG/Fw9/ rCoB17726QtN91YhsdcL+7V5VoLUmzyXcX2/hyAV7BZmnbUQKTRekP0WKL+Vbd8kbFh41gPM lbEpSXCLfLfCJHZcSR2njELz73quP3jJxBho3lvghQpRkBUdAF0+/gYDzranGfQmN9dP0EPa vZ3OVrjRy6d08aa8yqb0N1JNQq97Xw5fTbiQdtPW9f1DWz
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Mon, Jun 05, 2023 at 12:36:57PM +0200, Roger Pau Monne wrote:
> @@ -81,6 +83,14 @@ static libxl_cpuid_policy_list 
> cpuid_find_match(libxl_cpuid_policy_list *list,
>      return *list + i;
>  }
>  
> +static int search_feature(const void *a, const void *b)
> +{
> +    const char *key = a;
> +    const char *feat = ((struct { const char *n; } *)b)->n;

The cast should be (const struct { const char *n; } *) to not drop the
const.

Thanks, Roger.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.