Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1118964imm; Thu, 6 Sep 2018 16:00:18 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYYducyEZp5/Q7FSCbe/TVVDw7Ofj599rA5z7s6EOyo8bpCFP08bopeSLQPlFjjTYeb64J7 X-Received: by 2002:a63:4a4b:: with SMTP id j11-v6mr5254479pgl.168.1536274818507; Thu, 06 Sep 2018 16:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536274818; cv=none; d=google.com; s=arc-20160816; b=Wl+buL3R4rmVsjoMuvFo92T1uYBa6E8ioT14amxy1qyiVqJk5S6luWQgssDVdM3qf2 MSKVzYpwyiqcukRv/ZVahyC8BsDiFR9wDnL4hxNU9HbMIKMCE89PPuhFg6T8h3onrg+c fIb2N3leLbcrYT40wqudz1I0LUYXKovD9SG94xL8JpKz5BCZiws5xhKnWqeOPDWPztJT dbMmN9BZ2ohBfKK2kiB+5Q2vZ0FjN1MYMo8sLcqUF/xv7Z1MWXe6n+300GcIcbJFezw1 DcOZpTgBK+kjlp9GDGCwvqSQQcQuQ9oddT9lrcdaO2U7NT+T2djlIqJQmPpJ1GcYi58K lZGA== 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=zt5lShDTuY1ZzO+3P83YEWISa3s6DGfkvvVHNsgF6p4=; b=D+ECltM23l8UZqcQVhh3Ik4fWN/HWxRb9bQHimLcx7GoQMGeoSUH1fq1jBzI3pcmeq ZXdrMjh+Fs7/lC3gxlSj4P6Yp+LnHrFVRfNaheyP4wRSwfbe06pXdLtHrnMMm6VZjPAx MAjYZ+yabcbNzSV175hAxg1+MLKgbn3v9S89c2Eo0l6KPdgi5j3OwJOKeprfj/6lnmgq IuNC9ouXMZO5kfPhkie1XhpP+0fA7aNUYNKI/+5ezPVks9DKDWSSrRr7NDWBXP8rHcXx 8uiIiTR3QrhcH1nnJI/Cwz51WglVQk4cxbfPugUoifxTS2xO+lQkg/4aPghlVYwoqFiI hlLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=gDpMJdzc; 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 m124-v6si6596125pfm.303.2018.09.06.16.00.03; Thu, 06 Sep 2018 16:00:18 -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=gDpMJdzc; 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 S1729727AbeIGAGG (ORCPT + 99 others); Thu, 6 Sep 2018 20:06:06 -0400 Received: from merlin.infradead.org ([205.233.59.134]:48606 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbeIGAGF (ORCPT ); Thu, 6 Sep 2018 20:06:05 -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=zt5lShDTuY1ZzO+3P83YEWISa3s6DGfkvvVHNsgF6p4=; b=gDpMJdzcePMVY7vNLpRIuFaGe zIXLOHxY4zr3I2RU8ZGNt/vS+WxCKbIkTrDTlxm7EGOm4A/nUMCb5kWDDbhaSHK+chQ7ODnyt0C5g 6SYOQQZjZPUR3o+qQ3QEI0/aN3OjLOHdPf9Jt2jF7syXLxtXCoJPh82u9c1Fs/4RJX2c2lsdoThdi 5Pj9p8vxx0zkQhznBLHEfWO3vEDBJxgZz8btTFHr1WehpPVEAmktlDgbHbIU1jjHywXgv5kPE9P+i Yb0Dr4NS1zAhw7eK+hH/1mlAyfR23FXhatQVNGjCSlzaX2vMRucdqZWp1Hqxg8mKE1vB0CzNFVfR0 rUPdzmHNg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fxzxc-0004b8-A6; Thu, 06 Sep 2018 19:29:01 +0000 Received: by worktop (Postfix, from userid 1000) id BA7D66E0AA9; Thu, 6 Sep 2018 21:28:52 +0200 (CEST) Date: Thu, 6 Sep 2018 21:28:52 +0200 From: Peter Zijlstra To: Dave Hansen Cc: Nadav Amit , Thomas Gleixner , linux-kernel@vger.kernel.org, Ingo Molnar , x86@kernel.org, Dave Hansen , Nadav Amit , Andi Kleen , Josh Poimboeuf , Michal Hocko , Vlastimil Babka , Sean Christopherson , Andy Lutomirski Subject: Re: [PATCH] x86: use WRITE_ONCE() when setting PTEs Message-ID: <20180906192852.GC4816@worktop.programming.kicks-ass.net> References: <20180902181451.80520-1-namit@vmware.com> <8aef58c7-c27c-5df8-69b3-b188dd5f64e8@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8aef58c7-c27c-5df8-69b3-b188dd5f64e8@intel.com> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 06, 2018 at 10:21:38AM -0700, Dave Hansen wrote: > There's probably a massive number of things that would break if we > assumed sane 64-bit writes can be observed piecemeal. Do assume, it has been observed. WRITE_ONCE()/READ_ONCE() are _required_ if you cannot have load/store tearing.