Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2178683pxb; Fri, 25 Mar 2022 12:29:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrEmr2QSuugm9VqiLlPkBr4+2/TJyAiMT32LvWUAWrzy03EJJerjifl7lSvU+3hTXn9+i5 X-Received: by 2002:a17:903:40c4:b0:154:c9ef:609f with SMTP id t4-20020a17090340c400b00154c9ef609fmr10586685pld.30.1648236598215; Fri, 25 Mar 2022 12:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648236598; cv=none; d=google.com; s=arc-20160816; b=m8dgEs4xgN9CtEjnGlhhEmsW9rclc1cZoh4NILIV0COgDwOdJLIw47Ittz0vgZ9kvm TNi3++ClUYozBAcLsM2Hyv7Ud1Ka2Oz1GA8ySURPaCYw8/AVtajEfq3Ouu4y5sXi2wVI vCW/7p3hkcIZRcmCxSh0KiPC5z29YNzx8dr3k3nux3jtVT0VYpFzZQUhZ6Y+0uh7XoK/ xo4G0QIFuaPMpZ6k2xWEsQTQMDgWwYgwXyrZA7g0aHIE4MwBJrPY182PYRqbLVxWfmjj 5wAcABXumOMBUwnuiWwGpL/rwacqdeXfLzDnO/OHwC6o9SIL4FK+uROLsmIKhVjwf9SW AWEg== 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=6Op/HW7FahWIa5b2pzltH3d7JbhxTR87IMPNy0kIjzw=; b=K3d1NHpBv1I4vTubx8YZCAdYs8ETZ9Mww2+VVHQmuZntxZ+4NDr7woiBY1DsErERzy BA/kPYfAXEyFBhpjC9KfmWKtAVbiQ8LvaH/KS7zF6ApzCqLNzCTnfN7uGM4JQfUmT852 ODbGKpk4OjN6XK9VumgLVIfl/65mUm+ty9AvCO259eQ9VI97pIoegNmkC/Qp49Z3L7Qz Uyssx1vmi5T/TilSZIiySkgPD0JrgvhVlqKUwG3iNTYbsYYqgtcyVSldhfvquqSpI3Nu +AJIOV1l4oJpOVdcJulodWiik7wpFDatsOG2DMQbYm1nM0NI2LyaUYrDeMngROViqz9e DODQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=QDoM+9po; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b9-20020a630c09000000b00381f73774fasi3388805pgl.355.2022.03.25.12.29.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:29:58 -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=@infradead.org header.s=casper.20170209 header.b=QDoM+9po; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 44C182D88B9; Fri, 25 Mar 2022 11:42:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231975AbiCWVIk (ORCPT + 99 others); Wed, 23 Mar 2022 17:08:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240876AbiCWVIh (ORCPT ); Wed, 23 Mar 2022 17:08:37 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D32958CCCE; Wed, 23 Mar 2022 14:07:07 -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=6Op/HW7FahWIa5b2pzltH3d7JbhxTR87IMPNy0kIjzw=; b=QDoM+9poGmPAZ1FaZX88O+1PVi zk+uv36rDHRvGx99WvtWvIBechJyI8ZNdBDD7xPlmFqcBH/VYHnZC6TGxf5aSrgaLpCqybWN6TUcX C2mkKTbTR8gYTd/r+WOzP2ftxi7ClKObbdj4Bk8ySpHdxUkT6QrYSDqLYw0wSwxRhR7C+ck1/5puf 9hnONzfGJrVDtIBthpBBJm9gzVqvZZx2C4Z+8IHpHJ39giWaPh8CEoruzoLddOWdEqrch7Klo9n7u HqQPRMQEtrnlWfmalFlVIOD3mgMJXKuQUvT5H0bIsWGcxlvbfRUekTO5IeECBZc+f86+iprJ5Ux6u ip2svXVw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nX8C4-00CqUV-06; Wed, 23 Mar 2022 21:07:00 +0000 Date: Wed, 23 Mar 2022 21:06:59 +0000 From: Matthew Wilcox To: Junaid Shahid Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, pbonzini@redhat.com, jmattson@google.com, pjt@google.com, oweisse@google.com, alexandre.chartre@oracle.com, rppt@linux.ibm.com, dave.hansen@linux.intel.com, peterz@infradead.org, tglx@linutronix.de, luto@kernel.org, linux-mm@kvack.org Subject: Re: [RFC PATCH 10/47] mm: asi: Support for global non-sensitive direct map allocations Message-ID: References: <20220223052223.1202152-1-junaids@google.com> <20220223052223.1202152-11-junaids@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220223052223.1202152-11-junaids@google.com> 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,T_SCC_BODY_TEXT_LINE 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, Feb 22, 2022 at 09:21:46PM -0800, Junaid Shahid wrote: > standard ASI instances. A new page flag is also added so that when > these pages are freed, they can also be unmapped from the ASI page > tables. It's cute how you just throw this in as an aside. Page flags are in high demand and just adding them is not to be done lightly. Is there any other way of accomplishing what you want? > @@ -542,6 +545,12 @@ TESTCLEARFLAG(Young, young, PF_ANY) > PAGEFLAG(Idle, idle, PF_ANY) > #endif > > +#ifdef CONFIG_ADDRESS_SPACE_ISOLATION > +__PAGEFLAG(GlobalNonSensitive, global_nonsensitive, PF_ANY); Why is PF_ANY appropriate?