Lines Matching refs:npages
94 uint64_t npages; member
197 TEST_ASSERT(gpa < MEM_GPA + data->npages * 4096, in vm_gpa2hva()
210 slotpages = data->npages - slot * data->pages_per_slot; in vm_gpa2hva()
267 data->npages = mempages; in prepare_vm()
287 uint64_t npages; in prepare_vm() local
289 npages = data->pages_per_slot; in prepare_vm()
291 npages += rempages; in prepare_vm()
294 guest_addr, slot, npages, in prepare_vm()
296 guest_addr += npages * 4096; in prepare_vm()
301 uint64_t npages; in prepare_vm() local
304 npages = data->pages_per_slot; in prepare_vm()
306 npages += rempages; in prepare_vm()
308 gpa = vm_phy_pages_alloc(data->vm, npages, guest_addr, in prepare_vm()
314 memset(data->hva_slots[slot], 0, npages * 4096); in prepare_vm()
316 guest_addr += npages * 4096; in prepare_vm()
598 uint64_t npages; in test_memslot_do_unmap() local
602 hva = vm_gpa2hva(data, gpa, &npages); in test_memslot_do_unmap()
603 TEST_ASSERT(npages, "Empty memory slot at gptr 0x%"PRIx64, gpa); in test_memslot_do_unmap()
604 npages = min(npages, count - ctr); in test_memslot_do_unmap()
605 ret = madvise(hva, npages * 4096, MADV_DONTNEED); in test_memslot_do_unmap()
609 ctr += npages; in test_memslot_do_unmap()
610 gpa += npages * 4096; in test_memslot_do_unmap()