Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3364627yba; Mon, 29 Apr 2019 00:33:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWCu5514m0WVME9bLeI876D9dOdj78bAqCDSHKEOuqTRoOQ8wA0DsiMD0PVsNIfcT2B43q X-Received: by 2002:a17:902:20c6:: with SMTP id v6mr57586636plg.276.1556523192365; Mon, 29 Apr 2019 00:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556523192; cv=none; d=google.com; s=arc-20160816; b=pkE3ylENdOyWTpX4uY/5xeOL/59o4mM+36wHGH+aYoNGK7t6geYiqRv424rZzLEleC OTWDvzLYb0h77ZtuWRKSFL43UxuGP2ielpm5QaEjc+XGC35VZCHFefXQAW0yREpXGYYp SP4mBEeMi3mKpXKchqZYPI1Djm4IfdM6sIsa9W76uUc/0YxswqhUoBAMezfm/8yUgFbX 799CmRSUPEeAcouNQEzZOZWPmhhRcjNj6EFCVuJo6llXOaSKqap/Gej6XEUF6y2wQwo4 gvkDCOZPAVq/NlqLZiPVU93rd8RzcVjdidghQGuwK+KG4DU/LgQ8jfltMjwC9C6E+OlD FeVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=yJAb5b+GYc4lkj4S527CbQ5wIDYHWeONKs16uWnidWY=; b=O+ZY2HlWNiNufOD+X1rmODQ1b9FzSc5po7/CoYv1uYWkFxBQJ3KIbhswcHtii/DWQ8 JXpgkFDYRztgn/KjTtBtjg49l3+x940qotwN8r6tgNhJu3+dmaai+MGOHM1RPjQtPV1U WfykFKb5IB0fFkbHUQwgrX+x/DdqNusba1knxnykNWGnakefyU6WRCQBCxU/wRRiQLP9 TUMQyU+zuIJrwEwCrwbkHAG+4Q1cf8evQ1NpHNeKeEcYRLTd+sPJdLUxrK1JM7YI9cVC gfB/HGVEZ2JjzgowOnW8NL6tnBMmdouRVwOy0LKdpAkJ6ab3BJdyN0ygp2llw2bFxzUi 55hA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j91si32862562pld.199.2019.04.29.00.32.56; Mon, 29 Apr 2019 00:33:12 -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; 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 S1727463AbfD2HcF (ORCPT + 99 others); Mon, 29 Apr 2019 03:32:05 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:40722 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726846AbfD2HcE (ORCPT ); Mon, 29 Apr 2019 03:32:04 -0400 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hL0lK-00053O-Qd; Mon, 29 Apr 2019 09:31:43 +0200 Date: Mon, 29 Apr 2019 09:31:37 +0200 (CEST) From: Thomas Gleixner To: Xiaoyao Li cc: Fenghua Yu , Ingo Molnar , Borislav Petkov , H Peter Anvin , Paolo Bonzini , Dave Hansen , Ashok Raj , Peter Zijlstra , Ravi V Shankar , Christopherson Sean J , Kalle Valo , Michael Chan , linux-kernel , x86 , kvm@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: Re: [PATCH v8 12/15] kvm/vmx: Emulate MSR TEST_CTL In-Reply-To: <87ef9a01-fc99-20be-ec20-2c65e6a012a1@linux.intel.com> Message-ID: References: <1556134382-58814-1-git-send-email-fenghua.yu@intel.com> <1556134382-58814-13-git-send-email-fenghua.yu@intel.com> <7395908840acfbf806146f5f20d3509342771a19.camel@linux.intel.com> <87ef9a01-fc99-20be-ec20-2c65e6a012a1@linux.intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 28 Apr 2019, Xiaoyao Li wrote: > On 4/28/2019 3:09 PM, Thomas Gleixner wrote: > > On Sat, 27 Apr 2019, Xiaoyao Li wrote: > > > Indeed, if we use split lock detection for protection purpose, when host > > > has it enabled we should directly pass it to guest and forbid guest from > > > disabling it. And only when host disables split lock detection, we can > > > expose it and allow the guest to turn it on. > > ? > > > If it is used for protection purpose, then it should follow what you said > > > and > > > this feature needs to be disabled by default. Because there are split lock > > > issues in old/current kernels and BIOS. That will cause the existing guest > > > booting failure and killed due to those split lock. > > > > Rightfully so. > > So, the patch 13 "Enable split lock detection by default" needs to be removed? Why? No. We enable it by default and everything which violates the rules gets what it deserves. If there is an issue, boot with ac_splitlock_off and be done with it. Thanks, tglx