diff options
| author | 2026-09-10 16:56:03 -0700 | |
|---|---|---|
| committer | 2026-09-22 07:28:45 -0700 | |
| commit | 0db3f14f40c42dd0ac6a85b5e8fd605d37c8128a (patch) | |
| tree | bd1c0ff51431e574655662d61249a0eeb135e575 /scripts/Makefile.thinlto | |
| parent | KVM: selftests: Add helpers to pin pages with CONFIG_GUP_TEST (diff) | |
KVM: selftests: Test conversion with elevated page refcount
Add a selftest to verify that converting a shared guest_memfd page to a
private page fails if the page has an elevated reference count.
When KVM converts a shared page to a private one, it expects the page to
have a reference count equal to the reference counts taken by the
filemap. If another kernel subsystem holds a reference to the page, the
conversion must be aborted.
The test asserts that both bulk and single-page conversion attempts
correctly fail with EAGAIN for the pinned page. After the page is unpinned,
the test verifies that subsequent conversions succeed.
Co-developed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Ackerley Tng <ackerleytng@google.com>
Tested-by: Shivank Garg <shivankg@amd.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Yan Zhao <yan.y.zhao@intel.com>
Link: https://patch.msgid.link/20260910-gmem-inplace-conversion-v13-37-dd6fbf94f4e1@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
