Re: [Xen-devel] [PATCH 05/27] x86/cpuid: Allocate a CPUID policy for every domain

2017-01-04 Thread Jan Beulich
>>> On 04.01.17 at 13:39, wrote: > --- a/xen/include/asm-x86/domain.h > +++ b/xen/include/asm-x86/domain.h > @@ -340,6 +340,9 @@ struct arch_domain > /* Is PHYSDEVOP_eoi to automatically unmask the event channel? */ > bool_t auto_unmask; > > +/* CPUID Policy. */ > +struct cpuid

[Xen-devel] [PATCH 05/27] x86/cpuid: Allocate a CPUID policy for every domain

2017-01-04 Thread Andrew Cooper
Introduce init_domain_cpuid_policy() to allocate an appropriate cpuid policy for the domain (currently the domains maximum applicable policy), and call it during domain construction. init_guest_cpuid() now needs calling before dom0 is constructed. Signed-off-by: Andrew Cooper --- CC: Jan Beulich