Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1729400ybg; Sat, 19 Oct 2019 01:14:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGkXebSKScJ5OWRK6bi2F0nGJMzrzJTmI0HnHBA0BVAO4b9wplT8yixzQoemRUFjISGYPR X-Received: by 2002:a17:906:35cb:: with SMTP id p11mr12727636ejb.128.1571472865293; Sat, 19 Oct 2019 01:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571472865; cv=none; d=google.com; s=arc-20160816; b=Ru8Zx5rZJze3a9KGjp3OJIewsfOCFkczpJcZM+G9xvqJOQKYID4aF1veXE0W1kSwDF ueYEzgd+8m+t+F+KUCd92I/eFhPTgFMHL5iL38hbyhE7O8rk5NOTjyKM9HtgurwbBOOy 1NVoaQk9O9Tsj6K87xybRjNCgB1quY7uvfmOOfisTXUGRZkqSBZgDfMqMQx+q7VqcF94 QyayFeUWA1P5LasL2zl4D307yxs6e+spr0Cx9TmT0XO/FsS2Dia5PdSPoSoyiCaBdNmv tASjveZjjwgcP+3JNm/jOIFxN/xBGR1ctCaXg7q5TJiHNQFy6nx7iqVJEJVJd0FXPjSX YFPw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oxApsNYvw66RYq5moaNmeiPbSZysZVQPCrDxkISvsxg=; b=wKH08yKS4c8H8Zp62F4n80Jr45lgrUT5bP3hUnZELndYy9YRjgfQA/ZJDD8HR5hM+I 0UbUT9lEhRESJYlNDC1acNCOkb6SC1y6bnp/smip3gDhLOvM2ZoWnHxcvqEPi4wvFuMq PWcbQ3vBQjEyVvaaslJzG3g8i5pjq2Ufx5Je/fKKGZ6kkNjDwouTB1bOUr7qYoAL3fVK oww2mTCi6pCicnlE/UkOifKqG1m0KBJghrA9xVZIScDBAtU8DZa1idJdAzXbbgvq5W1f D4iS95TJDVdeCy1E71cZaYYcWP02c8rnRnTie66NVK55p1e4aL1ZFXxopvnqeZ9YwoNe 7KwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b="lj+/TILV"; 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 re13si4716450ejb.279.2019.10.19.01.14.02; Sat, 19 Oct 2019 01:14:25 -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="lj+/TILV"; 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 S2390487AbfJRKn0 (ORCPT + 99 others); Fri, 18 Oct 2019 06:43:26 -0400 Received: from merlin.infradead.org ([205.233.59.134]:36014 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbfJRKn0 (ORCPT ); Fri, 18 Oct 2019 06:43:26 -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-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oxApsNYvw66RYq5moaNmeiPbSZysZVQPCrDxkISvsxg=; b=lj+/TILVPr4+8Wq0kbg6+i9q6 +MNAtgBK5pj3tsWPMlgEh9gkCSGNHeH0/PjsFEVmBD3SWLGXlE6Qm+shwtvkTY+3zA6RIX3v/FI1x MnBsHcVL12ndv3QPVj66JqqLpzSeDaqJJrlBFGhXChMts3nyYJSnRXB/cQD8PhxpdSC27rPyoA8Ua Slf5mJ1ftQ4X8JWkavBHsdFmJAG0a+eJoa3XkBpAmI0pwO6o8WbXKdHnfczUQa1Cv21IdPpG14mtO qCKljUY/+KSBGPCTXLfL4ikRgkpQw0TahKphA5iHj1lQpSOqusq9i6Hxgy+mKXKtkxTF0bPHZbr/b U+lyQcIdA==; 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 1iLPix-0002Ib-3W; Fri, 18 Oct 2019 10:43:11 +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 9081A30018A; Fri, 18 Oct 2019 12:42:11 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 56C542B17810B; Fri, 18 Oct 2019 12:43:07 +0200 (CEST) Date: Fri, 18 Oct 2019 12:43:07 +0200 From: Peter Zijlstra To: Xiaoyao Li Cc: Thomas Gleixner , Paolo Bonzini , Sean Christopherson , Fenghua Yu , Ingo Molnar , Borislav Petkov , H Peter Anvin , Andrew Morton , Dave Hansen , Radim Krcmar , Ashok Raj , Tony Luck , Dan Williams , Sai Praneeth Prakhya , Ravi V Shankar , linux-kernel , x86 , kvm@vger.kernel.org Subject: Re: [RFD] x86/split_lock: Request to Intel Message-ID: <20191018104307.GG2328@hirez.programming.kicks-ass.net> References: <57f40083-9063-5d41-f06d-fa1ae4c78ec6@redhat.com> <8808c9ac-0906-5eec-a31f-27cbec778f9c@intel.com> <5da90713-9a0d-6466-64f7-db435ba07dbe@intel.com> <763bb046-e016-9440-55c4-33438e35e436@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <763bb046-e016-9440-55c4-33438e35e436@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 18, 2019 at 06:20:44PM +0800, Xiaoyao Li wrote: > We enable #AC on all cores/threads to detect split lock. > -If user space causes #AC, sending SIGBUS to it. > -If kernel causes #AC, we globally disable #AC on all cores/threads, > letting kernel go on working and WARN. (only disabling #AC on the thread > generates it just doesn't help, since the buggy kernel code is possible to > run on any threads and thus disabling #AC on all of them) > > As described above, either enabled globally or disabled globally, so whether > it's per-core or per-thread really doesn't matter Go back and read the friggin' thread already. A big clue: virt ruins it (like it tends to do).