From: "Jan Beulich" Subject: Re: [PATCH] pv/pvh: disable MTRR feature on cpuid for Dom0 Date: Fri, 13 Dec 2013 11:28:39 +0000 Message-ID: <52AAFD77020000780010CF49@nat28.tlf.novell.com> References: <1386867141-11581-1-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VrQvD-0000Lz-Kp for xen-devel@lists.xenproject.org; Fri, 13 Dec 2013 11:28:43 +0000 In-Reply-To: <1386867141-11581-1-git-send-email-roger.pau@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roger Pau Monne Cc: George Dunlap , xen-devel@lists.xenproject.org, Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> On 12.12.13 at 17:52, Roger Pau Monne 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