Received: by 10.223.164.202 with SMTP id h10csp113975wrb; Thu, 30 Nov 2017 07:43:11 -0800 (PST) X-Google-Smtp-Source: AGs4zMZe5H2ngSj7f2JQkG8gaCd0E5psZmCzJcDYXmJdFERCEYo6PBn1UxWN7vPfNgRSoHHAEGf0 X-Received: by 10.84.168.198 with SMTP id f64mr3100323plb.324.1512056591628; Thu, 30 Nov 2017 07:43:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512056591; cv=none; d=google.com; s=arc-20160816; b=JT6bMq8Je+REiVoPpjsCZDJecAdQZHt5jIj4DKxay1/ht6gNZI47YtKKmnzpbnoTBh qKpH1WZm3GDvulcpb4Z5ANmrfJOAWRfjZRNctgDwYW5qtEc6c6A59V0JGnaLk9R03sXd v/DIvUwPnnCiXyb3pSdCxgnkuzbAfEo1AxV0DbYJi5SZ5q9UNpb+VsTPmAKTU0Hw0FTB Q9pr2DKyAytE0z7/g+He64hPaEjVRfm4lWK6Qm78FrTamV/9gvoNfA2HYrRlTcgPGtEG JCj75/Adwlabv9+R2w+9f9L8rSTxTibAjL1woh8oSRTTRxcKCwmSkiSr8eDUXnCuc8J/ SFMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=rGnx6TldZ2VoKqRvZWJvtoZP6J5q+wGsnVTvLi7VHbs=; b=djNe6dshFkjkCA1+9uFyulMc2QbJQtIf0MZNP7Q+G7oqAaVvj5od+LXDrkRAwc78ne thPVgWlhJtfEFy9g1DIb9WANckkHJHnPznMTuKjW8033JAGqt9yCKYvZp9ShKp+I0Lva cq53YF9O/lpGvXwysVIAF91c4FjiwAPf7bUcDEnDlTxrrtMDdurgs94FCm3YlAl/enV/ 2dJOvxZ9+cQKnCLGRZw43iUIp/YHFFuTXEtOVm6umPcQxvRIbgWw1ffRfHkmbNWIj9VO aVIpoIUPf0DVKcm6y7n9NiPUJJoCLkDz0v1yv124kwnfz9bOyq8G7ah3ts061m93WELU KEDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=RGmfU/ti; 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 g9si3437677pfg.327.2017.11.30.07.42.56; Thu, 30 Nov 2017 07:43:11 -0800 (PST) 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=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=RGmfU/ti; 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 S1752203AbdK3Pmh (ORCPT + 99 others); Thu, 30 Nov 2017 10:42:37 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:38619 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750742AbdK3Pmg (ORCPT ); Thu, 30 Nov 2017 10:42:36 -0500 Received: by mail-it0-f68.google.com with SMTP id r6so8895937itr.3 for ; Thu, 30 Nov 2017 07:42:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=rGnx6TldZ2VoKqRvZWJvtoZP6J5q+wGsnVTvLi7VHbs=; b=RGmfU/tiVWmgde2srGmiSPdwrY0pB5WYHn0MjFEHqg8YqQp/60dnUzKe0f1eWAW+FK BjSPOr8ff4ql4yYaUM16XNIDwbTJMW7bqL/1K+R+zlgCfEM6mAjLEYe2FmgA0OkuIs4k pTCEMxkNBpBfNksPj7OVvhNRvrvrev7ifxhURWObS0IvSHnDgTn05fPJGDfO6oK9F8mi kLxyK0L/aNED2F0btZNTuiK+2ReirH5YeTbkgM0Uep3zSJqnmx6W0fNXt9x66OHaYi7B h57fjFI2AaunnUmimUL3EkfC7As4XxEkV38tHNve82HJ7aRhdZ4mmDplWq5Lm4cIuumQ bb5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=rGnx6TldZ2VoKqRvZWJvtoZP6J5q+wGsnVTvLi7VHbs=; b=F4Zx8N4CdLQ0K4MQinBB8xo9D2OnZhM+1b/n61l5ga2nANOQpSfxyYBvPD7TWncpik wLz+JqcicMeQseun2ZN3ujJdya+Fby5caGgjEDflv3PdG/93yab6kB0cLwM1WhvdVT3g wwn7hra79SZOaqYL3lpe1qV57gtlTlVa1rfI84JfRzsnfNhmNs7j99ciCjCDZiviLNKe D/Yz7mUrnV0KAq0q+fnuLmkGuqp/cUwyI7KimCsMVmwm5w472H5FgN07ZEoh+jE1LbXb 7NOGmD669VB/gXlDNABip7fX8bnw9rIKWc04UcTGspnzoG9jrrBt0xVHJH2lCiERJYaF gIOg== X-Gm-Message-State: AJaThX4EEuv/RkqbD1K1TVjMDw6UvQy+DYUESYuMJ892m1fkTsk8b4al aGC1MbIKbF0rX69E71mn1zoi5uUh3q/RvBRaBXbEvQ== X-Received: by 10.36.148.6 with SMTP id j6mr3803591ite.104.1512056555688; Thu, 30 Nov 2017 07:42:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.133.35 with HTTP; Thu, 30 Nov 2017 07:42:15 -0800 (PST) In-Reply-To: <20171130154053.6b7hs4epes55xv7a@hirez.programming.kicks-ass.net> References: <20171127104923.14378-1-mingo@kernel.org> <20171127104923.14378-16-mingo@kernel.org> <20171130154053.6b7hs4epes55xv7a@hirez.programming.kicks-ass.net> From: Andy Lutomirski Date: Thu, 30 Nov 2017 07:42:15 -0800 Message-ID: Subject: Re: [PATCH 15/24] x86/mm: Allow flushing for future ASID switches To: Peter Zijlstra Cc: Ingo Molnar , "linux-kernel@vger.kernel.org" , Dave Hansen , Thomas Gleixner , "H . Peter Anvin" , Borislav Petkov , Linus Torvalds Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 30, 2017 at 7:40 AM, Peter Zijlstra wrote: > On Mon, Nov 27, 2017 at 09:16:19PM -0800, Andy Lutomirski wrote: >> We've gotten away with having a single >> function for both this long because we've never had PCID on and >> nonglobal kernel mappings around. So we're busted starting with >> "x86/mm/kaiser: Disable global pages by default with KAISER", which >> means that we have a potential corruption issue affecting anyone who >> tries to bisect the series. >> >> Then we need to make the kernel variant do something sane (presumably >> just call __flush_tlb_all if we have PCID && !PGE). > > (We don't support PCID && !PGE) > > __flush_tlb_all() if PCID, because it needs to flush the thing from all > kernel ASIDs, which this patch -- however nasty -- achieves best. > > Brain fart there. What I meant was: the old code was wrong if PCID was on and the page being flushed wasn't GLOBAL. Which is what KAISER dies. From 1585506170241980831@xxx Thu Nov 30 15:41:53 +0000 2017 X-GM-THRID: 1585216393710549190 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread