Re: [PATCH 15/21] libs/guest: obtain a compatible cpu policy from two input ones

2021-04-09 Thread Roger Pau Monné
On Thu, Apr 01, 2021 at 05:26:03PM +0100, Andrew Cooper wrote: > On 23/03/2021 09:58, 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 leaves > > and MSR entries, except for MSR_ARCH_CAPA

Re: [PATCH 15/21] libs/guest: obtain a compatible cpu policy from two input ones

2021-04-01 Thread Andrew Cooper
On 23/03/2021 09:58, 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 leaves > and MSR entries, except for MSR_ARCH_CAPABILITIES which has the RSBA > bit or'ed. > > The _AC macro is pulled fr

Re: [PATCH 15/21] libs/guest: obtain a compatible cpu policy from two input ones

2021-03-31 Thread Jan Beulich
On 23.03.2021 10:58, 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 leaves > and MSR entries, except for MSR_ARCH_CAPABILITIES which has the RSBA > bit or'ed. I'm afraid this is too simpli

[PATCH 15/21] libs/guest: obtain a compatible cpu policy from two input ones

2021-03-23 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 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 it's re