Re: [PATCH 03/21] libs/guest: introduce xc_cpu_policy_t

2021-04-01 Thread Roger Pau Monné
On Wed, Mar 31, 2021 at 09:10:13PM +0100, Andrew Cooper wrote: > On 23/03/2021 09:58, Roger Pau Monne wrote: > > Introduce an opaque type that is used to store the CPUID and MSRs > > policies of a domain. Such type uses the existing cpu_policy structure > > to store the data, but doesn't expose the

Re: [PATCH 03/21] libs/guest: introduce xc_cpu_policy_t

2021-03-31 Thread Andrew Cooper
On 23/03/2021 09:58, Roger Pau Monne wrote: > Introduce an opaque type that is used to store the CPUID and MSRs > policies of a domain. Such type uses the existing cpu_policy structure > to store the data, but doesn't expose the type to the users of the > xenguest library. > > Introduce an allocati

[PATCH 03/21] libs/guest: introduce xc_cpu_policy_t

2021-03-23 Thread Roger Pau Monne
Introduce an opaque type that is used to store the CPUID and MSRs policies of a domain. Such type uses the existing cpu_policy structure to store the data, but doesn't expose the type to the users of the xenguest library. Introduce an allocation (init) and freeing function (destroy) to manage the