Re: [Xen-devel] [PATCH v2] x86: cap address bits CPUID output

2016-05-09 Thread Wei Liu
On Mon, May 09, 2016 at 07:15:47AM -0600, Jan Beulich wrote: > Don't use more or report more to guests than we are capable of > handling. > > At once > - correct the involved extended CPUID level checks, > - simplify the code in hvm_cpuid() and mtrr_top_of_ram(). > > Signed-off-by: Jan Beulich

Re: [Xen-devel] [PATCH v2] x86: cap address bits CPUID output

2016-05-09 Thread Andrew Cooper
On 09/05/16 14:26, Jan Beulich wrote: On 09.05.16 at 15:21, wrote: >> On 09/05/16 14:15, Jan Beulich wrote: >>> Don't use more or report more to guests than we are capable of >>> handling. >>> >>> At once >>> - correct the involved extended CPUID level checks, >>> - simplify the code in hvm_c

Re: [Xen-devel] [PATCH v2] x86: cap address bits CPUID output

2016-05-09 Thread Jan Beulich
>>> On 09.05.16 at 15:21, wrote: > On 09/05/16 14:15, Jan Beulich wrote: >> Don't use more or report more to guests than we are capable of >> handling. >> >> At once >> - correct the involved extended CPUID level checks, >> - simplify the code in hvm_cpuid() and mtrr_top_of_ram(). >> >> Signed-off

Re: [Xen-devel] [PATCH v2] x86: cap address bits CPUID output

2016-05-09 Thread Andrew Cooper
On 09/05/16 14:15, Jan Beulich wrote: > Don't use more or report more to guests than we are capable of > handling. > > At once > - correct the involved extended CPUID level checks, > - simplify the code in hvm_cpuid() and mtrr_top_of_ram(). > > Signed-off-by: Jan Beulich Reviewed-by: Andrew Coope

[Xen-devel] [PATCH v2] x86: cap address bits CPUID output

2016-05-09 Thread Jan Beulich
Don't use more or report more to guests than we are capable of handling. At once - correct the involved extended CPUID level checks, - simplify the code in hvm_cpuid() and mtrr_top_of_ram(). Signed-off-by: Jan Beulich --- v2: Also correct extended CPUID level range checks. --- a/xen/arch/x86/cp