Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp529861pxb; Tue, 19 Oct 2021 07:51:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzf1llE990dJ0i1JvRAcFy9CrDjfPaYV5+pXpgXbP1cvV6Rb3WvG9zHP9N0uwHqE5ao4p46 X-Received: by 2002:a05:6402:2808:: with SMTP id h8mr54822152ede.394.1634655089707; Tue, 19 Oct 2021 07:51:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634655089; cv=none; d=google.com; s=arc-20160816; b=ANUJ/gIa5CBefKKd4d4954vG9ooL8F5l0ULrLmNQ2Lkb83mahWUZafMK3+8FwEZtAD d/C3gaEA/MXUUVveo7mSNmI2XXvsCpPjlzpjP3igJuOgLaRCIWRqqlWSJcDQoSknjI17 ezpVDjKYKDXFkgguvop+bOhKAwDNHq19NADj6bwJ8KrTbxOZ3ZudbqDrFmfY02ChE75o ty86yrygFhuwH+OWVG3SCqA0O7aZGXLkkRbZ/EUYQVm0CEVLxZZcZkSvQTT4AFA33tiZ oEGLD0jCDpLLy29Gy5rBhBbK0+NjEsQTG+DO68VYA7UfgP/RrAihXYgrh3c33JvOwjPK KCwg== 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=0Z2IasPLEIyQ/8OC+77D3ZZ0oqt1dIqGErINkiovftc=; b=Tl9MYLttkFTcEmpvnSvHsSwQOS658NidzeXR6PVf9OMlltNHcAzg+4chCoX51NJ6eh z7A1bl4j209lOvL4rw6xbGRoVKd6R00vBtRsGYbHK0WYIna7hR/V7FPj7CtrEN8uUZGj 4HW4qFanx7dmhQcpIeBPa/2tLv1DeRELpKx/tmEybnMXps+mA5mc9lNTYb3Q7CD1BRKh aDjBfaP/nCSusouLi+/pdMnGKWFbXbIQTMeo60LyWMHAy8NTj1rpXsgJnMoeJbia9Nwu P6kH/G+ORg+SEeH+h751MNAAHhlaKipKoJLirrYA+4x5B5G0hN4ukBpKlYmeONuots0z Nuhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=MrvyHJ99; 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 f4si24387733edr.20.2021.10.19.07.51.05; Tue, 19 Oct 2021 07:51:29 -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=MrvyHJ99; 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 S232420AbhJSOt6 (ORCPT + 99 others); Tue, 19 Oct 2021 10:49:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230464AbhJSOtq (ORCPT ); Tue, 19 Oct 2021 10:49:46 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54046C061776; Tue, 19 Oct 2021 07:47:28 -0700 (PDT) Received: from zn.tnic (p200300ec2f12f600999171228a6b1e18.dip0.t-ipconnect.de [IPv6:2003:ec:2f12:f600:9991:7122:8a6b:1e18]) (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 52E231EC01A8; Tue, 19 Oct 2021 16:47:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1634654846; 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=0Z2IasPLEIyQ/8OC+77D3ZZ0oqt1dIqGErINkiovftc=; b=MrvyHJ9936A+4bokpf5WDZ6JTZ0zKr3ZgLpA+nLq8oid42c2itGnE04Tj5VWA6DQyhfFis LRzsM1hx5ve/IQZDBACckqZiq3/Q326OaxEYxtRxenN55L8R2aFhgsHrHgzH5cDgumdJJ5 5RIvmd1tiz5D1ndwHr/lGaeH5DnvexU= Date: Tue, 19 Oct 2021 16:47:25 +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 , 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 , "Dr . David Alan Gilbert" , tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com Subject: Re: [PATCH v6 09/42] x86/sev: Check SEV-SNP features support Message-ID: References: <20211008180453.462291-1-brijesh.singh@amd.com> <20211008180453.462291-10-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211008180453.462291-10-brijesh.singh@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 08, 2021 at 01:04:20PM -0500, Brijesh Singh wrote: > +static bool do_early_sev_setup(void) > { > if (!sev_es_negotiate_protocol()) > sev_es_terminate(SEV_TERM_SET_GEN, GHCB_SEV_ES_PROT_UNSUPPORTED); > > + /* > + * If SEV-SNP is enabled, then check if the hypervisor supports the SEV-SNP > + * features. This and the other comment should say something along the lines of: "SNP is supported in v2 of the GHCB spec which mandates support for HV features." because it wasn't clear to me why we're enforcing that support here. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette