Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp266195pxb; Wed, 18 Aug 2021 01:40:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbnJo5ALrnK+HshlIxV73+MplRGpcKEu5Vv7COSpG/lsmVULSlGn6kCIcBAV0ZMoqOGDTf X-Received: by 2002:a05:6638:268f:: with SMTP id o15mr7057629jat.22.1629276038059; Wed, 18 Aug 2021 01:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629276038; cv=none; d=google.com; s=arc-20160816; b=GNm+WU1CbQVn455N3B6YPEk4twrZHB0R9f2Ud/ynevq1ZvV1COPs39j/G7zqzjtqnD noSZ4qnE+QSRLGbvrFlE3vYnP8Y2XnF9+27Q+4KR19FJHd9sXXH6Qjk8MuOivfQkki1Q /z13hKQ+fdIjVHc5RScWZ526MZSTC0taQZdp4vulDhzw5pBRqVnWoATUZjU+T2yLGCev VODrTWc3j14OsomMtVSx92iPQMaJ3xV9dL+QUVlitv5Kb7FtlvJD7s7HTzpi3LGm55H0 fFUng+wmlZ93yA9UTsi2n0B6hmd5oomK4l9azvzi+XgchVJ8Rd7u/gX4KFXlalylLgYQ co8w== 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=VasVNSq4gd8Mrv+rRUUXRrEVEG/zyKOK8zOsDpdUhA8=; b=CeqmU57AhWDBl8/2nea2xdoJXp3dQiFp1zLxEJLO7XPVT7J+2yNPi4dhKlzsdsyhwz my/1QNor/sUrBrAnTxOxT695Ja5h3KKf0c0vl93ZU9kdb6Qurh2GDQ1Q7CpPzri4N/E1 2vNtW6AgNnbePagOlyAkIZpSbv+PnBx3p1uhs3kjBuUe4hBVtGo8HK00tVv5v0eUDyaS Tz0wo5KKQjNpnTv+DEBmweMV+jDnGTP3oj8kOlpgtLCg6S4RjmVQIWY6EJ5Ift6adUeb rp9HgO9k/0qACwKOrx268ep+wq/5K42OiYSfoNu72HlasEfD31WYLFkKp/CEhg8YCAER 83Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Yrf4DQSz; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t1si4837817jao.24.2021.08.18.01.40.26; Wed, 18 Aug 2021 01:40:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Yrf4DQSz; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 S238705AbhHRIkS (ORCPT + 99 others); Wed, 18 Aug 2021 04:40:18 -0400 Received: from mail.skyhub.de ([5.9.137.197]:52414 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238656AbhHRIkR (ORCPT ); Wed, 18 Aug 2021 04:40:17 -0400 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <35b57719-5f31-c71a-7a2f-d34f6e239d26@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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