Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4281377ybv; Tue, 25 Feb 2020 17:00:03 -0800 (PST) X-Google-Smtp-Source: APXvYqy030nohZ3j7otlLZg1HcpJGUjFfdm/yUlgwXDY7cPloeG6bXS5JR9NVEzF1dNTR2U9Vq0G X-Received: by 2002:aca:48cd:: with SMTP id v196mr1269470oia.102.1582678802870; Tue, 25 Feb 2020 17:00:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582678802; cv=none; d=google.com; s=arc-20160816; b=gVNxk09VT5z/UM4XChndrbGSrtqhVKop89WyNyKvlZddPNYfERGwujNRNhIetMv9hR IIZpzo084C6vLSRbPkgjFOAawJnM+sCHz2kLTyeGL1+pQEZO3xNR07ifJDocf6wByI+E G0nTVIHvlRL8nh8BW8dTdRJMi4pc9Y2d17DG5VDstiamVGuLKCs6pbFUnPko2CE+kLCh f9XRWboOvvi+y6ZN+z7QhAob77f2TGWjCT9dywGKRzfBlZ3iI4eerWW6NFviwHW8k9lG TrbzPskyKLwtmLQEzSJS/Yy022feQsZfhuhk98GxjPTJVcFxUi3pMjgepcoZWnx6GaNS o4Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=msMVdISGuOUsFcyAdvN3yMCyaTfUD/0SwsDsHodQ2NE=; b=oHlWqb4FrkmQal85Tls9ahvmEncqLnTjt1tpL1bcrNL3I6O2QHOM5+JfFKgoLLBSd8 9VOC8RiUiwd1o4WQF2c84hxaTg56GlFKeEJEI9xef4BkDhPN5zY/B1hloo5vhhABIkGv YWeYFFiunkjgr83BOdeHardI/d4ODny85Hu0iVUjNRdiYaj4OxCE943y0+h0/vzwLNbh 5ZCPa2HOA7fjl0RjDm63PhDGTfJqYOuznK/X0WFr9HKDAiQ9fafeVn8A/ubgl53qpYyi QIoAEQuU9IymiU58MDsK9YsFuqy1Tg9tnRvPyt47UFwYwTvga+qKMN6MQbhrnt8p4wQ1 YJ2w== 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 q189si221421oic.235.2020.02.25.16.59.51; Tue, 25 Feb 2020 17:00:02 -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 S1729701AbgBZA6n (ORCPT + 99 others); Tue, 25 Feb 2020 19:58:43 -0500 Received: from mga03.intel.com ([134.134.136.65]:23424 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729170AbgBZA6m (ORCPT ); Tue, 25 Feb 2020 19:58:42 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Feb 2020 16:58:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,486,1574150400"; d="scan'208";a="230293262" Received: from jekeller-mobl1.amr.corp.intel.com (HELO [134.134.177.78]) ([134.134.177.78]) by fmsmga007.fm.intel.com with ESMTP; 25 Feb 2020 16:58:40 -0800 Subject: Re: [PATCH v5 13/19] x86/cpufeatures: Add flag to track whether MSR IA32_FEAT_CTL is configured To: Sean Christopherson 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 References: <20191221044513.21680-14-sean.j.christopherson@intel.com> <20200225221234.GL9245@linux.intel.com> <1eaf6fbe-0adb-5074-3bc4-1e8327e0cdb3@intel.com> <20200225232900.GO9245@linux.intel.com> <5434303a-0742-3811-fd14-6445d296c0f0@intel.com> <20200226004258.GP9245@linux.intel.com> From: Jacob Keller Organization: Intel Corporation Message-ID: Date: Tue, 25 Feb 2020 16:58:40 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200226004258.GP9245@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/25/2020 4:42 PM, Sean Christopherson wrote>> So there's something weird going on. Maybe "boot_cpu_has" in the >> vmx_disabled_by_bios is wrong? Hmm. > > Hmm, perhaps a bug somewhere else is overwriting the cpufeatures bit for > X86_FEATURE_VMX. Let me see if I can reproduce from net-next. > If you have any further suggestions for debugging, I'm happy to help try to figure this out. To my eyes, it looks like somehow bits get reset... It's definitely not clear to me how this happens. There is the get_cpu_caps call.. but that seems to correctly call apply_forced_caps at the end. That's all I have time for today. Thanks, Jake