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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 212D1C433FE for ; Wed, 3 Nov 2021 14:27:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 099E861050 for ; Wed, 3 Nov 2021 14:27:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232138AbhKCOaG (ORCPT ); Wed, 3 Nov 2021 10:30:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232163AbhKCOaE (ORCPT ); Wed, 3 Nov 2021 10:30:04 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59D2FC06120B; Wed, 3 Nov 2021 07:27:25 -0700 (PDT) Received: from zn.tnic (p200300ec2f13290006136262b125c835.dip0.t-ipconnect.de [IPv6:2003:ec:2f13:2900:613:6262:b125:c835]) (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 127091EC0567; Wed, 3 Nov 2021 15:27:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1635949644; 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=PN13d60ZQ5g2G8iEXh3tkIMCVCu0bXX1/VFUYwMyhZo=; b=hRLfXtHgTs4/Lm9rNp+SY306FCQskMF/7tpsnJV3kuA2NqDuTzGrs+Bjpdfm1FnKyEzrBI uuDrkCL5NNlFxWSJ0YptWv30kTilcRNvxBXYdwApFSD4DYkUsQyysd1uuiAl7uqSlEYbm+ 4WjnKmhIKmrbObBfRMq3Z6Hgu8bgyFI= Date: Wed, 3 Nov 2021 15:27:23 +0100 From: Borislav Petkov To: Joerg Roedel Cc: x86@kernel.org, Eric Biederman , kexec@lists.infradead.org, Joerg Roedel , hpa@zytor.com, Andy Lutomirski , Dave Hansen , Peter Zijlstra , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , David Rientjes , Cfir Cohen , Erdem Aktas , Masami Hiramatsu , Mike Stunes , Sean Christopherson , Martin Radev , Arvind Sankar , linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v2 03/12] x86/sev: Save and print negotiated GHCB protocol version Message-ID: References: <20210913155603.28383-1-joro@8bytes.org> <20210913155603.28383-4-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210913155603.28383-4-joro@8bytes.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 13, 2021 at 05:55:54PM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > Save the results of the GHCB protocol negotiation into a data structure > and print information about versions supported and used to the kernel > log. Which is useful for? > +/* > + * struct sev_ghcb_protocol_info - Used to return GHCB protocol > + * negotiation details. > + * > + * @hv_proto_min: Minimum GHCB protocol version supported by Hypervisor > + * @hv_proto_max: Maximum GHCB protocol version supported by Hypervisor > + * @vm_proto: Protocol version the VM (this kernel) will use > + */ > +struct sev_ghcb_protocol_info { Too long a name - ghcb_info is perfectly fine. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette