Re: [Xen-devel] [PATCH] vNUMA: validate XEN_DOMCTL_setvnumainfo input

2015-03-03 Thread Andrew Cooper
On 03/03/15 14:38, Jan Beulich wrote: As we get ready to use the information set for a domain here we should make sure it is actually valid: Both vNode and pNode numbers should be in range. Do a little bit of other cleanup so the code ends up looking reasonably consistent in style. Along

[Xen-devel] [PATCH] vNUMA: validate XEN_DOMCTL_setvnumainfo input

2015-03-03 Thread Jan Beulich
As we get ready to use the information set for a domain here we should make sure it is actually valid: Both vNode and pNode numbers should be in range. Do a little bit of other cleanup so the code ends up looking reasonably consistent in style. Along with this goes that we don't need an array of

Re: [Xen-devel] [PATCH] vNUMA: validate XEN_DOMCTL_setvnumainfo input

2015-03-03 Thread Wei Liu
On Tue, Mar 03, 2015 at 02:38:19PM +, Jan Beulich wrote: As we get ready to use the information set for a domain here we should make sure it is actually valid: Both vNode and pNode numbers should be in range. Do a little bit of other cleanup so the code ends up looking reasonably

Re: [Xen-devel] [PATCH] vNUMA: validate XEN_DOMCTL_setvnumainfo input

2015-03-03 Thread Ian Campbell
On Tue, 2015-03-03 at 14:46 +, Wei Liu wrote: On Tue, Mar 03, 2015 at 02:38:19PM +, Jan Beulich wrote: As we get ready to use the information set for a domain here we should make sure it is actually valid: Both vNode and pNode numbers should be in range. Do a little bit of other