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

Re: [PATCH v2 3/6] libxl: introduce MSR data in libxl_cpuid_policy


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Date: Tue, 18 Jul 2023 12:14:36 +0100
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>
  • Delivery-date: Tue, 18 Jul 2023 11:15:01 +0000
  • Ironport-data: A9a23:bJHDEaowUg+HQosABIhtLhMHCBReBmILZRIvgKrLsJaIsI4StFCzt garIBmAaP3YNDahLop/PNmy8k5Uu5XXx9dqSAA4qSE2EC9EopuZCYyVIHmrMnLJJKUvbq7FA +Y2MYCccZ9uHhcwgj/3b9ANeFEljfngqoLUUbKCYWYpA1c/Ek/NsDo788YhmIlknNOlNA2Ev NL2sqX3NUSsnjV5KQr40YrawP9UlKq04GpwUmAWP6gR5weBzilNVvrzGInqR5fGatgMdgKFb 76rIIGRpgvx4xorA9W5pbf3GmVirmn6ZFXmZtJ+AsBOszAazsAA+v9T2Mk0MC+7vw6hjdFpo OihgLTrIesf0g8gr8xGO/VQO3kW0aSrY9YrK1Dn2SCY5xWun3cBX5yCpaz5VGEV0r8fPI1Ay RAXAGANNinZg96a+baAavt2weIdDvjZO7pK7xmMzRmBZRonaZXKQqGM7t5ExjYgwMtJGJ4yZ eJAN2ApNk6ZJUQSZBFOUslWcOSA3xETdxVRrk6VoqwmpXDe1gVr3JDmMcbPe8zMTsJQ9qqdj jufrj2mWkhLabRzzxKa+SmohcmTuB+rAoU5GbSA3+9TqwO6kzl75Bo+CgLg/KjRZlSFc8JSL QkY9zQjqYA29Ve3VZ/tUhugunmGsxUAHd1KHIUS9wWl2qfSpQGDCQAsTDFbb8c9nNQrXjFs3 ViM9/vgHTF1uaeZYW6c/LyT6zi1PEAowXQqPHFeC1Ffup+6/d9110iUJjp+LEKrpo31QQiqx wymlSwFp6cJyug19ZSJ+mmS1lpAuaP1oh4JChT/Bzz1v10nOtL9OeRE+nCAs68ecd/xok2p+ SFdxpPAtL1m4YSlznTlfQkbIF2+Cx9p2hX4iEUnIZQu/i/FF5WLLdEJu2EWyKuE3685ld7Vj Kz741k5CGd7ZifCUEOOS9vZ5z4W5abhD8/5cfvfc8BDZJN8HCfeonE/OxfAgDm8zxB1+U3aB Xt9WZz0ZZr9If06pAdaus9HieN7rszA7Ti7qW/HI+SPjuPFOS/9pUYtO1qSdOEphJ5oUy2Mm +uzw/Cikk0FOMWnO3m/zGLmBQxSRZTNLcys+pM/my/qClYOJVzN/NeLmeN4J9I1wvQL/goKl 1nkMnJlJJPErSWvAW23hrpLMdsDgb4XQaoHABER
  • Ironport-hdrordr: A9a23:L58TpaoEWa3hxCtvgPcxR6kaV5rveYIsimQD101hICG9Evb0qy nOpoV/6faQslwssR4b9uxoVJPvfZq+z+8W3WByB9eftWDd0QPFEGgL1+DfKlbbak7DH4BmtJ uJc8JFeafN5VoRt7eG3OFveexQvOVu88qT9JjjJ28Gd3APV0n5hT0JcjpyFCdNNW57LKt8Lr WwzOxdqQGtfHwGB/7LfUXsD4D41rv2fIuNW29+OyIa
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Mon, Jul 17, 2023 at 04:36:11PM +0200, Roger Pau Monné wrote:
> On Wed, Jul 12, 2023 at 05:39:01PM +0100, Anthony PERARD wrote:
> > On Tue, Jul 11, 2023 at 11:22:27AM +0200, Roger Pau Monne wrote:
> > > Add a new array field to libxl_cpuid_policy in order to store the MSR
> > > policies.
> > > 
> > > Note that libxl_cpuid_policy_list_{copy,length,parse_json,gen_json}
> > > are not adjusted to deal with the new MSR array now part of
> > > libxl_cpuid_policy_list.
> > 
> > Why? Isn't this going to be an issue? Or maybe that going to be dealt
> > with in a future patch?
> 
> I'm unsure what's the point of those?  The CPUID/MSR data is passed as
> a migration stream record from the hypervisor, so I don't see much
> point into converting it into json.  It also seems quite complex, and
> can't likely we done without breaking (or adjusting) the current
> format.

I think this data is used when the machine reboots. I've only try to
edit the file "/var/lib/xen/userdata-d.*" and it change which cpu flags
where available in the machine after a reboot. You could maybe confirm
that when you change an msr value, it is actually conserved across
reboot.

> My plan was to leave this unimplemented and if someone is in
> interested in having the data in json they can as well implement it.
> 
> Would you be OK if I add a note to the commit message that
> implementing json marshalling is left to implement for interested
> parties?

My guess is, we will have to think of something and add the msr into
json, even if it's done in a separate patch.

Cheers,

-- 
Anthony PERARD



 


Rackspace

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