Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1465071pxb; Wed, 20 Oct 2021 05:47:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyrHujs7l8BN8YCiG1Kg0IIwlrvKInMuyNgPXrmzQwk2aEofVn1d8avbXNRiwSRwg1nl80 X-Received: by 2002:a17:90a:718b:: with SMTP id i11mr7384977pjk.22.1634734062365; Wed, 20 Oct 2021 05:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634734062; cv=none; d=google.com; s=arc-20160816; b=UVfW/fI7df+VMkEifuL5JJLPb0PdjQkty8Yr2l4XdznwJPoP0d0t7c5opgQFGXnRsg XSwMRE6fPkn1LxxHD75r+M9r4+O3o6JNHAPJexiLqy7l3BGwQIcpg6VxXOPYJsWinunP Bge7SoyamZmHfMYYc1hyzBrp0Q1TKwceo/FwhcQ6RMBmOP/ghSaF5T3RTh130WPqfapP YoqS50JjZ3DVqmlB0Re/cVqbmJn0UQ1JOTWjuLOwyBvX4+PWAM36MaEVONZkezu5RFeE bdFFQW+u04T0LZqEnPNqS4PQz2lZMJZ6aGQEoa1rypAMRfUgy1DWjxo/HooNEkJ/8BiE sEpQ== 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=06XiRXYXHs1H7tBLOx3k3BBiL8a84+pvPKSzFH3s/jw=; b=kVXDSuoimtlSf8xjbIyow8X0Wi1KzI98053B2RYzEQwZx05i45Cz5YFj4rKACGvH6v 85gzq/Usg7e2pxYfmZtPQ6PESgiqjJJ1WxPyLldJyCEG2uTtIo2zI/puIv0vFB7pJwje keus2tqGK50i/DZ650plKvZT313BPvL4zuBrVarnO36YDL1/r4rWc5DXsI/44SvPxz45 Q4+qG5kz0f2eirZYi8H3KAXcboJdWTIxE0JVuY0mf41Pm0QubKWbQemF2y4TxjPKzQOs xEIa30CBzJ4ctOLaT7WXzK9lDz2wLv2prbHcrDFqjc+1uX11oV6QpT46On+UNsIoY+nr pBTA== 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 r25si3227726pgv.370.2021.10.20.05.47.25; Wed, 20 Oct 2021 05:47:42 -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 S230091AbhJTMq7 (ORCPT + 99 others); Wed, 20 Oct 2021 08:46:59 -0400 Received: from 8bytes.org ([81.169.241.247]:33530 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230205AbhJTMqv (ORCPT ); Wed, 20 Oct 2021 08:46:51 -0400 Received: from cap.home.8bytes.org (p4ff2b5b0.dip0.t-ipconnect.de [79.242.181.176]) (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 0E946477; Wed, 20 Oct 2021 14:44:35 +0200 (CEST) From: Joerg Roedel To: Paolo Bonzini Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , x86@kernel.org, Brijesh Singh , Tom Lendacky , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Joerg Roedel Subject: [PATCH v5 6/6] KVM: SVM: Increase supported GHCB protocol version Date: Wed, 20 Oct 2021 14:44:16 +0200 Message-Id: <20211020124416.24523-7-joro@8bytes.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211020124416.24523-1-joro@8bytes.org> References: <20211020124416.24523-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: Brijesh Singh Now that KVM has basic support for version 2 of the GHCB specification, bump the maximum supported protocol version. The SNP specific functions are still missing, but those are only required when the Hypervisor supports running SNP guests. Signed-off-by: Brijesh Singh Signed-off-by: Joerg Roedel --- arch/x86/kvm/svm/sev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c index 0c673291e905..3ad69f4f0ed6 100644 --- a/arch/x86/kvm/svm/sev.c +++ b/arch/x86/kvm/svm/sev.c @@ -2394,7 +2394,7 @@ static u64 ghcb_msr_cpuid_resp(u64 reg, u64 value) } /* The min/max GHCB version supported by KVM. */ -#define GHCB_VERSION_MAX 1ULL +#define GHCB_VERSION_MAX 2ULL #define GHCB_VERSION_MIN 1ULL static u64 ghcb_msr_version_info(void) -- 2.33.1