summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2026-05-12 18:56:34 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2026-05-12 23:26:10 +0300
commit87c810160ed738cd983e4a65ebe9709927c702c9 (patch)
treec795494bb3d780a6d1b2be263d130ff019af9341 /tools/lib/python/kdoc
parent4a9ee4fc795389d6919d52a0cce490f9712e4f8c (diff)
downloadlinux-87c810160ed738cd983e4a65ebe9709927c702c9.tar.xz
KVM: selftests: Ensure gmem file sizes are multiple of host page size
When creating a guest_memfd file and associated memslot to validate shared guest memory, size the file+memslot to the maximum of the host or guest page size. Attempting to allocate a single guest page will fail if the host page size is greater than the guest page size, as KVM requires that the size of memslots and guest_memfd files are a multiple of the host page size. For simplicity, verify the entire file can be shared between guest and host, e.g. instead of trying to validate "partial" mappings. Fixes: 42188667be38 ("KVM: selftests: Add guest_memfd testcase to fault-in on !mmap()'d memory") Reported-by: Zenghui Yu <zenghui.yu@linux.dev> Closes: https://lore.kernel.org/all/0064952b-048c-455d-ad89-e27e5cb82591@linux.dev Signed-off-by: Sean Christopherson <seanjc@google.com> Message-ID: <20260512155634.772602-1-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions