Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2300776rbb; Tue, 27 Feb 2024 18:35:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXXirgpqix5CMdg7n/qhTlizrnOf0a3m3pcRbo6ln6bTlu0U+Pi6mBHwveGC/JjghLz6+TYXdFwKZIF7IkSXbbADjUjb874y7Z0eH2QWw== X-Google-Smtp-Source: AGHT+IHCKrGxD7+E5hewm0Mmvkqa7ZZ13VyWydMzch7MlyPfMom6kG27wKSkXw/YPJMfXtDZktf3 X-Received: by 2002:a17:902:6e16:b0:1dc:82bc:c073 with SMTP id u22-20020a1709026e1600b001dc82bcc073mr9293482plk.41.1709087709233; Tue, 27 Feb 2024 18:35:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709087709; cv=pass; d=google.com; s=arc-20160816; b=QSL6eAXC8YgJokMFMNgzO9jsVEnS7oLgf4dUarw7qz1p4kqsIXAwK4D8unOwUlc7ku tr1IiJXvOdTe6X/XxVJvr7MShz8wvL4LjiBkPoZraZv1oYdePKr9/4afBWXsiY+tR8dD Xy5Ack7BSfHv3+8uWtHq4imQiJTdP15QVG0/Tb8I5HCu/3viWa/lDUOIKZKP79f+gr0G 93f2yah9qveZDBzZ7v3PHqcrE9JJmIOECM5a9kkHhVyivkDl2Invz9zPk2XqRMdKA6YR zOdaK3//7tVFh+U0QUVkPYnz+HnhUVrn0HFKI1XGAlWRoar+3Bh+ogpVBikxZQ8YXUSH XAcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=qIJEAcQJ3yU6dJu8GmHhPj18u/c5zdDyAfCrkcskd1k=; fh=3MI4bsUq5Tu0FLJus7Axcem2jDGCHw+ZY2hxOAue5HI=; b=tpNGek7vRDVC9k8Pzcz0dj/Pzj6zjizpf+9ZgRtXt7PkT72lUZnfgmMYdw4hdNTTGg sLwCdfzwRBh3Lb03SluaTqAWW5WtkEMVQcQriRq4TagEDwE6IgiQKDDpv24bl6aJGsCt ANljqSF9o5uDhYctdBFWBef+xmr1j/q0++wGctCnjoS6BDh8xNDRHBWtlzkMPQgV6l1d nJ6TkWsv6jcgJExDRKHaalC61s5oC//mwsk4rrYszktkiAWGc/8Tvq1kiGHpBibybJhK NOsWLzO+dvnVBaqat2Y7GbzdE9cPvmMWGQZ0JGYkgybbqBaItcq2dGFyXqDtUJhErKyn dEOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=mCcS5ZCb; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-84404-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84404-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u13-20020a170902e5cd00b001d8da1c6933si2565316plf.58.2024.02.27.18.35.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 18:35:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84404-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=mCcS5ZCb; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-84404-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84404-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 562B6B26798 for ; Wed, 28 Feb 2024 02:12:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A278979E5; Wed, 28 Feb 2024 02:12:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="mCcS5ZCb" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (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 6CC394400 for ; Wed, 28 Feb 2024 02:12:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709086322; cv=none; b=KEU5upLi5+T5yBhfZ1AAG+e2/yTb9QgB8qUYhBg3+su+yEz/3D7L840KvQ9w7O/hPziiSe+YkPxi/E11SEzPufRAXdZb6llWkhKCtf8YpkPCK+nj7CtP3d5k172OeLLJAuGESJsjH/uLSL1IMfcTf8EW/ov9H/higVRKu9mUiZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709086322; c=relaxed/simple; bh=p5Wahx7owb2D2GfVq0T01q+bfIu0ztWAQyILEnY7dQ4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=XfnvLNcCZwoRjKg9n2ZCrk5WEQ1iUOTE9YLeYSolsMC1+s3CFS8qTm/QESCWbm/a3Yt2CrX+MoObA3kTcdHHOXwelhScS939e64ZZm7ETqfn/RcViHluCo6weCdzmtwgqq05Od4l5Htu8v306kYQ2zoGgZK6dZF/IkM3aYOyo8g= 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=mCcS5ZCb; arc=none smtp.client-ip=209.85.219.202 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 Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-dcdc3db67f0so516611276.1 for ; Tue, 27 Feb 2024 18:12:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709086320; x=1709691120; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=qIJEAcQJ3yU6dJu8GmHhPj18u/c5zdDyAfCrkcskd1k=; b=mCcS5ZCbzG6lWSM0SFWLFzKuVbkcZG4m9mkWGwfI8F2DLX5lvsKlYk/XQYk3057FSi emJAr1cZinvitMYHcSimxK6AfcQ+Cbcnt4JiUQ07dWseR3/d0T95umv/M+B0wZueCUQV GSkaYvWOKIIEn4jKoxh+JK0dKDKdLZVFFqE1EsMRj2WRtKg2nYl38BhPEqUrCbHDlPX9 jkTQX1wrbAkzRnG3eg6PyTJwnLUPZcVo/RuTBKs3w3qKiCFNfngQ4OjCi7u769d2Y4Fp Bjx+jA3gwAbqkcLeT5SmXwDS03Ivr8hdo9ZghRGisPiLDy9hwThue83Lj1vAgRVC1Ott SsuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709086320; x=1709691120; h=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=qIJEAcQJ3yU6dJu8GmHhPj18u/c5zdDyAfCrkcskd1k=; b=fafRk8vxQ/DS9mLRkxet8RsOfmXBG082pWd7m+WWLeic/WeAfn7xmvLWfaLxOhRZUF Vbuc+dciVEIBrWoeDRTKRX+4e+hJWIHrmElpJzqkglqh8goOitDOLuluE+FabRnG+Mw3 nZXfl64b2ZVwdFD5g70zgjUaJbtkqpIPBiJBPbbZKtS9+DYHWbao01g9fGFtmHFrHdIG YPGG7LceK1VLcGzOpZKd9x60dhw2Ecuzx/kJzKd0Sh6/KHra0l1Tr0QtvCbEhwymoRuy 09lw5U6kvrVt3G8sQvP1jbdoyxWhY/QZDGDB5iBu1mLI6D/Uq9oMAsb36iWboSt1tds7 gHzg== X-Gm-Message-State: AOJu0YwBQSgIIvMR9eopqzZ3OLUhNAXomeNT9VhvN+oAK1pqNLsMixtV P77q7hBdE0qoNa2vMbI4RFX3cqP0LU8v0ZsLEW96xP0uYKT+2lfgZjYSHhQsTk/TeHxoA/PE2pb lig== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:1004:b0:dc2:2e5c:a21d with SMTP id w4-20020a056902100400b00dc22e5ca21dmr366529ybt.6.1709086320605; Tue, 27 Feb 2024 18:12:00 -0800 (PST) Date: Tue, 27 Feb 2024 18:11:59 -0800 In-Reply-To: <20240227232100.478238-1-pbonzini@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240227232100.478238-1-pbonzini@redhat.com> Message-ID: Subject: Re: [PATCH 00/21] TDX/SNP part 1 of n, for 6.9 From: Sean Christopherson To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, michael.roth@amd.com, isaku.yamahata@intel.com, thomas.lendacky@amd.com Content-Type: text/plain; charset="us-ascii" I would strongly prefer we taret 6.10, not 6.9. The TDX and SNP folks don't need any of this code to be in Linus' tree, they just need it in _a_ KVM tree so that they can develop on top. And I will have limited availability the rest of this week (potentially very limited), and I obviously have strong opinions about some of this code. But even if I had cycles to review this properly, I just don't see a reason to rush it in. For the guest_memfd changes in particular, they're impossible to review in this series. Rather than prematurely shove them into mainline, we should create a volatile topic branch and use that to enable TDX/SNP development. That way we can fixup patches if things need to change. On Tue, Feb 27, 2024, Paolo Bonzini wrote: > This is a first set of, hopefully non-controversial patches from the > SNP and TDX series. They cover mostly changes to generic code and new > gmem APIs, and in general have already been reviewed when posted by > Isaku and Michael. > > One important change is that the gmem hook for initializing memory > is designed to return -EEXIST if the page already exists in the > guestmemfd filemap. The idea is that the special case of > KVM_SEV_SNP_LAUNCH_UPDATE, where __kvm_gmem_get_pfn() is used to > return an uninitialized page and make it guest-owned, can be be done at > most once per page unless the ioctl fails. > > Of course these patches add a bunch of dead code. This is intentional > because it's the only way to trim the large TDX (and to some extent SNP) > series to the point that it's possible to discuss them. The next step is > probably going to be the private<->shared page logic from the TDX series.