From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, HK_RANDOM_FROM,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1119EC2BA19 for ; Thu, 16 Apr 2020 02:12:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E705920725 for ; Thu, 16 Apr 2020 02:12:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731492AbgDPCMd (ORCPT ); Wed, 15 Apr 2020 22:12:33 -0400 Received: from mga01.intel.com ([192.55.52.88]:20682 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731407AbgDPCMa (ORCPT ); Wed, 15 Apr 2020 22:12:30 -0400 IronPort-SDR: 8mGLUT/4SaB8AsMc5GOv+brypk4a3x6EP57p0QeW/E9ip031U3o0DWYfebj4mV70OInmgaJ7wW 0KTy96t5yyHw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2020 19:12:30 -0700 IronPort-SDR: q3hLULqDtfpxH+QDcFiAQ6zuroNMCHhoiahSIbgbXUV1+hEpmQWFpazK47KGvDPv8pY/9OXoHv LngJ5mHV+QHA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,388,1580803200"; d="scan'208";a="271922934" Received: from xiaoyaol-mobl.ccr.corp.intel.com (HELO [10.255.29.241]) ([10.255.29.241]) by orsmga002.jf.intel.com with ESMTP; 15 Apr 2020 19:12:27 -0700 Subject: Re: [PATCH v8 4/4] kvm: vmx: virtualize split lock detection To: Thomas Gleixner , Paolo Bonzini , kvm@vger.kernel.org, Sean Christopherson Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Ingo Molnar , Borislav Petkov , Andy Lutomirski , Peter Zijlstra , Arvind Sankar References: <20200414063129.133630-1-xiaoyao.li@intel.com> <20200414063129.133630-5-xiaoyao.li@intel.com> <87y2qwmszt.fsf@nanos.tec.linutronix.de> From: Xiaoyao Li Message-ID: <906dd919-3ae5-5279-b706-168e509ce953@intel.com> Date: Thu, 16 Apr 2020 10:12:26 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <87y2qwmszt.fsf@nanos.tec.linutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 4/16/2020 3:47 AM, Thomas Gleixner wrote: > Xiaoyao Li writes: > >> Due to the fact that TEST_CTRL MSR is per-core scope, i.e., the sibling >> threads in the same physical CPU core share the same MSR, only >> advertising feature split lock detection to guest when SMT is disabled >> or unsupported, for simplicitly. > > That's not for simplicity. It's for correctness because you cannot > provide consistent state to a guest. > I'll correct it. Thanks! -Xiaoyao