From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.skyhub.de (unknown [5.9.137.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0FF7168 for ; Wed, 18 Aug 2021 08:39:55 +0000 (UTC) Received: from zn.tnic (p4fed307d.dip0.t-ipconnect.de [79.237.48.125]) (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 53A0F1EC0345; Wed, 18 Aug 2021 10:39:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1629275976; 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=VasVNSq4gd8Mrv+rRUUXRrEVEG/zyKOK8zOsDpdUhA8=; b=Yrf4DQSz1/Vx2Gs6IIl5JsuKogIzqVeNQM7uiItJdpRnZBiF1pa9OewR6hash59iHTyvuW NlE3QFjxjGpIundXvTH8IGvM2keM7D/CG56+sCJfBFGVi6HGCnCfl5/XY3BQ1N8M9Tjvy+ L9OFtzimJdaNb10F0huQNz0MMJecjlM= Date: Wed, 18 Aug 2021 10:38:04 +0200 From: Borislav Petkov To: Tom Lendacky Cc: Brijesh Singh , 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, linux-crypto@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Joerg Roedel , "H. Peter Anvin" , Ard Biesheuvel , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , 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 , tony.luck@intel.com, npmccallum@redhat.com, brijesh.ksingh@gmail.com Subject: Re: [PATCH Part1 RFC v4 20/36] x86/sev: Use SEV-SNP AP creation to start secondary CPUs Message-ID: References: <20210707181506.30489-1-brijesh.singh@amd.com> <20210707181506.30489-21-brijesh.singh@amd.com> <35b57719-5f31-c71a-7a2f-d34f6e239d26@amd.com> Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <35b57719-5f31-c71a-7a2f-d34f6e239d26@amd.com> On Tue, Aug 17, 2021 at 05:13:54PM -0500, Tom Lendacky wrote: > Well, yes and no. It really is just setting or clearing the VMSA page > attribute. It isn't trying to update permissions for the lower VMPLs, so I > didn't want to mislabel it as a general rmpadjust function. But it's a > simple enough thing to change and if multiple VMPL levels are ever > supported it can be evaluated at that time. You got it - when we need more RMPADJUST functionality, then that should be the function that gets the beefing up. :-) -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette