Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5711390imb; Fri, 8 Mar 2019 00:07:34 -0800 (PST) X-Google-Smtp-Source: APXvYqzJeQuiAVsSscrNCfBmLmigxfWllQs8ZNBcrdloa66QKB6sRqbaAaWaq0WjO6H1kkQUIwyd X-Received: by 2002:a62:e802:: with SMTP id c2mr16927784pfi.249.1552032454019; Fri, 08 Mar 2019 00:07:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552032454; cv=none; d=google.com; s=arc-20160816; b=mSNmiKJiEOiL8klyOm1+bKxldndaVL+3AnU7mGmGXsyFQeyPDJhBZ79enRISE/A4lY oraru+r9GgBrww6+aX8C1Ci3Q88kJMDXNVMKnAuLT4YYEhYUKSbhxPrWWU2o5JtvvjRR ZsmHAvvbxGtyMQEerBH674dumKfLESfb7iPqrI16lo6wjClzt2W1SDjC2IZ5Zcodm9hk /p76f5GZxIwuGUoc0GGMKXnP9RSIS3aALyGvNJCSSxPW11pzvBY4t6EjICsTTpGLp2nr o9+PHf7LOBhMdGivV+eF3AkXnCRhMxyLq0T3tqfk869RGihX6QUjGYWgLHcahQ/ZSjs6 og/w== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=to4+KiU7aHDStIVtKNofq/gunJpkwxPzlguS8VB6FUU=; b=Q9MnINYSjQxk/X7o0mf4j0b79Ns1xwrec9CS+MP8LCFfyCMAUnAXrec6pmLCjTx7XC D6ms/csy7uLeC7+QZGlg5c/PAxZnID/mIWFNy9NPviA8mPScHL+0DslVnji047B0KgN7 f8OXs6VBPdlwIwWYIMK8r3RvsT44o/CPWLBSSlacabUxeXxG5+MKlBNscgeiGrCvSNd2 Smbz8rGIErpTj23DRI7adHp/E0d4NRvXhNxphK08PLbyepylUkNAQc8+U2/tI5+bvDvP Ic72yCd91UtKKISXwbEJ4dddkfgEy5vJpdhAcO+/HvKGLMsF9tCBQ+7FXARby1IVLGJU Jabg== 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 t18si5914233pgh.89.2019.03.08.00.07.18; Fri, 08 Mar 2019 00:07:34 -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 S1726357AbfCHIGn (ORCPT + 99 others); Fri, 8 Mar 2019 03:06:43 -0500 Received: from mga09.intel.com ([134.134.136.24]:43527 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725308AbfCHIGn (ORCPT ); Fri, 8 Mar 2019 03:06:43 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Mar 2019 00:06:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,455,1544515200"; d="scan'208";a="140196044" Received: from lxy-dell.sh.intel.com ([10.239.159.147]) by orsmga002.jf.intel.com with ESMTP; 08 Mar 2019 00:06:40 -0800 Message-ID: <6f6bf5b4cfe309914c6f533518ecf5e497f1bd73.camel@linux.intel.com> Subject: Re: [PATCH v4 16/17] kvm: x86: Add support IA32_CORE_CAPABILITY MSR From: Xiaoyao Li To: Paolo Bonzini , Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Dave Hansen , Ashok Raj , Peter Zijlstra , Ravi V Shankar Cc: linux-kernel , x86 , kvm@vger.kernel.org Date: Fri, 08 Mar 2019 16:03:24 +0800 In-Reply-To: <9edabe63-b77f-d9d8-d573-7e46d944b972@redhat.com> References: <1551494711-213533-1-git-send-email-fenghua.yu@intel.com> <1551494711-213533-17-git-send-email-fenghua.yu@intel.com> <74630db9-2a83-cd72-73f6-8b9ef9b07313@redhat.com> <3ced155309e5c3a01815ec39bb69016ca06316b6.camel@linux.intel.com> <9edabe63-b77f-d9d8-d573-7e46d944b972@redhat.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-2.el7) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-03-08 at 08:54 +0100, Paolo Bonzini wrote: > On 08/03/19 07:10, Xiaoyao Li wrote: > > > so that non-virtualizable features are hidden and > > > > > > if (boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT)) > > > data |= CORE_CAP_SPLIT_LOCK_DETECT; > > > > > > so that userspace gets "for free" the FMS list that will be added > > > later to the kernel. > > > > I think it's redundant. Because there is no case that > > rdmsrl_safe(MSR_IA32_CORE_CAPABILITY, &data) shows no split lock detection > > while > > boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT). > > There will be when the kernel will add a list of FMS values that have > split lock detection but lack the core capabilities MSR. Or at least > that is what Fenghua said in the cover letter. > > Paolo Got it. Thanks for your explanation.