Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1155618iob; Wed, 4 May 2022 16:08:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww8A+pOcHgaK0bYbrvazIfur+w4o7jxB6sPa4xuJ9YIgwngpBnw/auW9oNNg56V2v1FTBw X-Received: by 2002:a17:907:8a21:b0:6f4:d2e5:4d17 with SMTP id sc33-20020a1709078a2100b006f4d2e54d17mr3997278ejc.196.1651705684238; Wed, 04 May 2022 16:08:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651705684; cv=none; d=google.com; s=arc-20160816; b=JZ8dvCyA2Tm+tbH+28TAyfEstoPW0yIzXe6rjWHwYHJuv/x+YBjL6/YrTOIo61Y1Np eMszjlA0hcZw7oU88Swz0ZtQRlfjP2ZwqgAVrWpN1WZWHcF1jpd9untfYQljLIGiErCF KmqTQCMxbCgtGKhJywSCtJkzHMAiYJkuHS29a+Jwhviyo02VpKF14RVaw5y7UZnznXGI OnFxghwPP/h2nXK0bnnFSfccpvVoZyu7gC1AA4hesd01E0MHbUHlJXImO/ZcWRjvgMO9 bT2UFBWHLpVjgEMDX5RZGfoszffLrzoeOq/GbRXjjx/gpktirMqCnUUsTttUOfr4lVHf fDyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=qnTydrMS1ksmehjR1Sl6xajLYwWe+zoyDgYNW/GZj1w=; b=U4XoH+P56slLyq8KEi74vOuRQ13ocWy+nu9Q/8zBfxqY+ttJww8TcgynG4kuoTGPir ChweAspevziE2SZ2KIAHTbm/2EJ4S2uJJ1+dSZvtjjvApmzISLR+YYM4D+avaCoqjQYO S5qmtHbhy2SfYKDo0co3BT5Fuw0/jxJmZCB92j5Y32Rj2sA7E7OtP1/QWGRUghgXs5qj mRevFReQkoDP/dzNCZBbDEwJV4TP/eA6O23eH+PpQpNmWKwv+2X2ciX9eFcgjM786uq6 ilUIFlTbRxedDX0T3xQjiE8ODC9uIYi3tdTXPrk8Y8v41yk1iVYGi90yJbBrMHZYEPHo HQ1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="RO2BH/Tc"; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g25-20020aa7c599000000b0041cdbb0e667si16605031edq.549.2022.05.04.16.07.41; Wed, 04 May 2022 16:08:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="RO2BH/Tc"; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350167AbiEDNH1 (ORCPT + 99 others); Wed, 4 May 2022 09:07:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237497AbiEDNH0 (ORCPT ); Wed, 4 May 2022 09:07:26 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 877E2377E0 for ; Wed, 4 May 2022 06:03:50 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1651669429; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qnTydrMS1ksmehjR1Sl6xajLYwWe+zoyDgYNW/GZj1w=; b=RO2BH/TcggPsRNijCcOP8zR+Lo8UVQQ0WcBGQQ/AxGOcA/VecEAn7o+osJsn81GlCUVOB4 b8W0jiLwk8gz2TW1ST2HNCfZ9cnHW/o7t9BiKRVbUDTmP2VONzBwTuxCe8hS0EPtmnpljB /BEQkR/pUkO8tEoEktLRKgbHv+aY+qdPFGu64mJwbLqiFKFA5OJV5S5K0eCO1gTDNv/+rh 2JLbGmvjfHY39k9xE19cA2WrCcC4QodI2NoXAhSnRvyAI3yULTj86MmNJMH4dMs70zMyRc Kxuq9678kGZncg0zbeyhWcWHSh7Jf+IlEATiA0UNV+jW4YSEE/0/jere4EMztQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1651669429; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qnTydrMS1ksmehjR1Sl6xajLYwWe+zoyDgYNW/GZj1w=; b=Eyd/snTxo2U0d7A7rEeZjUIVMAZ6f+1uWn05fdJ1zNJyUxFJyfUIRXpa6uolhIJsaU0SBF lxshDIpJBoLXkADQ== To: Marcelo Tosatti Cc: linux-kernel@vger.kernel.org, Nitesh Lal , Nicolas Saenz Julienne , Frederic Weisbecker , Christoph Lameter , Juri Lelli , Peter Zijlstra , Alex Belits , Peter Xu , Daniel Bristot de Oliveira , Oscar Shiang Subject: Re: [patch v12 13/13] task isolation: only TIF_TASK_ISOL if task isolation is enabled In-Reply-To: References: <20220315153132.717153751@fedora.localdomain> <20220315153314.333646565@fedora.localdomain> <87zgk7x93h.ffs@tglx> Date: Wed, 04 May 2022 15:03:48 +0200 Message-ID: <87k0b1jvpn.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 03 2022 at 16:12, Marcelo Tosatti wrote: > On Wed, Apr 27, 2022 at 09:45:54AM +0200, Thomas Gleixner wrote: > It seems to be inline with the remaining TIF_ bits: > > if (ti_work & _TIF_NOTIFY_RESUME) > tracehook_notify_resume(regs); > > + if (ti_work & _TIF_TASK_ISOL) > + task_isol_exit_to_user_mode(); > + > > > And there is even: I know that the bit is defined, but that does still not make an argument. > By looking at the code, we see the sites where this bit is set are: Again. I'm able to read the patches myself. > Would you prefer an explanation, in words, when these bits are set, when > they are cleared? No. The point is that contrary to TIF_NOTIFY_RESUME and other TIF bits, this is going to end up being sprinkled all over the place. With the current vmstat quiesce that's limited, but it's bound to increase and spread simply because the whole thing has no semantics and it's all headed to be adhoc cure for the isolation itch of the day. Thanks, tglx