Re: [PATCH v2 14/21] libs/guest: introduce helper to check cpu policy compatibility

2021-04-22 Thread Jan Beulich
On 22.04.2021 10:22, Roger Pau Monné wrote: > On Wed, Apr 14, 2021 at 03:36:54PM +0200, Jan Beulich wrote: >> On 13.04.2021 16:01, Roger Pau Monne wrote: >>> --- a/tools/libs/guest/xg_cpuid_x86.c >>> +++ b/tools/libs/guest/xg_cpuid_x86.c >>> @@ -925,3 +925,22 @@ int

Re: [PATCH v2 14/21] libs/guest: introduce helper to check cpu policy compatibility

2021-04-22 Thread Roger Pau Monné
On Wed, Apr 14, 2021 at 03:36:54PM +0200, Jan Beulich wrote: > On 13.04.2021 16:01, Roger Pau Monne wrote: > > --- a/tools/libs/guest/xg_cpuid_x86.c > > +++ b/tools/libs/guest/xg_cpuid_x86.c > > @@ -925,3 +925,22 @@ int xc_cpu_policy_update_msrs(xc_interface *xch, > > xc_cpu_policy_t policy, > >

Re: [PATCH v2 14/21] libs/guest: introduce helper to check cpu policy compatibility

2021-04-14 Thread Jan Beulich
On 13.04.2021 16:01, Roger Pau Monne wrote: > --- a/tools/libs/guest/xg_cpuid_x86.c > +++ b/tools/libs/guest/xg_cpuid_x86.c > @@ -925,3 +925,22 @@ int xc_cpu_policy_update_msrs(xc_interface *xch, > xc_cpu_policy_t policy, > > return rc; > } > + > +bool

[PATCH v2 14/21] libs/guest: introduce helper to check cpu policy compatibility

2021-04-13 Thread Roger Pau Monne
Such helpers is just a wrapper to the existing x86_cpu_policies_are_compatible function. This requires building policy.c from libx86 on user land also. No user of the interface introduced. Signed-off-by: Roger Pau Monné --- Changes since v1: - Initialize err. - Explicitly name parameters as