From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0CECC433F5 for ; Wed, 27 Apr 2022 07:11:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358656AbiD0HO6 (ORCPT ); Wed, 27 Apr 2022 03:14:58 -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 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