Re: [Xen-devel] [PATCH RESEND v5 09/24] x86: refactor psr: set value: assemble features value array.

2017-02-07 Thread Konrad Rzeszutek Wilk
On Tue, Feb 07, 2017 at 10:51:27AM +0800, Yi Sun wrote: > On 17-01-31 15:57:26, Konrad Rzeszutek Wilk wrote: > > > static int assemble_val_array(uint64_t *val, > > > @@ -550,7 +641,25 @@ static int assemble_val_array(uint64_t *val, > > >const struct psr_socket_info

Re: [Xen-devel] [PATCH RESEND v5 09/24] x86: refactor psr: set value: assemble features value array.

2017-02-06 Thread Yi Sun
On 17-01-31 15:57:26, Konrad Rzeszutek Wilk wrote: > > static int assemble_val_array(uint64_t *val, > > @@ -550,7 +641,25 @@ static int assemble_val_array(uint64_t *val, > >const struct psr_socket_info *info, > >unsigned int old_cos)

Re: [Xen-devel] [PATCH RESEND v5 09/24] x86: refactor psr: set value: assemble features value array.

2017-01-31 Thread Konrad Rzeszutek Wilk
> static int assemble_val_array(uint64_t *val, > @@ -550,7 +641,25 @@ static int assemble_val_array(uint64_t *val, >const struct psr_socket_info *info, >unsigned int old_cos) > { > -return -EINVAL; > +const struct feat_node *

[Xen-devel] [PATCH RESEND v5 09/24] x86: refactor psr: set value: assemble features value array.

2017-01-18 Thread Yi Sun
Only can one COS ID be used by one domain at one time. That means all enabled features' COS registers at this COS ID are valid for this domain at that time. When user updates a feature's value, we need make sure all other features' values are not affected. So, we firstly need assemble an array whi