Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4777594pxj; Tue, 22 Jun 2021 07:51:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUA9l6D4d8kt41/QEFcXERZ4711PWANbBx5/lyJQzxAIqMulnoDN9p1Li8fuK7ucX2umI+ X-Received: by 2002:a17:906:2e81:: with SMTP id o1mr4435020eji.446.1624373481212; Tue, 22 Jun 2021 07:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624373481; cv=none; d=google.com; s=arc-20160816; b=x7E2yK6OVFjaer7OPIJSgt56YcEpC2GmX4iXXXPGpFYpX0oTv4VLZ6SkSql3hv6cq4 Sj5jtRe0cQNkXrRYSAZAv7/xXVaKpm4vPjDJTPMxyquaMKAEjxLy4d8DzSGN+bpQF/4B nJCGE9TPgn/TBB/onz6Len0OVoOWqLLsXrDzOziSnId0nNvf4B8zfgFjb5KMAIOfmTxA 3FBJOlMq+/P28Jff8oIgjItWgZqEMtVIlhR7y4nnPZvAEczMcYAAZaY/jLXhVOSxi7Il uRi9fS7pOcvM099ZXHYqLK2Jf2RlO6i3BjGNhTXfku8YBwgEDtK1p6/UN6VUOb51UEgB /+sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=9HBLA9I4zIivUPyVBXvP5GzTKR+9wpIyt09BxGkPX28=; b=srs0ekIIfLSokdzVvtE+LT98camB5hbG8bBTW9TlzSjz3iLtBsfrh2zr2YXFvcsoth BKY+vfNBorD0gN6Q8iF/zuZ6kWaEk5hOQRwtFg54VCM/dgLl9bKJbsPYoJue22jXuzcv PJs7TrH2TNtpO4/D0zKYsNlqObKJfHreE2GSQQs3V/Tu/0UVBC+MIACJSZwMIiLoN2Ej QX2kqagIcYk4xYF9JKcAfriuyAX5y1FDsXoUG/QEfPifPiz896PusApcjtn80lqOvHAN 6vHMlqUV45+O5aRb67VihsjGjaMo06ntPjMBpvOz/sdh/Yp69VUFxUZ1+dfEk5ub+tH9 j1NQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p31si3373845edb.554.2021.06.22.07.50.57; Tue, 22 Jun 2021 07:51:21 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231994AbhFVOvC (ORCPT + 99 others); Tue, 22 Jun 2021 10:51:02 -0400 Received: from 8bytes.org ([81.169.241.247]:49960 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230185AbhFVOvA (ORCPT ); Tue, 22 Jun 2021 10:51:00 -0400 Received: from cap.home.8bytes.org (p4ff2ba7c.dip0.t-ipconnect.de [79.242.186.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by theia.8bytes.org (Postfix) with ESMTPSA id 9AE0F260; Tue, 22 Jun 2021 16:48:41 +0200 (CEST) From: Joerg Roedel To: x86@kernel.org Cc: Joerg Roedel , 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: [PATCH 1/3] x86/sev: Add Comments to existing GHCB MSR protocol defines Date: Tue, 22 Jun 2021 16:48:23 +0200 Message-Id: <20210622144825.27588-2-joro@8bytes.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210622144825.27588-1-joro@8bytes.org> References: <20210622144825.27588-1-joro@8bytes.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joerg Roedel Add comments to the defines for SEV Info and CPUID MSR protocol defines to document to which protocol part they belong. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/sev-common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/sev-common.h b/arch/x86/include/asm/sev-common.h index 629c3df243f0..1cc9e7dd8107 100644 --- a/arch/x86/include/asm/sev-common.h +++ b/arch/x86/include/asm/sev-common.h @@ -11,6 +11,7 @@ #define GHCB_MSR_INFO_POS 0 #define GHCB_MSR_INFO_MASK (BIT_ULL(12) - 1) +/* SEV Information Request/Response */ #define GHCB_MSR_SEV_INFO_RESP 0x001 #define GHCB_MSR_SEV_INFO_REQ 0x002 #define GHCB_MSR_VER_MAX_POS 48 @@ -28,6 +29,7 @@ #define GHCB_MSR_PROTO_MAX(v) (((v) >> GHCB_MSR_VER_MAX_POS) & GHCB_MSR_VER_MAX_MASK) #define GHCB_MSR_PROTO_MIN(v) (((v) >> GHCB_MSR_VER_MIN_POS) & GHCB_MSR_VER_MIN_MASK) +/* CPUID Request/Response */ #define GHCB_MSR_CPUID_REQ 0x004 #define GHCB_MSR_CPUID_RESP 0x005 #define GHCB_MSR_CPUID_FUNC_POS 32 -- 2.31.1