Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1498955pxb; Fri, 27 Aug 2021 10:09:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxX9p6lC6PX8++hb4oh2SYKT3g+XUKNHeFbunmNC75QiU5JJWjW2xRxWsdlHu+1cob1x14p X-Received: by 2002:a92:c542:: with SMTP id a2mr6958064ilj.191.1630084184526; Fri, 27 Aug 2021 10:09:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630084184; cv=none; d=google.com; s=arc-20160816; b=VFaSVVKAROqXtfLhWKpkfFEF9d8BRbvmQfPHhpCIJF/spi3hMrSXv8FDED9vDJ4dMy gAgAc/ghvqkw8gNUtxlICr0WuyElQFa3Z/AuiAVI+Vsn5QLuPC8DxDO3LAsDrTtnX2ri MAn1cXNB5DdJ4GAks1rpzOwmAlDLyn61hSA3I9dI/PfAJIv3EZqMOqhkjQ2g8PYwp3CZ LwiVEDW5XgrnfhgPC+2rn3M0C77JsuhXX0lnQzeZdV/hU03jGswU40sZToIsV6pS7oAa yGVzPP1TBSujzHStgZwImd1jsguRRVr5vWCdlHHLiri4jwoKhRyg9ye0KxoSiWFyVUHm fTJw== 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=1IhDUATGjQR+rNHqh/+Uq/GmihBPipVlLtbpDqPMf0w=; b=jz+v/8V1O0fN6q5wal3LjJpKcCWLdD9J7W9aV94fcimI4HwSmyiW70Dao6TE+SL4P5 4zZ9yU6vu/xZ+tA0LySrP4PplU3pssi//0rG9KhZ8LpiEF+Nyr4RTaTqhUNoMY8kozs3 WMFLudjTtGZ5KGusAm53EMLbY0vj7kGx/9CTCy7dVDakNu8tIgm9Fgg8ASdY9n+WMYfX Kcdgz5H6Csmx6vZrpp6lwh5rAVpeE2nMkr8xIiAHHSsR6AxLl0XS09NrpYeg/j82hm/7 jholXVE1sx5iYqqRCeCahL1yn6qNh9MJtJpK6z6dSvcCbvfML8+ejq9TMqc/L/UH7wiY /kcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=NPnM1LkQ; 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=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l8si6047450ilt.110.2021.08.27.10.09.32; Fri, 27 Aug 2021 10:09:44 -0700 (PDT) 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=@alien8.de header.s=dkim header.b=NPnM1LkQ; 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=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234297AbhH0RJ3 (ORCPT + 99 others); Fri, 27 Aug 2021 13:09:29 -0400 Received: from mail.skyhub.de ([5.9.137.197]:36594 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230363AbhH0RJ2 (ORCPT ); Fri, 27 Aug 2021 13:09:28 -0400 Received: from zn.tnic (p200300ec2f111700cf40790d4c46ba75.dip0.t-ipconnect.de [IPv6:2003:ec:2f11:1700:cf40:790d:4c46:ba75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id A7EC41EC0537; Fri, 27 Aug 2021 19:08:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1630084113; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=1IhDUATGjQR+rNHqh/+Uq/GmihBPipVlLtbpDqPMf0w=; b=NPnM1LkQ8ko86Qej3bIemFX98Q1lQZUx7A3DpeUdcaNjipgIb92mLttY4rMYgE4bmZWZfp EiMriHFIUeXbOPgwR6orQhai2yMP6lSOy+CQQGsROXRT8YM26tqGPJ+IIStc9/VTPF8ZOC QBm3uvJVTIx5swQMGCESZ4jpK5qi78Q= Date: Fri, 27 Aug 2021 19:09:10 +0200 From: Borislav Petkov To: Brijesh Singh Cc: x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-coco@lists.linux.dev, linux-mm@kvack.org, Thomas Gleixner , Ingo Molnar , Joerg Roedel , Tom Lendacky , "H. Peter Anvin" , Ard Biesheuvel , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Andy Lutomirski , Dave Hansen , Sergio Lopez , Peter Gonda , Peter Zijlstra , Srinivas Pandruvada , David Rientjes , Dov Murik , Tobin Feldman-Fitzthum , Michael Roth , Vlastimil Babka , "Kirill A . Shutemov" , Andi Kleen , tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com Subject: Re: [PATCH Part1 v5 17/38] x86/mm: Add support to validate memory when changing C-bit Message-ID: References: <20210820151933.22401-1-brijesh.singh@amd.com> <20210820151933.22401-18-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210820151933.22401-18-brijesh.singh@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 20, 2021 at 10:19:12AM -0500, Brijesh Singh wrote: > diff --git a/arch/x86/include/asm/sev-common.h b/arch/x86/include/asm/sev-common.h > index 37aa77565726..3388db814fd0 100644 > --- a/arch/x86/include/asm/sev-common.h > +++ b/arch/x86/include/asm/sev-common.h > @@ -74,6 +74,8 @@ > enum psc_op { > SNP_PAGE_STATE_PRIVATE = 1, > SNP_PAGE_STATE_SHARED, > + SNP_PAGE_STATE_PSMASH, > + SNP_PAGE_STATE_UNSMASH, Those two are unused in this set, AFAICT. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette