Searched refs:dirty_gfns (Results 1 – 6 of 6) sorted by relevance
76 ring->dirty_gfns = vzalloc(size); in kvm_dirty_ring_alloc()77 if (!ring->dirty_gfns) in kvm_dirty_ring_alloc()117 entry = &ring->dirty_gfns[ring->reset_index & (ring->size - 1)]; in kvm_dirty_ring_reset()177 entry = &ring->dirty_gfns[ring->dirty_index & (ring->size - 1)]; in kvm_dirty_ring_push()215 return vmalloc_to_page((void *)ring->dirty_gfns + offset * PAGE_SIZE); in kvm_dirty_ring_get_page()220 vfree(ring->dirty_gfns); in kvm_dirty_ring_free()221 ring->dirty_gfns = NULL; in kvm_dirty_ring_free()
26 struct kvm_dirty_gfn *dirty_gfns; member
643 if (vcpu->dirty_gfns) { in vm_vcpu_rm()644 ret = munmap(vcpu->dirty_gfns, vm->dirty_ring_size); in vm_vcpu_rm()646 vcpu->dirty_gfns = NULL; in vm_vcpu_rm()1639 if (!vcpu->dirty_gfns) { in vcpu_map_dirty_ring()1654 vcpu->dirty_gfns = addr; in vcpu_map_dirty_ring()1658 return vcpu->dirty_gfns; in vcpu_map_dirty_ring()
315 static uint32_t dirty_ring_collect_one(struct kvm_dirty_gfn *dirty_gfns, in dirty_ring_collect_one() argument323 cur = &dirty_gfns[*fetch_index % test_dirty_ring_count]; in dirty_ring_collect_one()
71 struct kvm_dirty_gfn *dirty_gfns; member
817 struct kvm_dirty_gfn *dirty_gfns = cpu->kvm_dirty_gfns, *cur; in kvm_dirty_ring_reap_one() local830 assert(dirty_gfns && ring_size); in kvm_dirty_ring_reap_one()834 cur = &dirty_gfns[fetch % ring_size]; in kvm_dirty_ring_reap_one()