Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4421418ioa; Wed, 27 Apr 2022 03:35:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZGrmSxlWq80CSIFgiUp06WtKKYIWmEmDdTeLqW9uqFXxN4HUlCMm3TEl0odYHUJJJ5TpN X-Received: by 2002:a63:5b14:0:b0:39c:d7d5:722e with SMTP id p20-20020a635b14000000b0039cd7d5722emr23313625pgb.478.1651055744911; Wed, 27 Apr 2022 03:35:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651055744; cv=none; d=google.com; s=arc-20160816; b=f04t2LCykFJ9YhBaUIJBC/KOvLiUd2X4/2JJssScKdekhZY5W5N/eNy7sceRbJDNjj alH89qSO1H9q3VOEANYDQa5DsAT16VaChuTniei09vB4xICwzcQ+2FceuOGWAdMuBhY2 8buSnGOG2TxFwFEg4tRaJisq5MjK03dgd1uLCR8lEpZ5StVAeiWh/TnVqpCFkrJXSfbT RuYrnkww0k2sYCeI0F93FdePZCmFyp+5l1ytXHAUSnCOqYwTwtN6UL5q7oSVIQCF71Cw 3Xgd2dfrfayKX5nc25N7pAwFWkd5AGnvGlJ9VYfxVaD3tOJdctGq1ywNIGlczmw1f5/O DI6A== 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=iieCc4+2+t84xbIfqg/Vt5XzM+5n2OlCTNJq4zoXcc8=; b=XTyoNsWqVEfBphqAvLv6u/40mnNKulFtGih1Ru+7TzdlMIV3TSSH9yC+OgyV7/q1mL qBDbO9jht1fa1iq7FcN0685oIDavWIIkUhw5z2PJL1ZNWC0d3R2F1ASdTT//QnMPrz4i tKU1AxzzF3uUSFuqsA5zARnPB2wV2HlVKBMQH8bIbfX8j0Mc/CCv9qQncce9gIRI3lJa dstxFFMih0IwTTMiu3hYibhYhXLIkr50xkYG2f5La9XHXyQSYJOgLt8I1qpGwY6IeD9K hQjkb/ilpWMfKxSP1eDlkwARg/C6/3i/vkAi2yVoXfy2NMccSLXpi9Fg0sU5nOfxQhqf eeoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0pIffffN; 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:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q11-20020a65494b000000b003ab28d0f497si1124327pgs.702.2022.04.27.03.35.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:35:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0pIffffN; 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F0FB23CAAF6; Wed, 27 Apr 2022 02:48:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358654AbiD0HO5 (ORCPT + 99 others); Wed, 27 Apr 2022 03:14:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358644AbiD0HOx (ORCPT ); Wed, 27 Apr 2022 03:14:53 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FECF3BBE1 for ; Wed, 27 Apr 2022 00:11:43 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1651043502; 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=iieCc4+2+t84xbIfqg/Vt5XzM+5n2OlCTNJq4zoXcc8=; b=0pIffffN2I5m/8N9LfexvtHEo4q6IDwiY5HkK9UxLZpmPmffWzXLaRo8cwr/oRjCoFehod R2+ZNXjudo67tGth6QarlotZttilHguSsMgkiuOoQ+Lmr73bU6n4qQVfS+6at57cpByvIO J1j8i/H755GlqB8L3KHnPWVFVvdbtqEI9bfT6UYZj3MYS2gFTqiRLX484bhEjTLJoFkhWe Ob/b9TSuv9B0nQsjlPjwpn/46Ox0SZLTSrw+iMtAcJTWF+ak5oKfCAVL/yI8x9pYQY+tcd G+uZe4+Ju0DaDr146/H+LxiHPsp2oVFF+OyHdSC/cSN29Fd9yrRY0yuUbombNg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1651043502; 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=iieCc4+2+t84xbIfqg/Vt5XzM+5n2OlCTNJq4zoXcc8=; b=d9k/+ElCCIWTJrGqz1Sn+P8kW59jlkDMd4IcgOaXa1aBWqq3gCEXd3hF74hDrTWgm2Cl4Q L9lFCH3ARO8BOHAg== To: Marcelo Tosatti , linux-kernel@vger.kernel.org Cc: Nitesh Lal , Nicolas Saenz Julienne , Frederic Weisbecker , Christoph Lameter , Juri Lelli , Peter Zijlstra , Alex Belits , Peter Xu , Daniel Bristot de Oliveira , Oscar Shiang , Marcelo Tosatti Subject: Re: [patch v12 09/13] task isolation: add preempt notifier to sync per-CPU vmstat dirty info to thread info In-Reply-To: <20220315153314.130167792@fedora.localdomain> References: <20220315153132.717153751@fedora.localdomain> <20220315153314.130167792@fedora.localdomain> Date: Wed, 27 Apr 2022 09:11:41 +0200 Message-ID: <878rrryp8y.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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, Mar 15 2022 at 12:31, Marcelo Tosatti wrote: > If a thread has task isolation activated, is preempted by thread B, > which marks vmstat information dirty, and is preempted back in, > one might return to userspace with vmstat dirty information on the > CPU in question. > > To address this problem, add a preempt notifier that transfers vmstat dirty > information to TIF_TASK_ISOL thread flag. How does this compile with CONFIG_KVM=n? Thanks, tglx