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

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


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Thu, 20 Jul 2023 10:25:34 +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=CX4VOM1tHRqTye6d547CIc/vhKURIdso6ZiSTA9xbXo=; b=Sh2QV5dwk9I7Yqx9Q9EnEmcWTfItm1KDW72QWbBYagUGZ4Vmi+RwjbgQhPMghH5P/CKqQ8r/WQxGg53z+RUwSxFmwhI0N9iITvr6T0jWHMPNibyQuU9GuHaKPDBqxPh6XdO0HNniYKxCHMfls+FACPT35p2mJmLbWtuinLJKVAWCYkBbQxVl/W7miJUq8O98sQY4iYS0VxFbeX7LBiRx8pysvoqnGRk6A7+L8HEgCj5aoF0F4qbDzSIEcXs05a5IBs4KRTISKgtV0Z5PYYpVy6r/uCv8dq9T3VwbtUqBSebPNbWouDKRvbZlrcjQgOS6+H2DbactTMjmaBTrgXIrhQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e1LVg1QaZRBSVyEnnrIYkbylwATumVSL0KuzLEbsN7E8AvjLN6RKTnfJkoXrSIkYpX61k7/bLtfDqybxkEQ/c68fez7LyQ1JNNMG506FUumyx1qgQ4Q/b1hSgZpFdcoia4JiDFMQTzuk6apOYg66kY8f3uYYKb5+kkHhiE+CXhimzk6BzkRGOI1E370V4zyL7zts0JI10WA6qUB224vkrFbQVC/SVFEKtiON9EQAidZTchiT2l4eUSbDoQ5Er9EIC+oeE+mF66tZ4uVF9ghBQHv7WqGnVgnVc2fOnSyh1uZTa/s0sQ0iKpotd8aTlKHFTR9quoBLiWm3JXcfOq91uQ==
  • 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: Thu, 20 Jul 2023 08:27:04 +0000
  • Ironport-data: A9a23:9/PeAKweDuCGcmpEawV6t+cTxyrEfRIJ4+MujC+fZmUNrF6WrkVRy mMdCDiHPP2NamCjKN5wb4nk8xsO6JfTzIdmGgM9qyAxQypGp/SeCIXCJC8cHc8wwu7rFxs7s ppEOrEsCOhuExcwcz/0auCJQUFUjP3OHfykTrafYEidfCc8IA85kxVvhuUltYBhhNm9Emult Mj75sbSIzdJ4RYtWo4vw/zF8EoHUMja4mtC5QRhP6gT5TcyqlFOZH4hDfDpR5fHatE88t6SH 47r0Ly/92XFyBYhYvvNfmHTKxBirhb6ZGBiu1IOM0SQqkEqSh8ai87XAME0e0ZP4whlqvgqo Dl7WT5cfi9yVkHEsLx1vxC1iEiSN4UekFPMCSDXXcB+UyQq2pYjqhljJBheAGEWxgp4KTFV2 e4cAw0AVwi8oNjs5uPmE9tUpu12eaEHPKtH0p1h5RfwKK9/BLvkGuDN79Ie2yosjMdTG/qYf 9AedTdkcBXHZVtIJ0sTD5U92uyvgxETcRUB8A7T+fVxvjaVlVMtuFTuGIO9ltiiX8Jak1zev mvb12/4HgsbJJqUzj/tHneE37aSwHirCd1DfFG+3tdOnFKymzItMkFVVl2SqMGgrGu7BPsKf iT4/QJr98De7neDXtT7GhG1vnOAlhodQMZLVf037hmXzajZ6BrfAXILJhZebPQ2uclwQiYlv neLkMnuHidHq6CORDSW8bL8kN+pES0cLGtHbihdSwIAuoDnuNtq0U6JSct/GqmoiNGzASv33 z2BsCk5gfMUkNIP0KK4u1vAhlpAu6T0c+L83S2PNkrN0++zTNTNi1CAgbQD0ct9EQ==
  • Ironport-hdrordr: A9a23:9s1HVawzQFNjMCBELLnuKrPwL71zdoMgy1knxilNoNJuA6ulfq GV7ZImPHrP4gr5N0tQ+uxoVJPhfZq+z/9ICOsqTNWftWDd0QPCEGgI1/qG/9SPIVybygef78 tdmmpFZeEYwWIUsS8y2meFL+o=
  • 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   | 169 +++++++-
 tools/libs/light/libxl_cpuid.c    | 662 ++++++++++++++++++------------
 tools/libs/light/libxl_internal.h |   5 +
 tools/libs/light/libxl_types.idl  |   2 +-
 tools/xl/xl_parse.c               |   3 +
 8 files changed, 602 insertions(+), 292 deletions(-)

-- 
2.41.0




 


Rackspace

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