Home
last modified time | relevance | path

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

/linux-6.6.21/virt/kvm/
Ddirty_ring.c76 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()
/linux-6.6.21/include/linux/
Dkvm_dirty_ring.h26 struct kvm_dirty_gfn *dirty_gfns; member
/linux-6.6.21/tools/testing/selftests/kvm/lib/
Dkvm_util.c643 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()
/linux-6.6.21/tools/testing/selftests/kvm/
Ddirty_log_test.c315 static uint32_t dirty_ring_collect_one(struct kvm_dirty_gfn *dirty_gfns, in dirty_ring_collect_one() argument
323 cur = &dirty_gfns[*fetch_index % test_dirty_ring_count]; in dirty_ring_collect_one()
/linux-6.6.21/tools/testing/selftests/kvm/include/
Dkvm_util_base.h71 struct kvm_dirty_gfn *dirty_gfns; member