Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39C7B3A8721 for ; Tue, 23 Jun 2026 21:43:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782251013; cv=none; b=YXIlYOHOCY/7VybRTWhICVy3tIOILGtZg5rAw4B6GEgt0f0XlI8vgZqal1YVxNLkhMVN0uDacor5zUjJO0FqYyMlDuioGUPmeQYEJ+sRC4pM4F3UBuhKNt2oxEqJf8iQSeWudhIiTftLPfrW/IwG7ZbhbjfS4S3e2af0AvwTr4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782251013; c=relaxed/simple; bh=KYkOXRc6PtHkDuTF07+UlSONzn0N44Bv/OO52rl5wU4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=C9ybaXOz8mNaKU3E0TXmSr140S9YHJ9t3k7ARmqTd56utZ+2FrqosEuPNVKvjsI+e5lE3xpRbfPwDC6azhBgIo/hmvhZrBVy0Lyzd3IgMAPdXm57+4cvk4sjftIPQJsVMpie2QUBzWJHPrDeXuKej/OG1F8nHZt1k0BAsiki7I8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Qoe2f40E; arc=none smtp.client-ip=209.85.210.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Qoe2f40E" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-8453a81b846so483465b3a.2 for ; Tue, 23 Jun 2026 14:43:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1782251011; x=1782855811; darn=lists.linux.dev; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=+BoYHhvq061mNBm0pBIKHfokYEtu2W0R/oyRcYiSNgQ=; b=Qoe2f40Eqj/xsuHU1ZAegwKw/8jEzKWftU91mjE7ax+GzCUiebiZhaGfNKdsgOhEBH Ao9wyyFeR4PJ2F379c3ezHMrexLREb7mP79aCOKqxScCW65nsiiS1MbeFh3eBzB6m80u 8ONmNxKzwkCQXc0pSF/D7rP0H2Q9oK4KE9OukpH0NDJKuEnyv/3C1A0LWDjXJvYLwFeG sOe/kzNTcgZku8TBK/3tFss9pcZPlFtl5zCbz6y+ixY4CpM617iKjG7sUc+a/9uSBrIm w/sLVIUIhs2q/puekv9SATPBm4C8uwSv8SHY58/jeM7zWgKGlijQnoi9EbrMI4vhEowG lMow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782251011; x=1782855811; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=+BoYHhvq061mNBm0pBIKHfokYEtu2W0R/oyRcYiSNgQ=; b=SMaQbt9y/W330XnRIDQ4Dq9PsSDEPuaRjZ9eiY2AMgc8fd5erenDwYq64wckJIaVC9 qpvvopI++jlnVGlVkLYnHx+XtoEDqYOWTxbqIgfvmL4yf7fmc6EVHCb3GPqfQrqfrmA6 SrznfB6LCGiNccJgpT+75gv06JEi37CRMyYikrPtrHrl+gWzD8dxv1bLz9PdOHg2iLqG Nk6GYZmhQSz1DeF3SoptQ2GXMq+nQmByn+xu4iYDL/tQCZtiRKqnTuxTHFJ5tnMn1k6l 9Py8Fah7yDSJ1Gwf4G1YxJv020b2Plp/wCEdsWFP7JEAHYm6oPvXa9VfW+HGmC8Yj5sB jW0w== X-Forwarded-Encrypted: i=1; AFNElJ+I9LhR6VVBZhIwXgwaW2KMY54NvhrmMfUh5w4q8SUHy68/QFwz7hfkGSAlmF+0G7G3+YyuUR0ifrzQiG4=@lists.linux.dev X-Gm-Message-State: AOJu0YxUXBXF+3ShTQ1KjIpOd2zGp8INvLGWLmyaROug+f9GK0jAdF87 a2YSmU2z5Zo2r4odr7jJjJVqo7QkxTu2P/FGSTZczM/Ang7C4y1ddDRcSU014mbBwxBrap9hTsI BOs2CpQ== X-Received: from pfnj18.prod.google.com ([2002:aa7:83d2:0:b0:845:47bc:59e8]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:39a4:b0:842:1052:5fe7 with SMTP id d2e1a72fcca58-845a26a23c9mr1038347b3a.6.1782251011259; Tue, 23 Jun 2026 14:43:31 -0700 (PDT) Date: Tue, 23 Jun 2026 14:43:30 -0700 In-Reply-To: <0657500d-a8bd-4dec-80a5-807e857a4306@fortanix.com> Precedence: bulk X-Mailing-List: coconut-svsm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <0657500d-a8bd-4dec-80a5-807e857a4306@fortanix.com> Message-ID: Subject: Re: [EXTERNAL] Re: [PATCH 4/4] kvm: svm: Support KVM_SEV_SNP_PAGE_TYPE_VMSA at SNP_LAUNCH_UPDATE From: Sean Christopherson To: Jethro Beekman Cc: Jon Lange , "=?utf-8?B?SsO2cmcgUsO2ZGVs?=" , Paolo Bonzini , "x86@kernel.org" , "thomas.lendacky" , Michael Roth , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "coconut-svsm@lists.linux.dev" , Joerg Roedel Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Tue, Jun 23, 2026, Jethro Beekman wrote: > On 2026-06-23 16:51, Jon Lange wrote: > > On Tuesday, June 23, 2026 6:40 AM, Sean Christopherson wrote: > >> On Wed, Jun 17, 2026, J=C3=B6rg R=C3=B6del wrote: > >>> On Wed, Jun 17, 2026 at 06:37:52AM -0700, Sean Christopherson wrote: > >>>> Ok, so it took us a few times to learn our lesson. I still don't se= e that as a > >>>> strong argument for new uAPI, especially not for VMSA pages. I am v= ery firmly > >>>> of the opinion that letting anything but the host kernel configure t= he VMSA is > >>>> beyond stupid, but unfortunately we're stuck with AP_CREATION. Expa= nding that > >>>> surface has a very, very, VERY high bar to get over. > >>> > >>> The strongest argument in my view (and the main reason we are doing t= his) is > >>> actually the predictable launch measurement. On SEV-SNP this is a req= uirement > >>> to use platform VM-identity features like the ID Block. > >> > >> And I'm saying that unless KVM *can't* provide a predictable launch me= asurement, > >> which AIUI isn't the case, then the launch measurement *must* be stabl= e across > >> kernels because it's part of KVM's ABI. So as I see it, the issue isn= 't that > >> KVM is inherently unpredictable, it's that we lack tests to validate a= thorny, > >> subtle piece of KVM's ABI. > >=20 > > Joerg is suggesting that we need a launch measurement that is stable no= t > > just across multiple launches on the same system, but across multiple > > hypervisors. >=20 > If this is now suddenly an acceptable argument, please also merge https:/= /lkml.org/lkml/2021/4/12/625 No, that's not how this works. Dave and Jarkko both have unanswered questi= ons regarding the use case. Answer their questions, and I'm confident you'll g= et traction. : I don't believe we necessarily *WANT* or need Linux to support "all : possible ECREATE, EADD, EEXTEND, EINIT sequences". Yet, it's what is : being used to justify this series without any other justification. :=20 : It's going to be a different story if you bring me a real enclave that : *REALLY* wants to do this for good reasons. and : What specifically are you referring as the "rest of the world"? :=20 : That would be mean that there is reviewable workload "out there". The start of that thread is *exactly* what's playing out here. The big dif= ference, and why this one's likely getting a different result, is that Jon provided = a very thorough explanation of exactly what use case Joerg and company want to sup= port. The only "assumed knowledge" is why it's desirable for the measurement to b= e stable across hypervisors, but I'm comfortable stitching that together on my own. In other words, they aren't asking KVM to support every possible way/time a= VMSA could be associated with a vCPU, they're asking to extend KVM to support a = concrete use case, with meaningful real world impact. In fact, I actually think thi= s series is *too* narrowly focused on their use case. FWIW, KVM_TDX_INIT_MEM_REGION has almost the exact same ABI that SGX has: p= ages contents are measured immediately after they're added.