Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3890690ybc; Thu, 21 Nov 2019 15:43:16 -0800 (PST) X-Google-Smtp-Source: APXvYqx+hmsnn/pTBrVbgHJbrEwcKmVxlybNwAeWeM3nbWxF7BQKFnM42f0yXL+f3HMv+fEiYULP X-Received: by 2002:a17:907:2070:: with SMTP id qp16mr17649438ejb.115.1574379795928; Thu, 21 Nov 2019 15:43:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574379795; cv=none; d=google.com; s=arc-20160816; b=B1GTR6VvZPmrSXhoZc4VHs3QeYbNLYJZnSoRkPTbb+Ob/eHWfbQfxcOY029blvSDr/ SoUVUnHlFpr6Y9GLSzutsIlKYPZtP7ZpEIARbkL19+21neXtcIZMBGNbpfEI+7um3xpv tezADFtAcnZ4JfjFzX8ofPz/fwNFB6CwnSG2NF/Rzdn3UENUjYlXc1DAd5VKO4dhsLg0 vge1f+1w/O0+V2JcvJnVBcL8j+9jF+BL3f3Jqi66a5cSA/8FAz7HJdzXth14BsnyBuPH OsBcjDqtuy25sFPUJlWcAszdbb7REkE8W1PAxvkTiKHRUWFFML8L9eUfPKCk4slwIziO aadQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=bRzmIR72ohPgfaHXEuT/oFRX1WrQ79Q2heCTJ5qg6T8=; b=JKOgZDXTs7qxqmXrvKhEsJRONiOvrGIDspselFH88lvtsxLwujCbkM5awNTCWHfA+l imdU9nGApUtIXF0d0+N0Iglv21yWEW8SDsDzTo5aWgLQQTMkweGfA1w7jH0Kjx9+W308 Ci1MtqIYRbBQNWkWka/HsVZfJOAcNpN9v55oCSb7Geu8qPTihRISTINTaEcpSDPJkvC/ 4Xvo7ZMJ6GX129FsmJk1zJVP0qZZjM283up1GkSlw8RKR2UvtPjisz1zpjodSntFGdlZ CWiJlmW9oIbmjV3HrplwXuhiN8yWxMTBl5jRZzIiWptDEzBfjArQTBXU9SCR1DFbX00N 9a3g== 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 c57si3573994edc.386.2019.11.21.15.42.52; Thu, 21 Nov 2019 15:43:15 -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 S1726676AbfKUXlU (ORCPT + 99 others); Thu, 21 Nov 2019 18:41:20 -0500 Received: from mga01.intel.com ([192.55.52.88]:39193 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbfKUXlT (ORCPT ); Thu, 21 Nov 2019 18:41:19 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Nov 2019 15:41:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,227,1571727600"; d="scan'208";a="216242622" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by fmsmga001.fm.intel.com with ESMTP; 21 Nov 2019 15:41:18 -0800 Date: Thu, 21 Nov 2019 15:53:29 -0800 From: Fenghua Yu To: Andy Lutomirski Cc: Christopherson Sean J , Xiaoyao Li , "Luck, Tony" , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , "Raj, Ashok" , "Shankar, Ravi V" , linux-kernel , x86 Subject: Re: [PATCH v10 6/6] x86/split_lock: Enable split lock detection by kernel parameter Message-ID: <20191121235329.GE199273@romley-ivt3.sc.intel.com> References: <3908561D78D1C84285E8C5FCA982C28F7F4DC167@ORSMSX115.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 21, 2019 at 03:18:46PM -0800, Andy Lutomirski wrote: > > > > On Nov 21, 2019, at 2:29 PM, Luck, Tony wrote: > > > >  > >> > >> It would be really, really nice if we could pass this feature through to a VM. Can we? > > > > It's hard because the MSR is core scoped rather than thread scoped. So on an HT > > enabled system a pair of logical processors gets enabled/disabled together. > > > > > > Well that sucks. > > Could we pass it through if the host has no HT? Debugging is *so* much easier in a VM. And HT is a bit dubious these days anyway. I think it's doable to pass it through to KVM. The difficulty is to disable split lock detection in KVM because that will disable split lock on the whole core including threads for the host. Without disabling split lock in KVM, it's doable to debug split lock in KVM. Sean and Xiaoyao are working on split lock for KVM (in separate patch set). They may have insight on how to do this. Thanks. -Fenghua