Home
last modified time | relevance | path

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

/linux-6.1.9/virt/kvm/
Ddirty_ring.c62 ring->dirty_gfns = vzalloc(size); in kvm_dirty_ring_alloc()
63 if (!ring->dirty_gfns) in kvm_dirty_ring_alloc()
103 entry = &ring->dirty_gfns[ring->reset_index & (ring->size - 1)]; in kvm_dirty_ring_reset()
157 entry = &ring->dirty_gfns[ring->dirty_index & (ring->size - 1)]; in kvm_dirty_ring_push()
173 return vmalloc_to_page((void *)ring->dirty_gfns + offset * PAGE_SIZE); in kvm_dirty_ring_get_page()
178 vfree(ring->dirty_gfns); in kvm_dirty_ring_free()
179 ring->dirty_gfns = NULL; in kvm_dirty_ring_free()
/linux-6.1.9/include/linux/
Dkvm_dirty_ring.h26 struct kvm_dirty_gfn *dirty_gfns; member
/linux-6.1.9/tools/testing/selftests/kvm/lib/
Dkvm_util.c538 if (vcpu->dirty_gfns) { in vm_vcpu_rm()
539 ret = munmap(vcpu->dirty_gfns, vm->dirty_ring_size); in vm_vcpu_rm()
541 vcpu->dirty_gfns = NULL; in vm_vcpu_rm()
1514 if (!vcpu->dirty_gfns) { in vcpu_map_dirty_ring()
1529 vcpu->dirty_gfns = addr; in vcpu_map_dirty_ring()
1533 return vcpu->dirty_gfns; in vcpu_map_dirty_ring()
/linux-6.1.9/tools/testing/selftests/kvm/
Ddirty_log_test.c292 static uint32_t dirty_ring_collect_one(struct kvm_dirty_gfn *dirty_gfns, in dirty_ring_collect_one() argument
300 cur = &dirty_gfns[*fetch_index % test_dirty_ring_count]; in dirty_ring_collect_one()
/linux-6.1.9/tools/testing/selftests/kvm/include/
Dkvm_util_base.h56 struct kvm_dirty_gfn *dirty_gfns; member