Thread (34 messages) 34 messages, 4 authors, 2025-09-23

Re: [PATCH v3 00/15] KVM: Introduce KVM Userfault

From: James Houghton <hidden>
Date: 2025-09-04 18:46:07
Also in: kvm, kvmarm, linux-doc, lkml

On Thu, Sep 4, 2025 at 9:43 AM Nikita Kalyazin [off-list ref] wrote:


On 18/06/2025 05:24, James Houghton wrote:
quoted
Hi Sean, Paolo, Oliver, + others,

Here is a v3 of KVM Userfault. Thanks for all the feedback on the v2,
Sean. I realize it has been 6 months since the v2; I hope that isn't an
issue.

I am working on the QEMU side of the changes as I get time. Let me know
if it's important for me to send those patches out for this series to be
merged.
Hi Sean and others,

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], write
syscall [4] and UFFD support [5] in guest_memfd (currently in discussion
with MM at [6]) series.
Glad to hear that you need this series. :)

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).

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.

[*]: https://lore.kernel.org/linux-arm-kernel/20250821210042.3451147-1-seanjc@google.com/ (local)
Thanks,
Nikita

[1]:
https://github.com/firecracker-microvm/firecracker/blob/main/docs/snapshotting/handling-page-faults-on-snapshot-resume.md
[2]:
https://github.com/firecracker-microvm/firecracker/tree/feature/secret-hiding
[3]: https://lore.kernel.org/kvm/20250828093902.2719-1-roypat@amazon.co.uk (local)
[4]: https://lore.kernel.org/kvm/20250902111951.58315-1-kalyazin@amazon.com (local)
[5]: https://lore.kernel.org/kvm/20250404154352.23078-1-kalyazin@amazon.com (local)
[6]:
https://lore.kernel.org/linux-mm/20250627154655.2085903-1-peterx@redhat.com (local)
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help