From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752579AbcCJTEx (ORCPT ); Thu, 10 Mar 2016 14:04:53 -0500 Received: from mail1.windriver.com ([147.11.146.13]:61012 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750942AbcCJTEr (ORCPT ); Thu, 10 Mar 2016 14:04:47 -0500 Date: Thu, 10 Mar 2016 14:04:29 -0500 From: Paul Gortmaker To: Borislav Petkov CC: Toshi Kani , Richard Purdie , Toshi Kani , Bruce Ashfield , "Hart, Darren" , "saul.wold" , Subject: Re: runtime regression with "x86/mm/pat: Emulate PAT when it is disabled" Message-ID: <20160310190429.GI23251@windriver.com> References: <20160307003501.GB26051@windriver.com> <1457366596.15454.281.camel@hpe.com> <20160307210852.GC26051@windriver.com> <1457393912.15454.419.camel@hpe.com> <20160307235328.GD26051@windriver.com> <1457398578.15454.421.camel@hpe.com> <1457400913.15454.435.camel@hpe.com> <20160310144250.GG23251@windriver.com> <1457628591.15454.542.camel@hpe.com> <20160310172029.GA2194@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160310172029.GA2194@pd.tnic> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Re: runtime regression with "x86/mm/pat: Emulate PAT when it is disabled"] On 10/03/2016 (Thu 18:20) Borislav Petkov wrote: > On Thu, Mar 10, 2016 at 09:49:51AM -0700, Toshi Kani wrote: > > This confirms the issue - QEMU's virtual Intel CPU does not support MTRR.  > > > > When MTRR is disabled, the kernel does not call pat_init().  pat_enabled() > > is still set to true when CONFIG_X86_PAT is set.  CONFIG_X86_PAT depends on > > CONFIG_MTRR, and assumes that MTRR is enabled.  > > Aha, so "qemu32" model doesn't support MTRRs but "kvm32" does, for > example. And so do the majority of the other CPU types. So, I guess that is a qemu bug? If there is no real silicon out there that has no MTRR but does claim PAT, then qemu32 is a flawed CPU type? > > Paul, can you guys run with something else besides "qemu32"? You can > even take a 64-bit one and run a 32-bit guest on it. That is probably more of an RP question. In principle I guess other CPU types are on the table, and most likely qemu32 is just there from historical reasons. We do know that we don't want "-cpu host" though, since that will introduce variability into the automated testing. Paul. -- > > :-) > > -- > Regards/Gruss, > Boris. > > SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) > --