Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3571755pxt; Tue, 10 Aug 2021 06:39:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDiGSIKMeTSDdv8kDPNaVd/yZgTmmRJ0sgt4XxyEAQxvL1gLUHA8JFS06eZsP67Ov4sLsO X-Received: by 2002:a05:6638:164c:: with SMTP id a12mr23431268jat.49.1628602799607; Tue, 10 Aug 2021 06:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628602799; cv=none; d=google.com; s=arc-20160816; b=QhcKRkGmwJdXn6VIfCYnnkBE9pFq4rUq028gfBu/J8nYjBM6ye5/A1diTuSlW6NrXn f8uAeJBo5f7pHWyLDRCTclKomWA/8tBu6AHUkhGzhV5pWBE1dogEjCqud8Ug33lxahhH 3t5GphUF6IuUMldF9bxF+kGyNt/LwBr8NhniC7FpQN+hJbbRFtsgDg4vYE9tqs1KC+LK 7NYHWf8Ub6wb1lwLSJ+P3pxMfgVvjr6UJPPtOVxmhtOLWuhnEJR0phQaG9pDBYzQmQ0i aFo2yS/CatgEa8xAeCBoYdWDXHWhbJ3IL/4P/e2MD7hv2qi8BuyVTyPLyz1XuBxFjL3s yh7Q== 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=6S+ETniR7WhqqlO2dSqQJM2eqSUaUqBNPhhFnNKJ9cU=; b=Z4FburVlYMR4HKVqCgdZT6U7FIXMIj+drJPnNQ+NBBsIdQQCNClRqdHl4unfg4CYnw IfUrFciXnE7LPVftbMnYCL9Y4NQFxhYPqbCTMmdxEMXZ/P3uaHa2TqzTtTvl1bR+UsWs Dwv80z0Oxkjc6wWnzEbIxfuj/pxduij3Amcwn/4hW179AhBIPC3/Yax+Cbfb7tiBsuvm tadu8+btrqK8Wtqe0kipk3gT0Re+4uS121KfJoBq/WfJnMSBEv+H3NU3FQVDdYqizdYw obDTeFIW8ZwLmxkqHtU6+Rfy1t8rVTHglVY2185mrSHAgkR3o2vuaVfDKSDOGja9CVAk a/Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=dFA4QAN1; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 p23si11317271jal.44.2021.08.10.06.39.47; Tue, 10 Aug 2021 06:39:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=dFA4QAN1; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 S237665AbhHJLYz (ORCPT + 99 others); Tue, 10 Aug 2021 07:24:55 -0400 Received: from mail.skyhub.de ([5.9.137.197]:43204 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229967AbhHJLYy (ORCPT ); Tue, 10 Aug 2021 07:24:54 -0400 Received: from zn.tnic (p200300ec2f0d6500ceb5d19a4916b1c0.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:6500:ceb5:d19a:4916:b1c0]) (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 9716D1EC0345; Tue, 10 Aug 2021 13:24:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1628594662; 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=6S+ETniR7WhqqlO2dSqQJM2eqSUaUqBNPhhFnNKJ9cU=; b=dFA4QAN1+pvTGtiXZZkPLc/N+UbZ8l9GSpS+VKA6mjulGQJwNAT6u/fAFFB/sOH7It96ik uTbTx3CIBStUSXy0J8iJjFs7wlCyH/RcNhXfcaD/Jjx8Ri8OUH1RlBOLv2pilm5/kpzu7X /vUxoD3TXAgx8B/iAQHICkq8PvYBdN4= Date: Tue, 10 Aug 2021 13:25:07 +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, linux-crypto@vger.kernel.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 , tony.luck@intel.com, npmccallum@redhat.com, brijesh.ksingh@gmail.com Subject: Re: [PATCH Part1 RFC v4 04/36] x86/mm: Add sev_feature_enabled() helper Message-ID: References: <20210707181506.30489-1-brijesh.singh@amd.com> <20210707181506.30489-5-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210707181506.30489-5-brijesh.singh@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Jul 07, 2021 at 01:14:34PM -0500, Brijesh Singh wrote: > The sev_feature_enabled() helper can be used by the guest to query whether > the SNP - Secure Nested Paging feature is active. > > Signed-off-by: Brijesh Singh > --- > arch/x86/include/asm/mem_encrypt.h | 8 ++++++++ > arch/x86/include/asm/msr-index.h | 2 ++ > arch/x86/mm/mem_encrypt.c | 14 ++++++++++++++ > 3 files changed, 24 insertions(+) This will get replaced by this I presume: https://lkml.kernel.org/r/cover.1627424773.git.thomas.lendacky@amd.com -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette