From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753454AbbIBJiZ (ORCPT ); Wed, 2 Sep 2015 05:38:25 -0400 Received: from ud10.udmedia.de ([194.117.254.50]:39789 "EHLO mail.ud10.udmedia.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753138AbbIBJiX (ORCPT ); Wed, 2 Sep 2015 05:38:23 -0400 Date: Wed, 2 Sep 2015 11:38:18 +0200 From: Markus Trippelsdorf To: Xiao Guangrong 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 Subject: Re: commit 3c2e7f7de3 (KVM use NPT page attributes) causes boot failures Message-ID: <20150902093818.GA422@x4> References: <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> <55E6273D.6080701@linux.intel.com> <20150902035040.GA420@x4> <55E6BEB1.6080106@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55E6BEB1.6080106@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2015.09.02 at 17:17 +0800, Xiao Guangrong wrote: > > > > No. PAT is of course enabled and booting is successful sometimes even > > with the BUG() in allback_mtrr_type(). I suspect a setup (timing) issue. > > Thanks for your confirmation. > > > > > markus@x4 linux % cat .config | grep X86_PAT > > CONFIG_X86_PAT=y > > markus@x4 linux % dmesg | grep PAT > > [ 0.000000] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WC UC- WT > > Strange, BP processor has already set WC to PAT1, however KVM does not read it out > from PAT MSR on its local CPU. > > Hmm... PAT default values do not include WC, it seems initing PAT on SP has not > finished after module_init()? > > Could please apply this diff and test it again? (Your patch was malformed.) [ 2.138098] kvm: Nested Virtualization enabled [ 2.138153] kvm: Nested Paging enabled [ 2.138204] KVM PAT: 0x7040600070406. [ 2.138255] mtrr2protval[0]:18. [ 2.138306] mtrr2protval[1]:ff. [ 2.138356] mtrr2protval[2]:0. [ 2.138408] mtrr2protval[3]:0. [ 2.138459] mtrr2protval[4]:8. [ 2.138510] mtrr2protval[5]:ff. [ 2.138561] mtrr2protval[6]:0. [ 2.138612] mtrr2protval[7]:10. [ 2.138662] BUG in fallback_mtrr_type, mtrr = 1. -- Markus