Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1916851ybb; Thu, 2 Apr 2020 09:39:08 -0700 (PDT) X-Google-Smtp-Source: APiQypL+YMQ+FdizohLLgsBHhn107R0MvWsyr9n5j0HnC7S8CCup/CuxmlrpNajrb34tKvhI1su0 X-Received: by 2002:a05:6830:1d1:: with SMTP id r17mr3142599ota.81.1585845547852; Thu, 02 Apr 2020 09:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585845547; cv=none; d=google.com; s=arc-20160816; b=uN65cuZ73IczyV3Bwtm5wiQW4jD8W1hYFVljMuWw+G2aL4cJTB/03iiQ+AjBemiu2C RUMDYAyzCaXZNpvAk+efc0pineXpjAbsZl11Jq5Ktq+z06v8zFYKXXzW/9KEHAUZA0Z6 AyhJKyNwgPmuQSdSUjB189yNIg8oiHZP8H9C8x9W9vCprvJV54d6RyMIS/uPQyv5mtUB ewmnsjP0buydhb8+5P5ghdfEZWzoZJ9wum7kE92icmPXOX0vGt0dYU31AVDhcRY+WzI+ 6GiqP+nuxxBW58vf56H7zWOIgs221KtSqOlLMXdWPy7zicBmP/V6/B+27eIY8KheFuCy K6WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4boUc8yqYKOgnT+886f3JGYhVM1rD+O9Z6mA5uBaoLY=; b=wpy7tT5klvlwCG1sjTf2y+usAsGHw4M0VCA4028OY5sj8epTWG3IwxlDw5PRa6izcy A0pWZugWTsAa8r7hos3NYL/DYXQgo6iAxxjFuegULlPVL9WB7zf+fIAZVyO7HURcMyjH yToV0yfFPi+owJVE0nc/4FImdZQ+UJmDS+S4TwgJbk8080ab1JRgPkK3AMdQDN0cu3c7 kgQufERQR8ntaCND5XJSZxR3Cmr1nBNcae5uulvNiOroHuHSGditZeAirzIVv/TLAzMS yYaGoX4r4k71oLSVPaKlKaZFdCogh1JLGd108aK8upeRyRrib8rdm70VDCcsKRjmU+KA /m+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=FBu4Z94X; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c29si2489841oos.39.2020.04.02.09.38.55; Thu, 02 Apr 2020 09:39:07 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=FBu4Z94X; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389046AbgDBPLe (ORCPT + 99 others); Thu, 2 Apr 2020 11:11:34 -0400 Received: from merlin.infradead.org ([205.233.59.134]:56816 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388910AbgDBPLe (ORCPT ); Thu, 2 Apr 2020 11:11:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=4boUc8yqYKOgnT+886f3JGYhVM1rD+O9Z6mA5uBaoLY=; b=FBu4Z94X6s9X9Rr40z43GFuwAJ SPD1rDakWUVAGDUNIgFUZi3CNVAD4SjEKXNphXyMuVdAhY2P4A7/Ep2/8ZTjEryzUONivzyslc6eP LpIeEuT5jtW9GEZTNtjzz+zfjNbNeCJLX/wO6ihBWIWYzJVWBpLBV8Fv8Mt9XRjiq9Rq3lTkiuHyG Scd07cl0YreITJdNh100Iym9bDRhHYvepIfxoY6qAkqZNbPDVZUL0wnJiyTegcax3JJBrOU8IiZ8e tO/fZ6mlUou9nWk3JAwEDOWH5BKePwqkRFs0TAVV1tNcg9nTgYhZRpbiRpt4x9pgmGPtTh3V508ll tEhEz5mQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jK1V2-0004Zo-UC; Thu, 02 Apr 2020 15:11:21 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 4273E3010BC; Thu, 2 Apr 2020 17:11:19 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E7C682B0DEBCD; Thu, 2 Apr 2020 17:11:18 +0200 (CEST) Date: Thu, 2 Apr 2020 17:11:18 +0200 From: Peter Zijlstra To: Nadav Amit Cc: Thomas Gleixner , "Kenneth R. Crudup" , LKML , x86 , Paolo Bonzini , Jessica Yu , Fenghua Yu , Xiaoyao Li , Thomas Hellstrom , Sean Christopherson , Tony Luck , Steven Rostedt Subject: Re: [patch 0/2] x86: Prevent Split-Lock-Detection wreckage on VMX hypervisors Message-ID: <20200402151118.GK20713@hirez.programming.kicks-ass.net> References: <20200402123258.895628824@linutronix.de> <875zeinecr.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 02, 2020 at 02:47:33PM +0000, Nadav Amit wrote: > > On Apr 2, 2020, at 7:37 AM, Thomas Gleixner wrote: > > > > "Kenneth R. Crudup" writes: > > > >> On Thu, 2 Apr 2020, Thomas Gleixner wrote: > >> > >>> As Peter and myself don't have access to a SLD enabled machine, the > >>> KVM/VMX part is untested. The module scan part works. > >> > >> I just applied both of these patches to my (Linus' tip) tree, and unfortunately > >> VMWare still hangs if split_lock_detect= is set to anything but "off". > >> > >> Was there anything else I'd needed to do? > > > > Hmm. Not really. Does dmesg show the warning when the VMWare module loads? > > Something like: > > > > x86/split lock detection: disabled due to VMLAUNCH in module: …. > > I ran an objdump on VMware workstation and indeed I do not see a > VMLAUNCH/VMRESUME. I do see however VMXON which should also be good for > detecting hypervisors. I will try to understand why VMLAUNCH is not there. Let me send a version with VMXON detection added in as well.