Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1299208ybg; Fri, 18 Oct 2019 15:27:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcPGMaGNXUgWyd32/0VS4V4aNKthH7lyk8UtQx5NuVybrqJ/K3vTZnxWZJ29ljhfJWH4WN X-Received: by 2002:a17:906:194d:: with SMTP id b13mr11050277eje.199.1571437647623; Fri, 18 Oct 2019 15:27:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571437647; cv=none; d=google.com; s=arc-20160816; b=QMHF3/w5M2//bsRlB/UR01ZKwpF7RARTcnlWAPs7+12FyptKKyawfogjjd+e3dGXAX KXZbIhqSfBwomJGp0aBUM2rPHxfQO8Wb4HPwe5/vrRZjpXZCNrpJhTsxqAP8hmZ0fElt QKUWmZhMmmuSCEEHMVESW5FZCqt1wdiCygK2d9pvf9JRKJ0WyUsn4Pk9K8dZmbcoNgzR nUHoozHL6NId8dD6kx09q+iJMjPyXyfq6OT2JYTIM3BtAbFoMm1UROja/ft8gD+hDLTd Zd0RpfdPrMBtOH4DkZ63IK9wTdYRX/kFWs/fFhW8C8rt90LQcQfbmq2/u6/7gHbuRlUJ zWBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=3T62r48EeXfhRUXXQSuEKvPaMXp4D0GNy2wEA+2mT+A=; b=vLNCjSC1gT0p3kyqEgjct1+zXdIS8GTgsOg1yMckHBTBBgESGClasfrqBK4PwSfX1A Z2MfbtjJ/0MQ3stimFYHXd/38pmh5mT6QBMhGcxLjBBMul73iEzEBieXRR5HCBrV1FBv ZrYfjBITdOKDplrxvCJ/Zly3JiTs+JVJ9GY1NGMR3RiZHtU+WTHJZaFxnurCrIGz6hwS mjZSlnx7xcoy6FgHthPxuTqZgkZmYEvzjHUZ5dHTLXYBRfg/qJ7HNdu5CqrOpBW1G1U2 rLpkRZfKqEVc6Al6wrrFCJMusjWUB1CwdG4ZbrfAPzIHCgl/y5xYyUMAQJOV/oAKsNMm /hgw== 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 z6si4878278edm.316.2019.10.18.15.27.04; Fri, 18 Oct 2019 15:27:27 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409553AbfJRE6C (ORCPT + 99 others); Fri, 18 Oct 2019 00:58:02 -0400 Received: from mga04.intel.com ([192.55.52.120]:47341 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730688AbfJRE6C (ORCPT ); Fri, 18 Oct 2019 00:58:02 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Oct 2019 19:36:47 -0700 X-IronPort-AV: E=Sophos;i="5.67,310,1566889200"; d="scan'208";a="371328089" Received: from xiaoyaol-mobl.ccr.corp.intel.com (HELO [10.239.13.123]) ([10.239.13.123]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/AES256-SHA; 17 Oct 2019 19:36:43 -0700 Subject: Re: [RFD] x86/split_lock: Request to Intel To: Thomas Gleixner , Paolo Bonzini Cc: Sean Christopherson , Fenghua Yu , Ingo Molnar , Borislav Petkov , H Peter Anvin , Peter Zijlstra , 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 References: <1560897679-228028-1-git-send-email-fenghua.yu@intel.com> <1560897679-228028-10-git-send-email-fenghua.yu@intel.com> <20190626203637.GC245468@romley-ivt3.sc.intel.com> <20190925180931.GG31852@linux.intel.com> <3ec328dc-2763-9da5-28d6-e28970262c58@redhat.com> <57f40083-9063-5d41-f06d-fa1ae4c78ec6@redhat.com> <8808c9ac-0906-5eec-a31f-27cbec778f9c@intel.com> From: Xiaoyao Li Message-ID: <5da90713-9a0d-6466-64f7-db435ba07dbe@intel.com> Date: Fri, 18 Oct 2019 10:36:41 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/17/2019 8:29 PM, Thomas Gleixner wrote: > The more I look at this trainwreck, the less interested I am in merging any > of this at all. > > The fact that it took Intel more than a year to figure out that the MSR is > per core and not per thread is yet another proof that this industry just > works by pure chance. > Whether it's per-core or per-thread doesn't affect much how we implement for host/native. And also, no matter it's per-core or per-thread, we always can do something in VIRT. Maybe what matters is below. > Seriously, this makes only sense when it's by default enabled and not > rendered useless by VIRT. Otherwise we never get any reports and none of > the issues are going to be fixed. > For VIRT, it doesn't want old guest to be killed due to #AC. But for native, it doesn't want VIRT to disable the #AC detection I think it's just about the default behavior that whether to disable the host's #AC detection or kill the guest (SIGBUS or something else) once there is an split-lock #AC in guest. So we can provide CONFIG option to set the default behavior and module parameter to let KVM set/change the default behavior.