Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp259664pxk; Thu, 1 Oct 2020 01:23:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8AEdnbQHqhFijUDvb/V2yhV2g6CRVFuZ8DSGWTgckfsmqnmP1Lpus6ZObXBwmXbHWKqXu X-Received: by 2002:aa7:cb83:: with SMTP id r3mr6835006edt.35.1601540639711; Thu, 01 Oct 2020 01:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601540639; cv=none; d=google.com; s=arc-20160816; b=P/TpY/70XYZCUh1U45CcZLZIQnNIfSubQ3++EBK8lLkBUtW6Nu/Jq27AAQlCqH/zaU Pgfn5cXypH5DvnI1Ad9A4/aJrAYqOmbWBIOCW0Wa/GjKPFm9hD+HeDFFExxbz45M4oYy 9ow59URKzARK0aIkn0tooQbl3jgEhoEYxiJNPLUwFCpxKZ5K6CVkkpT0clRuIuSrGVjk 4siGEsWYZjDV+bVVeVJopJrhKN8+YkLyp0B+t26kHXr4+s3ECMM86leCzVH1leOG5erl 3qhLUCyqobTpAsVFzF/yyDyD4n0eT57hKVwQypQFfBV5n5EEX1KRqMzTZ8/L7kLRK+cn mC/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4xFuVy4XXtBpTUWYQ2Ea29srN5GWUr2xjmeW/GpcGh0=; b=Ou4m7BBZbrDijTy8ULQYrCF9otd/tqrM97Evx3wSCyLAen90CjZljdPVZxtHbBBcuE aBS2/ZZyUVlJcygb6RR22gjCtia0oDDk4Hfr10DHaCLbyBmSmbrvPvUOo+EHewPaRvRE tAL+R2q2GnSpJhO+O4U5hA6PHMGiGjU+rq87Tvo7eSIFWoBBnG+v0NAjbx1KsVzNJW5z y+gJsRtSzZxeDeWbHBqwdU6QlWlzby0mNK39E/wkMd0dQVH+oO0Xu6kcxrLp5vyO9thh u2BhNMMMFe6qZiJAYw1lqvG+tr22ANpL0tieKps9gWB9pDtw4VlIlEKUE23URlD77KTa 5RSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Vj8BfNhk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m26si2960935edq.372.2020.10.01.01.23.36; Thu, 01 Oct 2020 01:23:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Vj8BfNhk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731134AbgJAIUb (ORCPT + 99 others); Thu, 1 Oct 2020 04:20:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725938AbgJAIUb (ORCPT ); Thu, 1 Oct 2020 04:20:31 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32005C0613D0; Thu, 1 Oct 2020 01:20:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=4xFuVy4XXtBpTUWYQ2Ea29srN5GWUr2xjmeW/GpcGh0=; b=Vj8BfNhkjnHd+qucd0Y3YZIbMr /8v6MUmL5V7lE1aYrJeIxmJdA8KP4SZcjrFn+6Fx4AKUcWJaBPTR/hT1jTSjS5RhCaz4ZHOAE0bfu HF91bOTY+bDxhOAZBt6koOVLvang6a7pZgwZa0Atj7aYvb0LKRP20hDesNO8bYgxzkDbD/9KkRED+ 1BhtIsyQ6dBpaoPGPLLGmiUK1JtXHVOCAMaqjDSIU93/Ncxuh6+Tkv8AHYSjBeBLFbuDjWqDjrtqN YsM1fahM/p3DMTrCofj4W0Zezk9RGtiPRm+JlcZAMmm3yBBb2/Z5lZ+BFeXD+J01ohCyHQ16JfHan tEm/mc9w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNtop-0001ov-0A; Thu, 01 Oct 2020 08:20:03 +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 B5BA93011F0; Thu, 1 Oct 2020 10:19:58 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 0E661205FF78B; Thu, 1 Oct 2020 10:19:58 +0200 (CEST) Date: Thu, 1 Oct 2020 10:19:58 +0200 From: Peter Zijlstra To: "Singh, Balbir" Cc: Thomas Gleixner , Lukas Bulwahn , Dave Hansen , Andy Lutomirski , Ingo Molnar , Borislav Petkov , "x86@kernel.org" , "H. Peter Anvin" , Nathan Chancellor , Nick Desaulniers , "linux-kernel@vger.kernel.org" , "clang-built-linux@googlegroups.com" , "kernel-janitors@vger.kernel.org" , "linux-safety@lists.elisa.tech" Subject: Re: [PATCH -next for tip:x86/pti] x86/tlb: drop unneeded local vars in enable_l1d_flush_for_task() Message-ID: <20201001081958.GO2628@hirez.programming.kicks-ass.net> References: <20200928124457.27289-1-lukas.bulwahn@gmail.com> <20200929071211.GJ2628@hirez.programming.kicks-ass.net> <20200929083709.GC2651@hirez.programming.kicks-ass.net> <87eemji887.fsf@nanos.tec.linutronix.de> <20200930170316.GB2628@hirez.programming.kicks-ass.net> <87blhni1pg.fsf@nanos.tec.linutronix.de> <20200930183552.GG2628@hirez.programming.kicks-ass.net> <87k0wbgd2s.fsf@nanos.tec.linutronix.de> <19f57cbe-ba33-17d5-440c-2765e670782f@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19f57cbe-ba33-17d5-440c-2765e670782f@amazon.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Your MUA is having trouble wrapping text at 78 chars. On Thu, Oct 01, 2020 at 09:49:30AM +1000, Singh, Balbir wrote: > So this is the change I am playing with, I don't like the idea of > killing the task, but it's better than silently not flushing, I guess > system administrators will learn with time not to correctly the > affinity of tasks flushing L1D. For the affinity bits, not being able > to change the affinity is better, but not being able to provide > feedback on as to why is a bit weird as well, but I wonder if there > are other cases where we might want to lock the affinity of a task for > it's lifetime. You can't really do that, hot-unplug can (and will) destroy any affinity setting, and if the task/admin wants to recover it needs to be able to re-set affinity after that.