From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) (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 52A8C32F76D for ; Fri, 31 Jul 2026 20:10:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785528626; cv=none; b=EMChUZNkcFHSf0nPlW2X/dj3bFXjbCX0t23u++rL5fOZEXEYQ8plhzWOslpYiAKo2R3dr4VxGbC0ocemv1YjsEa+MWyEx4oxe1YGOMrbXE45OvPKhdQtme+eB6VCbdMosb2Ss0K/KW7o3MS9teGDqHOa3KNilAYcRKkK0A0tGZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785528626; c=relaxed/simple; bh=UdU/ctJ7nwZVXBbAaQ7/HWpUzSsjaRxz6+LT2oIZV6Q=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Sxr9MyOgxiMvEU/c35YHUG4SSzLsUvsi0lwY0lgir4fQhUZYikUf8D2zqqetW58YtmvX70TjxcKBh62jRQl79kOHs3R/nQlSan35MxtpPmC+6ql0W8hGEEKe2fdHZPzPOyL2HTqpN3rn47BCEZPJPijYjyP3JlIDYE8TQWVxCII= 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=Jg4euuDX; arc=none smtp.client-ip=209.85.216.70 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="Jg4euuDX" Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-38e54b6556aso1452083a91.2 for ; Fri, 31 Jul 2026 13:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1785528625; x=1786133425; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=LUb0FXAJQQbYRcsf05xKruWeQxq5USJJyQBWGslQZsY=; b=Jg4euuDXibjpziXuDEgta1KGONJOwGvQIBZR7K67wJP/qDYn7wKpBQERV1p5OHtbvY PnIHNrb+W4H4TjV5NSb2rrwZWNLCm6mF3X+gGrFFVz73pqi+YQHeiL640YmKSobpxK0c +Oao/6wwGrn/TWfykqApsgF2rUVo177FQGG79mWNk5bphpvShGD1XD4mryBeruw+0vZ2 0CmDavnbDtC9/q246xVafza2DB3n9goypB9jbe6pfch475BM9oP4vn60tZ1MevKg/21C C6ZrjQAiYCBM6MW7LTQBntVxQ/YqJkn/RlNOyVTkgj5GCqLnI5bUWB7SeIw97rzvx6Kv /tNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785528625; x=1786133425; h=content-type: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:content-type; bh=LUb0FXAJQQbYRcsf05xKruWeQxq5USJJyQBWGslQZsY=; b=JoWzuq3jI/swd7ez59hxgsCIw22ufEyIJ8lFhoQJmczuZsOdbsvbG1I6dPoiwrjbAY zWSBC2L1B5aUK1OmS6xr4pUPN2xeK1UL6GTEAJGUqh0hOddykzgQIDmQHXne/3JJ3a3t Yj17nbghOG+AbeD1ksl7bJfGhyGiuTKdahHiJwVBeLB1LJaPfN3ryGKk8VtkzoJRylm5 1aigZeNYkGFFOPNgpmI3IBQ7sgV4OI+9VF9A0L0CSP8nyq109nlAs+afuhxx0qRtnZMR 8KivZJHt2YZnEQScF7jeKOvwetQAmJY4e6VZ9bWs156D6ouYKIyJ3i1f0x5mRw1FRtul LVYQ== X-Forwarded-Encrypted: i=1; AHgh+RrTq1gBo75wCB9WBw/ZSYudIwh9NdtvxPnNwhbESDmpaSMI2dLQGVC/JY2mHxbuGs5cZKqmUsJ5VdOoEJ0=@vger.kernel.org X-Gm-Message-State: AOJu0Yz2nG8XTbO2OivRcIis/ZSikkBqXZWhzjjvaxYhjYm3WWeZhQLt qg21vwtS/7jWjlr6W5pAhOhgwmnFVhDlYpyYmtuhnikQSOVbq8o2rs5KjMp4yYjr6PnpEhPMGyI R26M5sw== X-Received: from pjj16.prod.google.com ([2002:a17:90b:5550:b0:38e:68b2:e344]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:590f:b0:38e:7a05:9c0a with SMTP id 98e67ed59e1d1-38fbc493f0bmr1047002a91.18.1785528624490; Fri, 31 Jul 2026 13:10:24 -0700 (PDT) Date: Fri, 31 Jul 2026 13:09:46 -0700 In-Reply-To: <20260723210811.72720-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260723210811.72720-1-seanjc@google.com> X-Mailer: git-send-email 2.55.0.508.g3f0d502094-goog Message-ID: <178552814603.2702891.2747556663887859375.b4-ty@google.com> Subject: Re: [PATCH v6 0/9] KVM: guest_memfd: RECLAIM+CONVERT cleanups From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Fuad Tabba , Ackerley Tng , Xiaoyao Li , Michael Roth , Fuad Tabba Content-Type: text/plain; charset="utf-8" On Thu, 23 Jul 2026 14:08:02 -0700, Sean Christopherson wrote: > These are the cleanups from the SNP VMSA series. Well, that's how they started > out, now it's full into prep work for in-place conversion. Oh well. > > Rework prepare()+invalidate() into make_private()+reclaim(), with direct line > of sight to adding make_shared() for in-place conversion. Have the x86 backend > use make_{private,shared} (no reclaim()) for SNP, as reclaim in SNP-land just > means "make shared". > > [...] Applied to kvm-x86 coco, thanks! [1/9] KVM: guest_memfd: Pass the number of pages instead of the end pfn into .invalidate() https://github.com/kvm-x86/linux/commit/0f0893ac5af3 [2/9] KVM: guest_memfd: Rename invalidate() arch hook to reclaim() and isolate it https://github.com/kvm-x86/linux/commit/7b8529e70a11 [3/9] KVM: x86: Rename kvm_x86_ops' gmem_invalidate() to gmem_make_shared() https://github.com/kvm-x86/linux/commit/f3c073e25476 [4/9] KVM: guest_memfd: Drop the redundant printk on arch gmem_prepare() failure https://github.com/kvm-x86/linux/commit/0f68fabe68fe [5/9] KVM: guest_memfd: Add helpers to query SHARED vs. PRIVATE for a given page https://github.com/kvm-x86/linux/commit/19e612cd59bf [6/9] KVM: guest_memfd: Only "prepare" folios for private pages https://github.com/kvm-x86/linux/commit/3df611b5a04e [7/9] KVM: guest_memfd: Rename prepare() hook and Kconfig to make_private() / CONVERT https://github.com/kvm-x86/linux/commit/2131c4f763d2 [8/9] KVM: guest_memfd: Explicitly pass number of pages to make_private() hook https://github.com/kvm-x86/linux/commit/fb50ca77b672 [9/9] KVM: guest_memfd: Make private exactly what can be mapped on page fault https://github.com/kvm-x86/linux/commit/2abcdf03fda1 -- https://github.com/kvm-x86/linux/tree/next