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 X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08908C433E0 for ; Tue, 2 Feb 2021 13:17:40 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6789964ECF for ; Tue, 2 Feb 2021 13:17:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6789964ECF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id DA0B56B006C; Tue, 2 Feb 2021 08:17:38 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D77076B006E; Tue, 2 Feb 2021 08:17:38 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CB3866B0070; Tue, 2 Feb 2021 08:17:38 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0219.hostedemail.com [216.40.44.219]) by kanga.kvack.org (Postfix) with ESMTP id B51BB6B006C for ; Tue, 2 Feb 2021 08:17:38 -0500 (EST) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 702F3180AD815 for ; Tue, 2 Feb 2021 13:17:38 +0000 (UTC) X-FDA: 77773379796.20.worm12_1305726275cb Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id E1189180C07A3 for ; Tue, 2 Feb 2021 13:17:37 +0000 (UTC) X-HE-Tag: worm12_1305726275cb X-Filterd-Recvd-Size: 2491 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf23.hostedemail.com (Postfix) with ESMTP for ; Tue, 2 Feb 2021 13:17:37 +0000 (UTC) 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=JJEnqB8V2nSV3XW0pblMbAqSqBwG3r2feQJC+0ZLmWA=; b=Jms7rd6788Jxut28J+AVsTrjo/ qk21n+VPQr3+8buAcYgqw3avPeWgOvdghR9kGgA4iGSFClDDhIkVh0eggE+p7zxnr0BU/d0igpsyT ObWGhzx3qPlz8ekxHUXhauKt1SB95cj7RI5Fh5YsSsVQ38StHmgitxnkrW3zBato0baH8z5stTiSU 5aAIQ8KahvF4iOLq5fuZ+ypCEWgfuihgFtLe61v5J+NDieQuAeDdRFadvw0c8wdx+jLFuT906knBR xyZi1e000Cok0AR8Bk8L95E74KFw8tStv9YbDlCcXG6+JnacHt0vjewM8OYHWy0FLiox2bRXCjz1E oF5HlAww==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1l6vYV-00FEqN-Fg; Tue, 02 Feb 2021 13:17:20 +0000 Date: Tue, 2 Feb 2021 13:17:19 +0000 From: Matthew Wilcox To: David Rientjes Cc: Borislav Petkov , Andy Lutomirski , Sean Christopherson , Andrew Morton , "Kirill A. Shutemov" , Andi Kleen , Brijesh Singh , Tom Lendacky , Jon Grimm , Thomas Gleixner , Christoph Hellwig , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Joerg Roedel , x86@kernel.org, linux-mm@kvack.org Subject: Re: AMD SEV-SNP/Intel TDX: validation of memory pages Message-ID: <20210202131719.GV308988@casper.infradead.org> References: <7515a81a-19e-b063-2081-3f5e79f0f7a8@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7515a81a-19e-b063-2081-3f5e79f0f7a8@google.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Feb 01, 2021 at 05:51:09PM -0800, David Rientjes wrote: > - Handling lazy validation of guest memory through the core mm layer, > most likely involving a bit in struct page flags to track their status I'd like to not use a new bit. I think it can be adequately expressed as PageReserved, augmented with another bit (say, PG_uptodate) to indicate why it's reserved.