Home
last modified time | relevance | path

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

/openbmc/linux/virt/kvm/
H A 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()
/openbmc/linux/include/linux/
H A Dkvm_dirty_ring.h26 struct kvm_dirty_gfn *dirty_gfns; member
/openbmc/linux/tools/testing/selftests/kvm/lib/
H A 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()
/openbmc/linux/tools/testing/selftests/kvm/
H A 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()
/openbmc/linux/tools/testing/selftests/kvm/include/
H A Dkvm_util_base.h71 struct kvm_dirty_gfn *dirty_gfns; member
/openbmc/qemu/accel/kvm/
H A Dkvm-all.c817 struct kvm_dirty_gfn *dirty_gfns = cpu->kvm_dirty_gfns, *cur; in kvm_dirty_ring_reap_one() local
830 assert(dirty_gfns && ring_size); in kvm_dirty_ring_reap_one()
834 cur = &dirty_gfns[fetch % ring_size]; in kvm_dirty_ring_reap_one()