Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4207888ybv; Tue, 25 Feb 2020 15:30:09 -0800 (PST) X-Google-Smtp-Source: APXvYqx4HiXhWfFUhpAF+CRW1fkdrZImUZ1RxKNMez0RPHFhBD2x0fM4M/rvcp+fyo7iR6VvippS X-Received: by 2002:a9d:12af:: with SMTP id g44mr784928otg.332.1582673409389; Tue, 25 Feb 2020 15:30:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582673409; cv=none; d=google.com; s=arc-20160816; b=C/AU+hsJG/3Ogqc+zUkMjxlQCv75OBKHEcIhnDp8yAZBPleMAHAaR0AaldXBlB2lsd f+4bn4rUflMDKVfCoFA6CdASVi6UVaRytTdog7AhXOI9rmiZ3yJv8/LKkA8b96X2Qtr5 XTY6yrriOjYceKLTlvN/YMskrHYyvLPvfWnlPoK1z+pIIpErRzTDt2x3k5SF4Gr1FtIA BwaqVP099prifDFZmlzJxl1ngSuLU1uYzjJ87DMZHzUdxNopJoK0qUE17+aMKboqTd7z TOA7LS8oyfWZ0OORMUEXAUwDW9QcRVCRZKlTzUctFR4sucqP2vJAJw6FYCnSOJWN7gVx cm9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=jPL11lGFRC4fPF1iAJTqbFTBLc2496NQI8Qyvk12oT8=; b=zn9kJ4tNx2KzY02uLxg+nioXKxJL3PdV+d4xmKXaXiLMjO9EXBi0nGMECJgSixltl6 0yhCZX/YiToAUwNe8LP5P7GHIVWllWCexh0nwX5s8cvsqeAkMdt47jMfftmVKUNulL/U Wyf3F0jpuTx2BladZ+INKfFR79E5HJjAdKM+45LxMM2i7l8WhFT8vfRdY1JhP0+FCvyD MUUsFk7riGEHwEf6YR+4eCV1k6pdHCHBDUhC9MdFGFkvVPWMUu7hICZY2IOIYSFirU6A xAsswUvmBY7oNakw3XrE02FX14gW71YN+sKW6fr4pKgTnlzSMUg8nx23e+keOG98Ueu3 6KeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m16si216070otj.7.2020.02.25.15.29.57; Tue, 25 Feb 2020 15:30:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730698AbgBYX3Z (ORCPT + 99 others); Tue, 25 Feb 2020 18:29:25 -0500 Received: from mga04.intel.com ([192.55.52.120]:35713 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729928AbgBYX3W (ORCPT ); Tue, 25 Feb 2020 18:29:22 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Feb 2020 15:29:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,485,1574150400"; d="scan'208";a="231618923" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.202]) by fmsmga008.fm.intel.com with ESMTP; 25 Feb 2020 15:29:00 -0800 Date: Tue, 25 Feb 2020 15:29:00 -0800 From: Sean Christopherson To: Jacob Keller Cc: TonyWWang-oc@zhaoxin.com, acme@kernel.org, alexander.shishkin@linux.intel.com, bp@alien8.de, bp@suse.de, hpa@zytor.com, jacob.jun.pan@linux.intel.com, jarkko.sakkinen@linux.intel.com, jmattson@google.com, jolsa@redhat.com, joro@8bytes.org, kvm@vger.kernel.org, lenb@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-pm@vger.kernel.org, mark.rutland@arm.com, mingo@redhat.com, namhyung@kernel.org, pbonzini@redhat.com, peterz@infradead.org, rkrcmar@redhat.com, shuah@kernel.org, tglx@linutronix.de, tony.luck@intel.com, vkuznets@redhat.com, wanpengli@tencent.com, x86@kernel.org Subject: Re: [PATCH v5 13/19] x86/cpufeatures: Add flag to track whether MSR IA32_FEAT_CTL is configured Message-ID: <20200225232900.GO9245@linux.intel.com> References: <20191221044513.21680-14-sean.j.christopherson@intel.com> <20200225221234.GL9245@linux.intel.com> <1eaf6fbe-0adb-5074-3bc4-1e8327e0cdb3@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1eaf6fbe-0adb-5074-3bc4-1e8327e0cdb3@intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 25, 2020 at 02:52:32PM -0800, Jacob Keller wrote: > On 2/25/2020 2:12 PM, Sean Christopherson wrote: > > On Tue, Feb 25, 2020 at 01:49:13PM -0800, Jacob Keller wrote: > >> Hi Sean, > >> > >> I suspect something is wrong and the features are enabled even though > >> the BIOS has it disabled, leading to later failure because of this. > > > > Hrm. On the failing kernel, what are the values of MSR 0x3a for all CPUs, > > i.e. what's the output of 'sudo rdmsr -a 0x3a'? > > > > On the old (fedora 30) kernel, every cpu reports as '1'. > > I can't easily test the failing kernel because it crashes during boot. No need, your BIOS is likely locking the MSR, I doubt the value is any different when running the new kernel. Does reverting commit a4d0b2fdbcf7 ("KVM: VMX: Use VMX feature flag to query BIOS enabling") resolve the issue? Is the failing kernel an (umodified) upstream kernel? A stable kernel? Or something else? Assuming it's an unmodified upstream kernel, can you send your .config? I've tried all the obvious Kconfig combinations but haven't been able to reproduce the problem. Staring at the code hasn't yielded any revelations either.