From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (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 A818434F48D for ; Fri, 5 Sep 2025 12:27:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757075236; cv=none; b=cnC8LuLh9HAFmQytKfcQ4JYQBfCch39nD2PS9t3Uie/tQYC3Fyeim3KvX9qVUh2906IGNXKJECooJniRoRGXA/Hag505iJS2h4QevYMWBAZ3wkEdf/XkLxFdG6uWec543VHCIJfvxStHhlUWCtxLAYFVlv4R8H/U6nwk+R288Nc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757075236; c=relaxed/simple; bh=wKevWlaDVATFTRv5UskfQdVzbKDKhm6MQDY8OOEDKcs=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=lOQTYjEEiz8u5nJPB/7i2+dQRfgG8iSzZOeRNE5SZWso1jgYYHoPBzOVOh6z1ZF8JxGm6DKdXQDy6pMGgPlzb7H1sUAtXmPq33YCLxWDDTqD9eU8r6DXsHD0xQmJDMDwlKL4Rw9X9q0PB5RSvefJozCbHz2ZEif3MPc26BnV7+M= 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=vS2zVpqr; arc=none smtp.client-ip=209.85.216.74 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="vS2zVpqr" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-3280d0d4d11so3065623a91.2 for ; Fri, 05 Sep 2025 05:27:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1757075234; x=1757680034; darn=vger.kernel.org; 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=uEtLYmY8JOalgrgOv2U5MLx2Oeht0cmwE/ZJBlYZqa4=; b=vS2zVpqrNA9WXt54rw/5e0ikn+wXouXWw0swu0yaAW++fKTuEebFbROzIqtUI/47Ng LxnF8SZ/u6a6rbYH8wIEBk8mYB/VOP6IjI+s3tVpZKyXmaWv/NWCVlJOsqT8PodzdzWp NC6OCWSJXVnxBZkCx/Papjo/s2mWaQxhfmjjC7KTyeKfYhwaRaUJzSRKI6uLMojGYmC1 ML5idKOjYFynRXc16jgu0EuLeiaWQ5PmxlVE1jNg3OrLOFmKwLx/cb+G7EOGvqFa73I8 SLCxl/Zuq2lBmfscg/04Aw3aY5QDdZPqFRVgrNdq/9c8h4v1OjMYld/FHNKV/uZCwklW BJrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757075234; x=1757680034; 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=uEtLYmY8JOalgrgOv2U5MLx2Oeht0cmwE/ZJBlYZqa4=; b=FAOrFDRu/JgSPq9sjGO/JU/uL+uflhUExGrLwU7KCb5ToyvrivrIVsJxNGqR9sy/E6 otJiX+nWG7L9PT1ADV5rA7095q7aW1Ux9bWTNpRNX7IyT344Or6d9hG+x9dDurWyo6cM DHPC9uobiHcJ01vzhJGIM9IAyojIoYfcAKcqOMSp3vC7vPI9yKgLcGuCnSW13Zc1Bd7+ zGCQmwS0QHKD0WTN8tmzJw5ldoTNXzx9S2QOMh053/slYfdI+WfJm++gFj+eRpTqyB9i ugt9UiJFQoMCLrqSfX/iCPosrci5t8rzjkBNisg2BomVSPaTXStO4z6kfE8t3HiNVefa ZZfg== X-Forwarded-Encrypted: i=1; AJvYcCUjZs0Ry8Nk1vLeljD3k0t0Oq4Z+42/mLF6AM/C8K3JSP5mIqfadxqn2werKFaP2lHKTjw=@vger.kernel.org X-Gm-Message-State: AOJu0Yzj9QzVk+rDzAsM+2nnK7rmTqlfBkBAUNMMIDTCyLeXeW0pIJSm 1eIomJYz9zoXu4UYc4Dxgk+N1MabslESgDLB/BFsbSxN8fcwUAkYaSwcpwD2g4+idoxhxy+q7iZ 2rXJunA== X-Google-Smtp-Source: AGHT+IGL6U3Es4ziofS/w8+rJpx7HwQEqsdYgzJc5tlMCihXPtFAaEH2AeP3MpoxcgsR8e9ya+5ty4Rf6kk= X-Received: from pjbmf13.prod.google.com ([2002:a17:90b:184d:b0:32b:35fb:187f]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:1a8b:b0:32b:b26e:1569 with SMTP id 98e67ed59e1d1-32bb26e2965mr6479994a91.15.1757075233964; Fri, 05 Sep 2025 05:27:13 -0700 (PDT) Date: Fri, 5 Sep 2025 05:27:01 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250618042424.330664-1-jthoughton@google.com> Message-ID: Subject: Re: [PATCH v3 00/15] KVM: Introduce KVM Userfault From: Sean Christopherson To: James Houghton Cc: kalyazin@amazon.com, Paolo Bonzini , Oliver Upton , Jonathan Corbet , Marc Zyngier , Yan Zhao , Anish Moorthy , Peter Gonda , Peter Xu , David Matlack , wei.w.wang@intel.com, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Thu, Sep 04, 2025, James Houghton wrote: > On Thu, Sep 4, 2025 at 9:43=E2=80=AFAM Nikita Kalyazin wrote: > > Are there any blockers for merging this series? We would like to use > > the functionality in Firecracker for restoring guest_memfd-backed VMs > > from snapshots via UFFD [1]. [2] is a Firecracker feature branch that > > builds on top of KVM userfault, along with direct map removal [3], writ= e > > syscall [4] and UFFD support [5] in guest_memfd (currently in discussio= n > > with MM at [6]) series. >=20 > Glad to hear that you need this series. :) Likewise (though I had slightly-advanced warning from Patrick that Firecrac= ker wants KVM Userfault). The main reason I haven't pushed harder on this seri= es is that I didn't think anyone wanted to use it within the next ~year. > I am on the hook to get some QEMU patches to demonstrate that KVM > Userfault can work well with it. I'll try to get that done ASAP now > that you've expressed interest. The firecracker patches are a nice > demonstration that this could work too... (I wish the VMM I work on > was open-source). >=20 > I think the current "blocker" is the kvm_page_fault stuff[*]; KVM > Userfault will be the first user of this API. I'll review that series > in the next few days. I'm pretty sure Sean doesn't have any conceptual > issues with KVM Userfault as implemented in this series. Yep, Oliver and I (and anyone else that has an opinion) just need to align = on the interface for arch-neutral code. I think that's mostly on me to spin a v2,= and maybe to show how it all looks when integrated with the userfault stuff.