Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031103AbcCQS4y (ORCPT ); Thu, 17 Mar 2016 14:56:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:57666 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936612AbcCQS4v (ORCPT ); Thu, 17 Mar 2016 14:56:51 -0400 Date: Thu, 17 Mar 2016 19:56:47 +0100 From: "Luis R. Rodriguez" To: David Vrabel Cc: "Luis R. Rodriguez" , "xen-devel@lists.xensource.com" , Keir Fraser , Juergen Gross , X86 ML , Toshi Kani , Andrew Cooper , Stuart Hayes , "linux-kernel@vger.kernel.org" , Andy Lutomirski , Borislav Petkov , "H. Peter Anvin" , Paul McKenney , Yinghai Lu , Ingo Molnar Subject: Re: [Xen-devel] MTRR on Xen - BIOS use and implications for Linux Message-ID: <20160317185647.GR1990@wotan.suse.de> References: <56EA913F.1040403@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56EA913F.1040403@citrix.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 934 Lines: 22 On Thu, Mar 17, 2016 at 11:13:03AM +0000, David Vrabel wrote: > On 16/03/16 20:08, Luis R. Rodriguez wrote: > > Toshi noted a while ago as well that if BIOS/firmware enables MTRR but > > the kernel does not have it enabled one issue might have been any > > MTRRs set up by the BIOS and ensuring the mapping is respected, in > > particular UC settings, this concern is raised above. Another issue > > though is that the kernel would be "unable to verify if a large page > > mapping is aligned with MTRRs" [3] > > This is not a relevant concern for Xen guests: PV guests do not > support superpage mappings And only with superpage mappings would such things be an issue? Can you clarify why? Is there no plans to support this in the future? If the MTRRs will not be used, to be safe, why not just skip all of them from the e820 map and be done with it? > and HVM guests never see real MTRRs. Thanks, can you clarify why? Luis