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

Re: [Xen-devel] [PATCH] pv/pvh: disable MTRR feature on cpuid for Dom0



>>> On 12.12.13 at 17:52, Roger Pau Monne <roger.pau@xxxxxxxxxx> wrote:
> MTRR is not available for PV/PVH Dom0, so prevent cpuid from
> reporting it as an available feature.

Some misunderstanding perhaps? PV certainly has MTRR support for
Dom0 - see XENPF_*_memtype.

> --- a/xen/arch/x86/traps.c
> +++ b/xen/arch/x86/traps.c
> @@ -796,6 +796,7 @@ void pv_cpuid(struct cpu_user_regs *regs)
>          __clear_bit(X86_FEATURE_DS, &d);
>          __clear_bit(X86_FEATURE_ACC, &d);
>          __clear_bit(X86_FEATURE_PBE, &d);
> +        __clear_bit(X86_FEATURE_MTRR, &d);

Thus clearing this flag should be limited to PVH.

Jan


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


 


Rackspace

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