[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 18/27] x86/pv: Use per-domain policy information in pv_cpuid()



>>> On 04.01.17 at 13:39, <andrew.cooper3@xxxxxxxxxx> wrote:
> --- a/xen/arch/x86/traps.c
> +++ b/xen/arch/x86/traps.c
> @@ -1065,11 +1065,8 @@ void pv_cpuid(struct cpu_user_regs *regs)
>          uint32_t tmp;
>  
>      case 0x00000001:
> -        c &= pv_featureset[FEATURESET_1c];
> -        d &= pv_featureset[FEATURESET_1d];
> -
> -        if ( is_pv_32bit_domain(currd) )
> -            c &= ~cpufeat_mask(X86_FEATURE_CX16);
> +        c = p->basic._1c;
> +        d = p->basic._1d;

Being able to drop the clearing of CX16 is because it depends on
LM, and LM gets cleared explicitly in recalculate_cpuid_policy(). If
that's right (and intended that way),
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.