Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp538778pxj; Thu, 3 Jun 2021 12:58:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzcEmUB5xzrU/3FPf1rLWxlRbNNZkO1Qp8mLuBN5alGR2pmyiCgWK4lxgS1MJ8Y+IfYmXG X-Received: by 2002:a17:907:92e:: with SMTP id au14mr903178ejc.194.1622750331939; Thu, 03 Jun 2021 12:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622750331; cv=none; d=google.com; s=arc-20160816; b=qlYxDZk4Ja5ftihVlemnfVGBNoTmu6NzIdo2bLzREYh3sUp0h4kUbn/Qy9mlKhdhJE JpRZeJB8SuXvvRJWUfp1fZHm+bi8S3OBfMmncnk47jYlaevhXkjCyIspPWKGgW/P+KeD hcXyjidzVW+7r9VjciEmy2SU603I0QOj80vT3tZ9c153HQef0OefmhiGDiozXKDn8uGb o5Q0TDf/YWQiNA0vUcaMsh0aIw4omjIUJhkd5Rl+bOb5Jf6EYqboOiBp4/Gh7jDE7mAn fp1o6EMi30c5E6fgIOOcXdPHk1KNoS94jPnCOKuYJ+RVoj2X3/lHy3849bJXpIRSyoW2 PtBw== 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=CsONDc5/hMgH+lPatsnuVGGoG9v+Dt4ffCqJHaqP7Dw=; b=hqbu9fUTeHHbmXAqFkNaEoHc58SyVbj8zbMOJPFWB5HEnNmOjvXodaxhySy9L/aC6/ BY/xFfvrLS4qAyYDwFY7EANm8CQsIrCy6NvUCCEl/3vGTAgsNOtSqkDGClrvRuog4Xzm wNIGQiUyjxlLrK0oykgzvVuv1yIn/BuIWIWBfmJXTjcUj5VHlrfdzarwNwErw0klOi2X k8DH0QkbwgBGKGak5GzfIdUhTdDE5Tmmpfo4nzgpw+hgT003kqsIvuqa+xZMrOMIpMSx e5kQACsnU5IowePtYx+cJN5emHsLh64nlWvMaTysW/7WubKDE5GsaD2fXgErJoxOghEH SKEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=PCsxWln+; 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 p26si3127180edx.56.2021.06.03.12.57.53; Thu, 03 Jun 2021 12:58:51 -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=PCsxWln+; 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 S229926AbhFCT7I (ORCPT + 99 others); Thu, 3 Jun 2021 15:59:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229925AbhFCT7H (ORCPT ); Thu, 3 Jun 2021 15:59:07 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B49D4C06174A; Thu, 3 Jun 2021 12:57:22 -0700 (PDT) Received: from zn.tnic (p200300ec2f13850043af4c4d530a3258.dip0.t-ipconnect.de [IPv6:2003:ec:2f13:8500:43af:4c4d:530a:3258]) (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 3D0071EC0246; Thu, 3 Jun 2021 21:57:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1622750241; 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=CsONDc5/hMgH+lPatsnuVGGoG9v+Dt4ffCqJHaqP7Dw=; b=PCsxWln+GSXdcrrOO6u7gyG5ZIMYDxTanA5BrUafnti30zPJ3l/VZM3cStmo9pm63XlOPN i0OuoEdNS63MBHcVvVLEGlwag2FJT9/goaw3F9mNNRb4rMA4lembyJSSyynfRpsVTfa5pe SyLuqtyEz5I8P/g3jyRufj8hoAiG288= Date: Thu, 3 Jun 2021 21:57:16 +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 , tony.luck@intel.com, npmccallum@redhat.com Subject: Re: [PATCH Part1 RFC v3 03/22] x86/sev: Save the negotiated GHCB version Message-ID: References: <20210602140416.23573-1-brijesh.singh@amd.com> <20210602140416.23573-4-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210602140416.23573-4-brijesh.singh@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Jun 02, 2021 at 09:03:57AM -0500, Brijesh Singh wrote: > +/* > + * Since feature negotiation related variables are set early in the boot > + * process they must reside in the .data section so as not to be zeroed > + * out when the .bss section is later cleared. > + */ From previous review: ... * * GHCB protocol version negotiated with the hypervisor. */ You need to document what this variable is used for so add a comment over it please. > +static u16 ghcb_version __section(".data"); > + -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette