Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3741235pxv; Tue, 13 Jul 2021 02:38:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6SBPgZdrCljip0t4MvEpFnLu/vSYCcFe8WHa1VWnYvcwQ5CfQKT5kFKDeHpU6nmKlN5AJ X-Received: by 2002:a02:3845:: with SMTP id v5mr3176852jae.119.1626169111084; Tue, 13 Jul 2021 02:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626169111; cv=none; d=google.com; s=arc-20160816; b=h6pZyKl2B6u5FAXMM0dQ1pHHil/s4AOfryVIXt8vrbDdl1Un33uGoTi9fXjZjzaNIV RRzxJjGrd6/gSjVA2oxOug45JUdGGFd2t+DysheI8TyI2S2dOLitQzRwWvuJTFbEBPQT DJBJwHrOnNexZNwTXOkCi8FEZ/KXV87xtcFdpxPd7DPN6nmXIJ/+5xnYZVgJnPK2UFWD SiCp1/t9+mCQz6aNTdPro8xv2QHq57rhTKTQ9XVjJqrDw3p/ScQDhkiKa4oeXWtc3koz y2Iq6jH4PyZ6KmheCqtT2UBkfmqgnkrPYCW0edpB+M6XOUAc7J1IJ4IC7Tr/UcD/HvN8 skmg== 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=BEC160jNknyFVU+Ef2QXARVoKg9YNftU2HKteCAq0no=; b=WdCexe7X+kK46Up8C0UHTRMBJLO5411ppn+nFOxD9HNsElyBdsX3lW93Ap2odED4SN nr5wUASI+42sJhLyKGbP1+L7zNiH4m55egTNMecmbxcYZC+GYn0FPbFR49zmJgm5twzH yh8Gd5GTECuQquxfehNojL/H5pvaCqLFtwnkhvFmqebwFg3AYZxKf1r1KC4zae9940Fo y0LwhCrRKzUab6JJftzqaxYRjRqmyyM/2+eMkTGv0oSnk5CEfXfHfkXY23xk53G2ggzg z15JBWzbABgJDtczwYtOpXYRhJu+rjjMIRPpXGXIBhSwD7eBzDek8qbjkDkpzkn/OSM7 TbVQ== 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 x9si5872677jat.100.2021.07.13.02.38.15; Tue, 13 Jul 2021 02:38:31 -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 S235324AbhGMJit (ORCPT + 99 others); Tue, 13 Jul 2021 05:38:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235249AbhGMJiq (ORCPT ); Tue, 13 Jul 2021 05:38:46 -0400 Received: from theia.8bytes.org (8bytes.org [IPv6:2a01:238:4383:600:38bc:a715:4b6d:a889]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B5B3C0613DD; Tue, 13 Jul 2021 02:35:56 -0700 (PDT) Received: from cap.home.8bytes.org (p4ff2b1ea.dip0.t-ipconnect.de [79.242.177.234]) (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 A6C7C566; Tue, 13 Jul 2021 11:35:49 +0200 (CEST) From: Joerg Roedel To: Paolo Bonzini Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Brijesh Singh , Tom Lendacky , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, x86@kernel.org, Joerg Roedel Subject: [PATCH 3/3] KVM: SVM: Increase supported GHCB protocol version Date: Tue, 13 Jul 2021 11:35:46 +0200 Message-Id: <20210713093546.7467-4-joro@8bytes.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210713093546.7467-1-joro@8bytes.org> References: <20210713093546.7467-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/svm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/svm/svm.h b/arch/x86/kvm/svm/svm.h index 77379e1442cc..9adf123e0db2 100644 --- a/arch/x86/kvm/svm/svm.h +++ b/arch/x86/kvm/svm/svm.h @@ -543,7 +543,7 @@ void svm_vcpu_unblocking(struct kvm_vcpu *vcpu); /* sev.c */ -#define GHCB_VERSION_MAX 1ULL +#define GHCB_VERSION_MAX 2ULL #define GHCB_VERSION_MIN 1ULL #define GHCB_HV_FT_SUPPORTED 0 -- 2.31.1