Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2016893pxa; Mon, 3 Aug 2020 05:29:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzktiaZLj6owCpHgTihoumJeyILevYj01aHPGdeb1C++/r5oPwdbGaYXg26NrSok42Bnuli X-Received: by 2002:aa7:dbd9:: with SMTP id v25mr15945775edt.137.1596457753472; Mon, 03 Aug 2020 05:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596457753; cv=none; d=google.com; s=arc-20160816; b=GhgK/w7xJ1BDDgSgKmryQ7crZ9885LLJJOB5Yzv5zKHCSintUX8k9gpK9950k+fbuQ m4kl1KdchNT+a9wA+OIZzTKHbEVLbK8b8pVRkz31TWVqVIlp1z3FQL+A31tAsqpW0nK/ LNbwEiG9P6OY09tIqVok9f7hLvBM40T+S4t8908vpkDPsG8btjpajvVgVewQGnZ9Vo05 EbVjgNLJ3umOuPb55wNG2arxQNXAmNGPRQeQw7lbW8LFtwKcXJa/X8G92uSMSUzVqsFz 5aRAiEnMJqherbLmKAEC9cD4BkJe2Xoke7f20anPvaMDjK+17wS/nsU8DhtAxuBiN6B0 Q+iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=JYLsxGm5O83Nc9aR2wSyr1uYxEtIDE5yVxWfinZuwUU=; b=PtD35qxggT3lkXgv6xj4wFx6yeFQO/OKsG9teMtBGP34+gstxioZR8BanVWywFakMI WTCi9riY8GoW/UKI8ysPhtZfa9XOOmgEuVqgZlCG6zTOKev7sXLCWvIcp9tZrB0nJENK etSvlD70lJU33UymSn8p/v4HmEst8oueFFhR6rX5GthaRMZXvEsxP2zhVDp8ZIOV2XQU 2iuE8j2YpWjNPUl1FMgon/2whQzTvvNA8Gaah9hHspNN52wBa/r8yRSgMttIokX6Jeua NDKKKQE4FxPIYLOfNREA0kTyN8+Z1UWdzcVp8CloF///39fKOudoYsWJRDneV2aAb0M6 g3Ww== 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 ck3si9151785edb.324.2020.08.03.05.28.51; Mon, 03 Aug 2020 05:29:13 -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 S1727991AbgHCM1g (ORCPT + 99 others); Mon, 3 Aug 2020 08:27:36 -0400 Received: from 8bytes.org ([81.169.241.247]:34650 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728530AbgHCM1Y (ORCPT ); Mon, 3 Aug 2020 08:27:24 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id E244D423; Mon, 3 Aug 2020 14:27:21 +0200 (CEST) From: Joerg Roedel To: Paolo Bonzini Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Tom Lendacky , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/4] KVM: SVM: SEV-ES groundwork Date: Mon, 3 Aug 2020 14:27:04 +0200 Message-Id: <20200803122708.5942-1-joro@8bytes.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paolo, here is v3 of the groundwork patches for the upcoming SEV-ES support in the Linux kernel. They are part of both the client patch-set and the KVM hypervisor patches (under development). Patch 1 necesary to fix a compile warning about a stack-frame getting too large. The other 3 patches define the Guest Hypervisor Communication Block (GHCB) and accessor functions. This version addresses the review comments from Sean. It would be great if you could consider them for v5.9, so that the client and the hypervisor patch-sets can be developed more independently of each other. Please let me know what you think. Regards, Joerg Borislav Petkov (1): KVM: SVM: Use __packed shorthand Joerg Roedel (2): KVM: SVM: nested: Don't allocate VMCB structures on stack KVM: SVM: Add GHCB Accessor functions Tom Lendacky (1): KVM: SVM: Add GHCB definitions arch/x86/include/asm/svm.h | 100 ++++++++++++++++++++++++++++++++++--- arch/x86/kvm/svm/nested.c | 47 +++++++++++------ arch/x86/kvm/svm/svm.c | 2 + 3 files changed, 128 insertions(+), 21 deletions(-) -- 2.17.1