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

[PATCH v2 0/6] lib{xc,xl}: support for guest MSR features


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Tue, 11 Jul 2023 11:22:24 +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=MxySi3AYc7WCYZJHKYBqiMjANBvcoeZT761nqseVDCY=; b=Y4bpWIWBrTOT55zlk+1dE/6Zgtvj5dVZZXs1L9Wm1dalqgTT8S8jn74lfIYwSyP32HjYeZkmI0nZyCL8qRbb5nsIf9yi1ujy/mtuj6a2+YU+UkNdIXph7V7tEt18gA8g+U38QKvmlCY58nbWqPpmz8d/dwlEBa65/B1TzE7BlymuYY1R+2xUitXOE77kFO+JQu+okQc797y3JwUfcobkIa64l5oJoySJpfuWa7lzYH2/q/XvPCRlJSWLrPYy0rm7eXhRk97gr38O50ElxSzrWVGy0IRsv+tzFdBy5WbZc9B+JoRuqCMv/mpGrliu4g3IKa7NLdPpF2IQ8ui8EAXvTg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mhge1MEJYkuCJ19p1H1FzDebXaZjdMLd7U/y3WvMsqsKc9VBu3rRdAaiBtyDaYiGP/yI9zXY2kTKz97O5FcTOqM96N5mIEXbG8HZ8NaBtwYSB3+U5Zeb+UHOl8kCXrzs3/a4HF5A2y3C4v5h1X6EeILw5v1QKXRAkN8X+geYXzDjL/2jJT2tM3VSMDGUwOOMqPdASRQAZPNr1mBVZUG1liyEF0vnnKC+6fZMeDji8YYoyh1uhUFlEgR07m/hBV4ffNSR5jWMB8FBfBJy6mKfM68gtC74yLIwA0u+Tw8n/q6n4naNPxxHJnCYlut39TRcHIZiIq9febZsv0uOAh9uxg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>
  • Delivery-date: Tue, 11 Jul 2023 09:24:57 +0000
  • Ironport-data: A9a23:FOrXaqr4doLFkQz1cnsh9SujbcteBmI8ZBIvgKrLsJaIsI4StFCzt garIBnVO/mKN2XyLYh1bd7k8xkPuMPVnYQwHgFv+ypjRSgTpZuZCYyVIHmrMnLJJKUvbq7FA +Y2MYCccZ9uHhcwgj/3b9ANeFEljfngqoLUUbKCYWYpA1c/Ek/NsDo788YhmIlknNOlNA2Ev NL2sqX3NUSsnjV5KQr40YrawP9UlKq04GpwUmAWP6gR5weBziBNVfrzGInqR5fGatgMdgKFb 76rIIGRpgvx4xorA9W5pbf3GmVirmn6ZFXmZtJ+AsBOszAazsAA+v9T2Mk0MC+7vw6hjdFpo OihgLTrIesf0g8gr8xGO/VQO3kW0aSrY9YrK1Dn2SCY5xWun3cBX5yCpaz5VGEV0r8fPI1Ay RAXAGBWbSKDovyy+rGYbMRttPR6d9LNNpxK7xmMzRmBZRonabbqZvySoPV+g3I3jM0IGuvCb c0EbzYpdA7HfxBEJlYQDtQ5gfusgX78NTZfrTp5p4JuuzSVkFM3j+CraYKJEjCJbZw9ckKwv GXJ8n6/GhgHHNee1SCE4jSngeqncSbTAdtPSu3ipqc06LGV7n0CNR5NVkqEmueGp2ScfY5VN Fcx5gN7+MDe82TuFLERRSaQsHOC+xIRRddUO+k78x2WjLrZ5R6DAWoJRSIHb8Yp3OcpQRQ62 1nPmMnmbRRtv6eSUmm17aqPoHW5Pi19EIMZTSoNTA9A6d+8pog210rLVow6SPLzicDpEzbtx TzMtDI5m7gYkc8M0eO84EzDhDWv4JPOS2bZ+znqY45s1SshDKbNWmBiwQGzASpoRGpBcmS8g Q==
  • Ironport-hdrordr: A9a23:TD+1aKHhPmK6U+NipLqEHseALOsnbusQ8zAXPiBKJCC9vPb5qy nOpoV86faQslwssR4b9uxoVJPvfZqYz+8W3WBzB8bEYOCFghrKEGgK1+KLrwEIWReOk9K1vZ 0KT0EUMqyVMbEVt6fHCAnTKade/DGEmprY+9s3GR1WPHBXg6IL1XYINu6CeHcGPTWvnfACZe ehDswsnUvZRV0nKv6VK1MiROb5q9jChPvdEGI7705O0nj0sduwgoSKaSSl4g==
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hello,

The following series adds support for handling guest MSR features as
defined in arch-x86/cpufeatureset.h.

The end result is the user being able to use such features with the
xl.cfg(5) cpuid option.  This also involves adding support to all the
underlying layers, so both libxl and libxc also get new functionality in
order to properly parse those.

Thanks, Roger.

Roger Pau Monne (6):
  libs/guest: introduce support for setting guest MSRs
  libxl: change the type of libxl_cpuid_policy_list
  libxl: introduce MSR data in libxl_cpuid_policy
  libxl: split logic to parse user provided CPUID features
  libxl: use the cpuid feature names from cpufeatureset.h
  libxl: add support for parsing MSR features

 docs/man/xl.cfg.5.pod.in          |  24 +-
 tools/include/libxl.h             |   8 +-
 tools/include/xenctrl.h           |  21 +-
 tools/libs/guest/xg_cpuid_x86.c   | 168 +++++++++-
 tools/libs/light/libxl_cpuid.c    | 527 ++++++++++++++++--------------
 tools/libs/light/libxl_internal.h |   5 +
 tools/xl/xl_parse.c               |   3 +
 7 files changed, 479 insertions(+), 277 deletions(-)

-- 
2.41.0




 


Rackspace

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