Patch Series

Subject guest_memfd: In-place conversion support
Author devnull@kernel.org
Date 2026-05-07 20:22:20 +0000 UTC
Version
Cc ackerleytng@google.com aik@amd.com akpm@linux-foundation.org andrew.jones@linux.dev aneesh.kumar@kernel.org axelrasmussen@google.com baohua@kernel.org bhe@redhat.com binbin.wu@linux.intel.com bp@alien8.de brauner@kernel.org chao.p.peng@linux.intel.com chrisl@kernel.org corbet@lwn.net dave.hansen@linux.intel.com david@kernel.org devnull@kernel.org forkloop@google.com hpa@zytor.com ira.weiny@intel.com jgg@ziepe.ca jmattson@google.com jthoughton@google.com kas@kernel.org kasong@tencent.com kvm@vger.kernel.org liam@infradead.org linux-coco@lists.linux.dev linux-doc@vger.kernel.org linux-kernel@vger.kernel.org linux-kselftest@vger.kernel.org linux-mm@kvack.org linux-trace-kernel@vger.kernel.org mathieu.desnoyers@efficios.com mhiramat@kernel.org michael.roth@amd.com mingo@redhat.com nphamcs@gmail.com oupton@kernel.org pankaj.gupta@amd.com pbonzini@redhat.com pratyush@kernel.org qi.zheng@linux.dev qperret@google.com rick.p.edgecombe@intel.com rientjes@google.com rostedt@goodmis.org seanjc@google.com shakeel.butt@linux.dev shikemeng@huaweicloud.com

Patches (43)

Name Content [All]
[PATCH v6 01/43] KVM: guest_memfd: Introduce per-gmem attributes, use to guard user mappings [Body]
[PATCH v6 02/43] KVM: Rename KVM_GENERIC_MEMORY_ATTRIBUTES to KVM_VM_MEMORY_ATTRIBUTES [Body]
[PATCH v6 03/43] KVM: Enumerate support for PRIVATE memory iff kvm_arch_has_private_mem is defined [Body]
[PATCH v6 04/43] KVM: Stub in ability to disable per-VM memory attribute tracking [Body]
[PATCH v6 05/43] KVM: guest_memfd: Wire up kvm_get_memory_attributes() to per-gmem attributes [Body]
[PATCH v6 06/43] KVM: x86/mmu: Bug the VM if gmem attributes are queried to determine max mapping level [Body]
[PATCH v6 07/43] KVM: guest_memfd: Update kvm_gmem_populate() to use gmem attributes [Body]
[PATCH v6 08/43] KVM: guest_memfd: Only prepare folios for private pages [Body]
[PATCH v6 09/43] KVM: Move kvm_supported_mem_attributes() to kvm_host.h [Body]
[PATCH v6 10/43] KVM: guest_memfd: Add base support for KVM_SET_MEMORY_ATTRIBUTES2 [Body]
[PATCH v6 11/43] KVM: guest_memfd: Ensure pages are not in use before conversion [Body]
[PATCH v6 12/43] KVM: guest_memfd: Call arch invalidate hooks on conversion [Body]
[PATCH v6 13/43] KVM: guest_memfd: Return early if range already has requested attributes [Body]
[PATCH v6 14/43] KVM: guest_memfd: Advertise KVM_SET_MEMORY_ATTRIBUTES2 ioctl [Body]
[PATCH v6 15/43] KVM: guest_memfd: Handle lru_add fbatch refcounts during conversion safety check [Body]
[PATCH v6 16/43] KVM: guest_memfd: Use actual size for invalidation in kvm_gmem_release() [Body]
[PATCH v6 17/43] KVM: guest_memfd: Determine invalidation filter from memory attributes [Body]
[PATCH v6 18/43] KVM: Move KVM_VM_MEMORY_ATTRIBUTES config definition to x86 [Body]
[PATCH v6 19/43] KVM: Let userspace disable per-VM mem attributes, enable per-gmem attributes [Body]
[PATCH v6 20/43] KVM: guest_memfd: Enable INIT_SHARED on guest_memfd for x86 Coco VMs [Body]
[PATCH v6 21/43] KVM: SEV: Make 'uaddr' parameter optional for KVM_SEV_SNP_LAUNCH_UPDATE [Body]
[PATCH v6 22/43] KVM: TDX: Make source page optional for KVM_TDX_INIT_MEM_REGION [Body]
[PATCH v6 23/43] KVM: selftests: Create gmem fd before "regular" fd when adding memslot [Body]
[PATCH v6 24/43] KVM: selftests: Rename guest_memfd{,_offset} to gmem_{fd,offset} [Body]
[PATCH v6 25/43] KVM: selftests: Add support for mmap() on guest_memfd in core library [Body]
[PATCH v6 26/43] KVM: selftests: Add selftests global for guest memory attributes capability [Body]
[PATCH v6 27/43] KVM: selftests: Add helpers for calling ioctls on guest_memfd [Body]
[PATCH v6 28/43] KVM: selftests: Test basic single-page conversion flow [Body]
[PATCH v6 29/43] KVM: selftests: Test conversion flow when INIT_SHARED [Body]
[PATCH v6 30/43] KVM: selftests: Test conversion precision in guest_memfd [Body]
[PATCH v6 31/43] KVM: selftests: Test conversion before allocation [Body]
[PATCH v6 32/43] KVM: selftests: Convert with allocated folios in different layouts [Body]
[PATCH v6 33/43] KVM: selftests: Test that truncation does not change shared/private status [Body]
[PATCH v6 34/43] KVM: selftests: Test that shared/private status is consistent across processes [Body]
[PATCH v6 35/43] KVM: selftests: Test conversion with elevated page refcount [Body]
[PATCH v6 36/43] KVM: selftests: Reset shared memory after hole-punching [Body]
[PATCH v6 37/43] KVM: selftests: Provide function to look up guest_memfd details from gpa [Body]
[PATCH v6 38/43] KVM: selftests: Provide common function to set memory attributes [Body]
[PATCH v6 39/43] KVM: selftests: Check fd/flags provided to mmap() when setting up memslot [Body]
[PATCH v6 40/43] KVM: selftests: Make TEST_EXPECT_SIGBUS thread-safe [Body]
[PATCH v6 41/43] KVM: selftests: Update private_mem_conversions_test to mmap() guest_memfd [Body]
[PATCH v6 42/43] KVM: selftests: Add script to exercise private_mem_conversions_test [Body]
[PATCH v6 43/43] KVM: selftests: Update private memory exits test to work with per-gmem attributes [Body]
Session 2026-05-07
ID (for dev) ebd0ccb8-ec6e-4d33-84ad-4c8213b27dfa
Status in progress
Triaged OK [Log]
Execution Log [Link]
Test Base Patched Verdict
[KASAN] Build Base 6d35786de28116ecf78797a62b84e6bf3c45aa5a [Config] passed [Log]
[KASAN] Boot test: Base 6d35786de28116ecf78797a62b84e6bf3c45aa5a [Config] passed [Log]
[KASAN] Build Patched 6d35786de28116ecf78797a62b84e6bf3c45aa5a [Config] [patched] passed [Log]
[KASAN] Boot test: Patched 6d35786de28116ecf78797a62b84e6bf3c45aa5a [Config] [patched] passed [Log]
[KASAN] Fuzz 6d35786de28116ecf78797a62b84e6bf3c45aa5a [Config] 6d35786de28116ecf78797a62b84e6bf3c45aa5a [Config] [patched] running [Log] [Artifacts]