Re: [PATCH v3 08/13] libs/guest: make a cpu policy compatible with older Xen versions

2021-05-06 Thread Jan Beulich
On 06.05.2021 12:23, Roger Pau Monné wrote: > On Wed, May 05, 2021 at 09:42:09AM +0200, Jan Beulich wrote: >> On 04.05.2021 17:34, Roger Pau Monné wrote: >>> On Mon, May 03, 2021 at 01:09:41PM +0200, Jan Beulich wrote: On 30.04.2021 17:52, Roger Pau Monne wrote: > @@ -1086,3 +1075,42 @@ in

Re: [PATCH v3 08/13] libs/guest: make a cpu policy compatible with older Xen versions

2021-05-06 Thread Roger Pau Monné
On Wed, May 05, 2021 at 09:42:09AM +0200, Jan Beulich wrote: > On 04.05.2021 17:34, Roger Pau Monné wrote: > > On Mon, May 03, 2021 at 01:09:41PM +0200, Jan Beulich wrote: > >> On 30.04.2021 17:52, Roger Pau Monne wrote: > >>> @@ -1086,3 +1075,42 @@ int xc_cpu_policy_calc_compatible(xc_interface >

Re: [PATCH v3 08/13] libs/guest: make a cpu policy compatible with older Xen versions

2021-05-05 Thread Jan Beulich
On 04.05.2021 17:34, Roger Pau Monné wrote: > On Mon, May 03, 2021 at 01:09:41PM +0200, Jan Beulich wrote: >> On 30.04.2021 17:52, Roger Pau Monne wrote: >>> @@ -1086,3 +1075,42 @@ int xc_cpu_policy_calc_compatible(xc_interface *xch, >>> >>> return rc; >>> } >>> + >>> +int xc_cpu_policy_mak

Re: [PATCH v3 08/13] libs/guest: make a cpu policy compatible with older Xen versions

2021-05-04 Thread Roger Pau Monné
On Mon, May 03, 2021 at 01:09:41PM +0200, Jan Beulich wrote: > On 30.04.2021 17:52, Roger Pau Monne wrote: > > @@ -1086,3 +1075,42 @@ int xc_cpu_policy_calc_compatible(xc_interface *xch, > > > > return rc; > > } > > + > > +int xc_cpu_policy_make_compatible(xc_interface *xch, xc_cpu_policy_t

Re: [PATCH v3 08/13] libs/guest: make a cpu policy compatible with older Xen versions

2021-05-03 Thread Jan Beulich
On 30.04.2021 17:52, Roger Pau Monne wrote: > @@ -1086,3 +1075,42 @@ int xc_cpu_policy_calc_compatible(xc_interface *xch, > > return rc; > } > + > +int xc_cpu_policy_make_compatible(xc_interface *xch, xc_cpu_policy_t policy, > + bool hvm) I'm concerned of t

[PATCH v3 08/13] libs/guest: make a cpu policy compatible with older Xen versions

2021-04-30 Thread Roger Pau Monne
Older Xen versions used to expose some CPUID bits which are no longer exposed by default. In order to keep a compatible behavior with guests migrated from versions of Xen that don't encode the CPUID data on the migration stream introduce a function that sets the same bits as older Xen versions. Th