Home
last modified time | relevance | path

Searched refs:pmd_size (Results 1 – 1 of 1) sorted by relevance

/linux/tools/testing/selftests/kvm/
H A Dguest_memfd_test.c176 const size_t pmd_size = get_trans_hugepagesz(); in test_collapse() local
185 * within the guest_memfd have to be aligned to pmd_size. in test_collapse()
189 * from a pmd_size-aligned offset (0) at a known, available in test_collapse()
192 reserved_addr = kvm_mmap(pmd_size * 2, PROT_NONE, in test_collapse()
194 aligned_addr = align_ptr_up(reserved_addr, pmd_size); in test_collapse()
196 mem = mmap(aligned_addr, pmd_size, PROT_READ | PROT_WRITE, in test_collapse()
198 TEST_ASSERT(IS_ALIGNED((u64)mem, pmd_size), in test_collapse()
205 for (i = 0; i < pmd_size; i += getpagesize()) in test_collapse()
212 kvm_madvise(mem, pmd_size, MADV_HUGEPAGE); in test_collapse()
219 TEST_ASSERT_EQ(madvise(mem, pmd_size, MADV_COLLAPS in test_collapse()
431 size_t pmd_size = get_trans_hugepagesz(); __test_guest_memfd() local
[all...]