Re: [PATCH v3 07/13] libs/guest: obtain a compatible cpu policy from two input ones

2021-05-04 Thread Andrew Cooper
On 30/04/2021 16:52, Roger Pau Monne wrote: > Introduce a helper to obtain a compatible cpu policy based on two > input cpu policies. Currently this is done by and'ing all CPUID > feature leaves and MSR entries, except for MSR_ARCH_CAPABILITIES which > has the RSBA bit or'ed. > > The _AC macro is p

Re: [PATCH v3 07/13] libs/guest: obtain a compatible cpu policy from two input ones

2021-05-04 Thread Jan Beulich
On 04.05.2021 13:56, Roger Pau Monné wrote: > On Mon, May 03, 2021 at 12:43:08PM +0200, Jan Beulich wrote: >> On 30.04.2021 17:52, Roger Pau Monne wrote: >>> +/* Only level featuresets so far. */ >> >> I have to admit that I don't think I see all the implications from >> this implementation restric

Re: [PATCH v3 07/13] libs/guest: obtain a compatible cpu policy from two input ones

2021-05-04 Thread Roger Pau Monné
On Mon, May 03, 2021 at 12:43:08PM +0200, Jan Beulich wrote: > On 30.04.2021 17:52, Roger Pau Monne wrote: > > Introduce a helper to obtain a compatible cpu policy based on two > > input cpu policies. Currently this is done by and'ing all CPUID > > feature leaves and MSR entries, except for MSR_ARC

Re: [PATCH v3 07/13] libs/guest: obtain a compatible cpu policy from two input ones

2021-05-03 Thread Jan Beulich
On 30.04.2021 17:52, Roger Pau Monne wrote: > Introduce a helper to obtain a compatible cpu policy based on two > input cpu policies. Currently this is done by and'ing all CPUID > feature leaves and MSR entries, except for MSR_ARCH_CAPABILITIES which > has the RSBA bit or'ed. > > The _AC macro is

[PATCH v3 07/13] libs/guest: obtain a compatible cpu policy from two input ones

2021-04-30 Thread Roger Pau Monne
Introduce a helper to obtain a compatible cpu policy based on two input cpu policies. Currently this is done by and'ing all CPUID feature leaves and MSR entries, except for MSR_ARCH_CAPABILITIES which has the RSBA bit or'ed. The _AC macro is pulled from libxl_internal.h into xen-tools/libs.h since