Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1557663pxb; Wed, 2 Feb 2022 07:36:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqwxjPE4KdXeUW/APQ+XgHyocvxjEXA5wSOvtMe6bVL2VbgZlzPoxguNeSpLr8cyuspnbu X-Received: by 2002:a63:6845:: with SMTP id d66mr25173387pgc.254.1643816170635; Wed, 02 Feb 2022 07:36:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643816170; cv=none; d=google.com; s=arc-20160816; b=MFtrdwoaIHtY74azONOJp+E0sitZ6qKwk7CbWy2yG6k1CbokjPWCDpJG1Oe9dIL984 ebtV2pMBVA70tCAHfbSwHaizeGervOSgqD3g1gdKBfRnyaXy0AtMxWefVB0uiuQSiV5k ThBDqFNnEXYkARA6QT2JWk9nwV96vwgxJK87q5jDmMNi5xwFBC0dBRs1GUyHqzFWAx8q GL3X1rSXXgfnl77e7m/DFYmczVNhLAsA2uZRYvYeq7d/OGw6EXzNruOEGhDAg6bZb4Gc 84jbsg9xiQFw19zdgvhZ+vvtpAA15ThJ4/KyiMzoFeMNFZpTUHjRAC8tGgT1ynLG+ZEQ iLOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=V45qKhsa32BToHgvxiyQ7/0biiBqQBIo5RIp2z/c1p0=; b=KRhxA0gkDA81EfyQoTulBGDqB3FnDFLpM8ugahLy19Taox63ZsytV5LPkmDGbfIG7A 2a5IvVXtu9lZS/O9wU9V7Yx+al8nMJSqjI1UqLGG2GH0RnF0GLgruqLQXTVePCNvkLnG /65d+2hSMFZ926WYYuast5oKgFWmcdImCxUJA40jIJUay5aUMa3mn3S3po+AwfRHA5nm E6QY0HOuTJPl5r1JAlH8VtiIewJbc51JpMucB0XfIsJgCZu9+0JlQYT+TCIWeL4rtwPC AnH3PAI2TzXpDyXDWtqdIGkV71vpUkt8Ku1uxndmyTW24m6NNgAU8PT/8PD1cRuS+9tE 4/Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=hKosanF8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8si4250337pjr.147.2022.02.02.07.35.58; Wed, 02 Feb 2022 07:36:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=hKosanF8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238310AbiBANCt (ORCPT + 99 others); Tue, 1 Feb 2022 08:02:49 -0500 Received: from mail.skyhub.de ([5.9.137.197]:42684 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238302AbiBANCr (ORCPT ); Tue, 1 Feb 2022 08:02:47 -0500 Received: from zn.tnic (dslb-088-067-221-104.088.067.pools.vodafone-ip.de [88.67.221.104]) (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 E351A1EC0441; Tue, 1 Feb 2022 14:02:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1643720562; 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=V45qKhsa32BToHgvxiyQ7/0biiBqQBIo5RIp2z/c1p0=; b=hKosanF82+uCnGcQ+cjuuUazkNmbqTKV0RwM8q/n3i2L7GrV3rzW6Jvlc7koykyvxaGdoe 4DhBNSdnJ0OFIZf1gE3H92X2xe+ExK5J9QAtuzmFjWGoF47/GtFsrsfO5Y6vfU073i/9xa 2SjcG/IcbeXeV6ocK0yqwXwA2QqceUs= Date: Tue, 1 Feb 2022 14:02:42 +0100 From: Borislav Petkov To: Brijesh Singh Cc: x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-coco@lists.linux.dev, linux-mm@kvack.org, Thomas Gleixner , Ingo Molnar , Joerg Roedel , Tom Lendacky , "H. Peter Anvin" , Ard Biesheuvel , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Jim Mattson , Andy Lutomirski , Dave Hansen , Sergio Lopez , Peter Gonda , Peter Zijlstra , Srinivas Pandruvada , David Rientjes , Dov Murik , Tobin Feldman-Fitzthum , Michael Roth , Vlastimil Babka , "Kirill A . Shutemov" , Andi Kleen , "Dr . David Alan Gilbert" , brijesh.ksingh@gmail.com, tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com, Venu Busireddy Subject: Re: [PATCH v9 02/43] KVM: SVM: Create a separate mapping for the SEV-ES save area Message-ID: References: <20220128171804.569796-1-brijesh.singh@amd.com> <20220128171804.569796-3-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220128171804.569796-3-brijesh.singh@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 28, 2022 at 11:17:23AM -0600, Brijesh Singh wrote: > From: Tom Lendacky > > The save area for SEV-ES/SEV-SNP guests, as used by the hardware, is > different from the save area of a non SEV-ES/SEV-SNP guest. > > This is the first step in defining the multiple save areas to keep them > separate and ensuring proper operation amongst the different types of > guests. Create an SEV-ES/SEV-SNP save area and adjust usage to the new > save area definition where needed. > > Reviewed-by: Venu Busireddy > Signed-off-by: Tom Lendacky > Signed-off-by: Brijesh Singh > --- > arch/x86/include/asm/svm.h | 87 +++++++++++++++++++++++++++++--------- > arch/x86/kvm/svm/sev.c | 24 +++++------ > arch/x86/kvm/svm/svm.h | 2 +- > 3 files changed, 80 insertions(+), 33 deletions(-) https://lore.kernel.org/r/Yc2jzOunYej4vwSc@zn.tnic -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette