Lines Matching refs:dirty_bitmap

980 	if (!memslot->dirty_bitmap)  in kvm_destroy_dirty_bitmap()
983 kvfree(memslot->dirty_bitmap); in kvm_destroy_dirty_bitmap()
984 memslot->dirty_bitmap = NULL; in kvm_destroy_dirty_bitmap()
1408 memslot->dirty_bitmap = __vcalloc(2, dirty_bytes, GFP_KERNEL_ACCOUNT); in kvm_alloc_dirty_bitmap()
1409 if (!memslot->dirty_bitmap) in kvm_alloc_dirty_bitmap()
1636 new->dirty_bitmap = NULL; in kvm_prepare_memory_region()
1637 else if (old && old->dirty_bitmap) in kvm_prepare_memory_region()
1638 new->dirty_bitmap = old->dirty_bitmap; in kvm_prepare_memory_region()
1645 bitmap_set(new->dirty_bitmap, 0, new->npages); in kvm_prepare_memory_region()
1652 if (r && new && new->dirty_bitmap && (!old || !old->dirty_bitmap)) in kvm_prepare_memory_region()
1696 if (old->dirty_bitmap && !new->dirty_bitmap) in kvm_commit_memory_region()
1737 dest->dirty_bitmap = src->dirty_bitmap; in kvm_copy_memslot()
2104 if (!(*memslot) || !(*memslot)->dirty_bitmap) in kvm_get_dirty_log()
2112 any = (*memslot)->dirty_bitmap[i]; in kvm_get_dirty_log()
2114 if (copy_to_user(log->dirty_bitmap, (*memslot)->dirty_bitmap, n)) in kvm_get_dirty_log()
2151 unsigned long *dirty_bitmap; in kvm_get_dirty_log_protect() local
2166 if (!memslot || !memslot->dirty_bitmap) in kvm_get_dirty_log_protect()
2169 dirty_bitmap = memslot->dirty_bitmap; in kvm_get_dirty_log_protect()
2184 dirty_bitmap_buffer = dirty_bitmap; in kvm_get_dirty_log_protect()
2194 if (!dirty_bitmap[i]) in kvm_get_dirty_log_protect()
2198 mask = xchg(&dirty_bitmap[i], 0); in kvm_get_dirty_log_protect()
2211 if (copy_to_user(log->dirty_bitmap, dirty_bitmap_buffer, n)) in kvm_get_dirty_log_protect()
2263 unsigned long *dirty_bitmap; in kvm_clear_dirty_log_protect() local
2281 if (!memslot || !memslot->dirty_bitmap) in kvm_clear_dirty_log_protect()
2284 dirty_bitmap = memslot->dirty_bitmap; in kvm_clear_dirty_log_protect()
2297 if (copy_from_user(dirty_bitmap_buffer, log->dirty_bitmap, n)) in kvm_clear_dirty_log_protect()
2305 atomic_long_t *p = (atomic_long_t *) &dirty_bitmap[i]; in kvm_clear_dirty_log_protect()
3369 else if (memslot->dirty_bitmap) in mark_page_dirty_in_slot()
3370 set_bit_le(rel_gfn, memslot->dirty_bitmap); in mark_page_dirty_in_slot()
4989 compat_uptr_t dirty_bitmap; /* one bit per page */ member
4999 compat_uptr_t dirty_bitmap; /* one bit per page */ member
5036 log.dirty_bitmap = compat_ptr(compat_log.dirty_bitmap); in kvm_vm_compat_ioctl()
5052 log.dirty_bitmap = compat_ptr(compat_log.dirty_bitmap); in kvm_vm_compat_ioctl()