Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp617273pxu; Sun, 22 Nov 2020 22:20:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvjOkHoZUJcgc+a2Gst97v6WQq0Qs3IAVvI8vSp/t3ecVZi0m+y0ltFygu6GZctlOlIr3T X-Received: by 2002:a17:906:33c4:: with SMTP id w4mr10967404eja.380.1606112413397; Sun, 22 Nov 2020 22:20:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606112413; cv=none; d=google.com; s=arc-20160816; b=xiZ12PaPzpoq+kGdaHhuJOHJI6/vpsKhtrWq4Sh+a+Vwye/xkiPo6TPfp21Ogz5kZZ E9/L+8X+0c0deaV96JSYrbRbK1yi+MeE9QoHh1bRPAbD9CxZREs34QjDHY7r/HdCRjD/ oAtqgHWp600rzrcq8uUTgFQoncKIDCv82qtyoTIGEjHeo0dy2hB8L05hUwon9VCXgdyr yPXaizvBSQMf+HKTrZLKVgTUah4qXIM9qwwnQ/Fe9s1/ONWPSYs5paKeCV5r54ZDRG6d IXTUmTlHFqqiKLWsihDZS2fbpZW0NaxHCe71L9GsOZKkpTFQA9nWDEBv9wuPY+QWcydY RLEg== 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=pGllVt0YAWrAraB8o/xsjy9zl5s/HURFJ1GGpWvqVCI=; b=qn8m7l8kUbFV94K1Qmz1gqRALexyL6/dXI2KK9YxtHeRmVGCd+C6RyiBnVOZCG6IMD j0gEHDdZngFGl/nbDlivw56Z5JnYK3OSBCbBj3ctqj1rf+42qf23yMv3URf1hxytKB6b TGrg3ChvJXq9i1KBbm4JKUqxFZPRFosCv6e4EutiUz+WS0tcJeb0MiNMncPqERbVh2Tx BYj89yC4uhlpJbEwMrmq+26yQhOLgZK6/0dZ9azGA5ThS1RAa5qfAG5EpDG5XhStbVYo k8GNaUZChbHrnz+hr23nx/b+RJFTs4RaA77EVdPsQNEYZBC2Pg6ZBL/S5EZwbbXfWz8+ 6d/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="H/oQgJaR"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w24si6009691ejy.97.2020.11.22.22.19.33; Sun, 22 Nov 2020 22:20:13 -0800 (PST) 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=@gmail.com header.s=20161025 header.b="H/oQgJaR"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726330AbgKWFS7 (ORCPT + 99 others); Mon, 23 Nov 2020 00:18:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725275AbgKWFS7 (ORCPT ); Mon, 23 Nov 2020 00:18:59 -0500 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6BD3C0613CF for ; Sun, 22 Nov 2020 21:18:58 -0800 (PST) Received: by mail-pf1-x429.google.com with SMTP id v12so13784684pfm.13 for ; Sun, 22 Nov 2020 21:18:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=pGllVt0YAWrAraB8o/xsjy9zl5s/HURFJ1GGpWvqVCI=; b=H/oQgJaRPzytu+MBgdw2N1oiKsUVlMAQEuLGRg9i6SMRnIhZ6qzxe983pgihLY+CsZ KDhviQ1Z3qoGei9PSflECA7dQo/4+hvkffHmgAUX7nVgpXrE1pY32UlFecFnSRhZNkuZ 8vOtmuXOPpJWQP0RpiIC0ldsWhaZ804W40C9imN0n5yksNCavpq0pxAqTVwvKCw+MACC TopDUs/MUQcwZmTrtHF8M2lx0hdfN6J1Ngqt9VcDL5ZfBgfPmeg5M2uoxjv+2b13yepW THgwcaauX8jv0rBTlDSeOAyQCQRKpXy1YNt5R8tjO22yfRRqUFobOP1jR8Z2UV84QowU i0Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=pGllVt0YAWrAraB8o/xsjy9zl5s/HURFJ1GGpWvqVCI=; b=nVBPUQ03WgkhgVtX3d4xhkF2JD2sZnaksY6Eht9ZrQ76epw70PqDc+skuuSTKm/QTX 2RZkjrIYzsx9qvdOivvwG8jnQnCboAK5eYxbMgDT0smmUJjdhkRVee8hL54V0S2D3hIt uoeJCf3pyX3txfilw8AdsOe9a2puM/9lnJ0ZqPqFIzu1nilFL/l+fJqhGp6KnEqwbvSS OAz9UdgKYknOJl3BIebVYASV5Wbp3vzpkv2EZAYwwFrRc5ZcEIC7MJnrI0GFYckcjv8B 8QHnR1cvV10HuEpzPQHX16M0ZCeSUop0Ep8areP/Knh+dFKvfZLp3OmJ4f7/HW3oVo4s 4vnw== X-Gm-Message-State: AOAM5333xqLhMCQuSytptzPaMOhDO3zAgovfjJueXJPILcWioOzLWs+3 q7K6NOJDJdaSAgWNJfFIxb0= X-Received: by 2002:a17:90a:cb0c:: with SMTP id z12mr8812952pjt.60.1606108738106; Sun, 22 Nov 2020 21:18:58 -0800 (PST) Received: from localhost (61-68-227-232.tpgi.com.au. [61.68.227.232]) by smtp.gmail.com with ESMTPSA id e14sm9298893pga.61.2020.11.22.21.18.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Nov 2020 21:18:56 -0800 (PST) Date: Mon, 23 Nov 2020 16:18:53 +1100 From: Balbir Singh To: "Joel Fernandes (Google)" Cc: Nishanth Aravamudan , Julien Desfossez , Peter Zijlstra , Tim Chen , Vineeth Pillai , Aaron Lu , Aubrey Li , tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org, torvalds@linux-foundation.org, fweisbec@gmail.com, keescook@chromium.org, kerrnel@google.com, Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini , vineeth@bitbyteword.org, Chen Yu , Christian Brauner , Agata Gruza , Antonio Gomez Iglesias , graf@amazon.com, konrad.wilk@oracle.com, dfaggioli@suse.com, pjt@google.com, rostedt@goodmis.org, derkling@google.com, benbjiang@tencent.com, Alexandre Chartre , James.Bottomley@hansenpartnership.com, OWeisse@umich.edu, Dhaval Giani , Junaid Shahid , jsbarnes@google.com, chris.hyser@oracle.com, Ben Segall , Josh Don , Hao Luo , Tom Lendacky , Aubrey Li , "Paul E. McKenney" , Tim Chen Subject: Re: [PATCH -tip 17/32] arch/x86: Add a new TIF flag for untrusted tasks Message-ID: <20201123051853.GH110669@balbir-desktop> References: <20201117232003.3580179-1-joel@joelfernandes.org> <20201117232003.3580179-18-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201117232003.3580179-18-joel@joelfernandes.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 17, 2020 at 06:19:47PM -0500, Joel Fernandes (Google) wrote: > Add a new TIF flag to indicate whether the kernel needs to be careful > and take additional steps to mitigate micro-architectural issues during > entry into user or guest mode. > > This new flag will be used by the series to determine if waiting is > needed or not, during exit to user or guest mode. > > Tested-by: Julien Desfossez > Reviewed-by: Aubrey Li > Signed-off-by: Joel Fernandes (Google) > --- Acked-by: Balbir Singh