Lines Matching refs:pages_per_slot
89 uint64_t pages_per_slot; member
202 slot = min(gpage / data->pages_per_slot, (uint64_t)data->nslots - 1); in vm_gpa2hva()
203 slotoffs = gpage - (slot * data->pages_per_slot); in vm_gpa2hva()
209 slotpages = data->npages - slot * data->pages_per_slot; in vm_gpa2hva()
211 slotpages = data->pages_per_slot; in vm_gpa2hva()
228 return MEM_GPA + slot * data->pages_per_slot * guest_page_size; in vm_slot2gpa()
246 uint64_t pages_per_slot, uint64_t rempages) in check_slot_pages() argument
248 if (!pages_per_slot) in check_slot_pages()
251 if ((pages_per_slot * guest_page_size) % host_page_size) in check_slot_pages()
264 uint64_t mempages, pages_per_slot, rempages; in get_max_slots() local
270 pages_per_slot = mempages / slots; in get_max_slots()
271 if (!pages_per_slot) in get_max_slots()
274 rempages = mempages % pages_per_slot; in get_max_slots()
276 pages_per_slot, rempages)) in get_max_slots()
303 data->pages_per_slot = data->npages / data->nslots; in prepare_vm()
306 data->pages_per_slot, rempages)) { in prepare_vm()
315 data->nslots, data->pages_per_slot, rempages); in prepare_vm()
321 npages = data->pages_per_slot; in prepare_vm()
336 npages = data->pages_per_slot; in prepare_vm()