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

2021-04-01 Thread Andrew Cooper
On 23/03/2021 09:58, Roger Pau Monne wrote: > 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é > --- > tools/inclu

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

2021-03-31 Thread Jan Beulich
On 31.03.2021 14:40, Roger Pau Monné wrote: > On Tue, Mar 30, 2021 at 06:02:45PM +0200, Jan Beulich wrote: >> On 23.03.2021 10:58, Roger Pau Monne wrote: >>> --- a/tools/libs/guest/xg_cpuid_x86.c >>> +++ b/tools/libs/guest/xg_cpuid_x86.c >>> @@ -1098,3 +1098,20 @@ int xc_cpu_policy_update_msrs(xc_i

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

2021-03-31 Thread Roger Pau Monné
On Tue, Mar 30, 2021 at 06:02:45PM +0200, Jan Beulich wrote: > On 23.03.2021 10:58, Roger Pau Monne wrote: > > --- a/tools/libs/guest/xg_cpuid_x86.c > > +++ b/tools/libs/guest/xg_cpuid_x86.c > > @@ -1098,3 +1098,20 @@ int xc_cpu_policy_update_msrs(xc_interface *xch, > > xc_cpu_policy_t policy, > >

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

2021-03-30 Thread Jan Beulich
On 23.03.2021 10:58, Roger Pau Monne wrote: > --- a/tools/libs/guest/xg_cpuid_x86.c > +++ b/tools/libs/guest/xg_cpuid_x86.c > @@ -1098,3 +1098,20 @@ int xc_cpu_policy_update_msrs(xc_interface *xch, > xc_cpu_policy_t policy, > return rc; > > } > + > +bool xc_cpu_policy_is_compatible(xc_inte

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

2021-03-23 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é --- tools/include/xenctrl.h | 4 tools/libs/guest/Makefile