From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752587AbbIAWhZ (ORCPT ); Tue, 1 Sep 2015 18:37:25 -0400 Received: from mga01.intel.com ([192.55.52.88]:50180 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751029AbbIAWhY (ORCPT ); Tue, 1 Sep 2015 18:37:24 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,451,1437462000"; d="scan'208";a="795838655" Subject: Re: commit 3c2e7f7de3 (KVM use NPT page attributes) causes boot failures To: Markus Trippelsdorf References: <20150831172453.GA5429@gmail.com> <20150901070856.GA430@x4> <20150901072741.GB20383@gmail.com> <20150901074449.GB430@x4> <20150901083856.GD25398@gmail.com> <20150901084444.GB421@x4> <20150901085627.GF6315@gmail.com> <20150901100417.GA424@x4> <55E5A157.5040403@linux.intel.com> <20150901135636.GA423@x4> Cc: Ingo Molnar , Linus Torvalds , linux-kernel@vger.kernel.org, Peter Zijlstra , Thomas Gleixner , Andrew Morton , Mike Galbraith , Joerg Roedel , Paolo Bonzini , kvm@vger.kernel.org From: Xiao Guangrong Message-ID: <55E6273D.6080701@linux.intel.com> Date: Wed, 2 Sep 2015 06:31:25 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <20150901135636.GA423@x4> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/01/2015 09:56 PM, Markus Trippelsdorf wrote: > On 2015.09.01 at 21:00 +0800, Xiao Guangrong wrote: >> >> Did it trigger the BUG()/BUG_ON() in mtrr2protval()/fallback_mtrr_type()? >> If yes, could you please print the actual value out? > > It is the BUG() in fallback_mtrr_type(). I changed it to a printk and > it prints 1 for the value of mtrr. > > MTRR_TYPE_WRCOMB 1 > Then I suspect pat is not enabled in your box, could you please check CONFIG_X86_PAT is selected in your .config file, pat is shown in /proc/cpuid, "nopat" kernel parameter is used, and dmesg | grep PAT. I will post a fix if the suspect is right.