/linux-6.1.9/virt/kvm/ |
D | kvm_main.c | 959 if (!memslot->dirty_bitmap) in kvm_destroy_dirty_bitmap() 962 kvfree(memslot->dirty_bitmap); in kvm_destroy_dirty_bitmap() 963 memslot->dirty_bitmap = NULL; in kvm_destroy_dirty_bitmap() 1387 memslot->dirty_bitmap = __vcalloc(2, dirty_bytes, GFP_KERNEL_ACCOUNT); in kvm_alloc_dirty_bitmap() 1388 if (!memslot->dirty_bitmap) in kvm_alloc_dirty_bitmap() 1615 new->dirty_bitmap = NULL; in kvm_prepare_memory_region() 1616 else if (old && old->dirty_bitmap) in kvm_prepare_memory_region() 1617 new->dirty_bitmap = old->dirty_bitmap; in kvm_prepare_memory_region() 1624 bitmap_set(new->dirty_bitmap, 0, new->npages); in kvm_prepare_memory_region() 1631 if (r && new && new->dirty_bitmap && (!old || !old->dirty_bitmap)) in kvm_prepare_memory_region() [all …]
|
/linux-6.1.9/fs/f2fs/ |
D | gc.c | 251 p->dirty_bitmap = dirty_i->dirty_segmap[type]; in select_policy() 256 p->dirty_bitmap = dirty_i->dirty_segmap[type]; in select_policy() 263 p->dirty_bitmap = dirty_i->dirty_secmap; in select_policy() 264 p->max_search = count_bits(p->dirty_bitmap, in select_policy() 267 p->dirty_bitmap = dirty_i->dirty_segmap[DIRTY]; in select_policy() 785 unsigned long cost, *dirty_bitmap; in get_victim_by_default() local 788 dirty_bitmap = p.dirty_bitmap; in get_victim_by_default() 789 unit_no = find_next_bit(dirty_bitmap, in get_victim_by_default()
|
D | segment.h | 189 unsigned long *dirty_bitmap; /* dirty segment/section bitmap */ member
|
/linux-6.1.9/arch/s390/include/asm/ |
D | gmap.h | 147 void gmap_sync_dirty_log_pmd(struct gmap *gmap, unsigned long dirty_bitmap[4],
|
/linux-6.1.9/drivers/md/ |
D | dm-writecache.c | 204 unsigned long *dirty_bitmap; member 461 memset(wc->dirty_bitmap, -1, wc->dirty_bitmap_size); in writecache_flush_all_metadata() 468 wc->dirty_bitmap); in writecache_flush_region() 510 i = find_next_bit(wc->dirty_bitmap, bitmap_bits, i); in ssd_commit_flushed() 513 j = find_next_zero_bit(wc->dirty_bitmap, bitmap_bits, i); in ssd_commit_flushed() 546 memset(wc->dirty_bitmap, 0, wc->dirty_bitmap_size); in ssd_commit_flushed() 2205 vfree(wc->dirty_bitmap); in writecache_dtr() 2543 wc->dirty_bitmap = vzalloc(wc->dirty_bitmap_size); in writecache_ctr() 2544 if (!wc->dirty_bitmap) { in writecache_ctr()
|
/linux-6.1.9/tools/testing/selftests/kvm/include/ |
D | kvm_util_base.h | 292 struct kvm_dirty_log args = { .dirty_bitmap = log, .slot = slot }; in kvm_vm_get_dirty_log() 301 .dirty_bitmap = log, in kvm_vm_clear_dirty_log()
|
/linux-6.1.9/arch/powerpc/kvm/ |
D | book3s_hv_rm_mmu.c | 101 if (!psize || !memslot->dirty_bitmap) in kvmppc_update_dirty_map() 105 set_dirty_bits_atomic(memslot->dirty_bitmap, gfn, npages); in kvmppc_update_dirty_map() 119 if (memslot && memslot->dirty_bitmap) in kvmppc_set_dirty_from_hpte()
|
D | book3s_64_mmu_hv.c | 797 if ((rcbits & HPTE_R_C) && memslot->dirty_bitmap) in kvmppc_unmap_hpte() 1189 if (memslot && memslot->dirty_bitmap) in kvmppc_unpin_guest_page() 1190 set_bit_le(gfn - memslot->base_gfn, memslot->dirty_bitmap); in kvmppc_unpin_guest_page()
|
D | book3s_64_mmu_radix.c | 452 if ((old & _PAGE_DIRTY) && memslot->dirty_bitmap) in kvmppc_unmap_pte()
|
D | book3s_hv.c | 4962 if (!memslot || !memslot->dirty_bitmap) in kvm_vm_ioctl_get_dirty_log_hv() 4970 buf = memslot->dirty_bitmap + n / sizeof(long); in kvm_vm_ioctl_get_dirty_log_hv() 4986 p = memslot->dirty_bitmap; in kvm_vm_ioctl_get_dirty_log_hv() 5000 if (copy_to_user(log->dirty_bitmap, buf, n)) in kvm_vm_ioctl_get_dirty_log_hv()
|
D | book3s_pr.c | 1893 memset(memslot->dirty_bitmap, 0, n); in kvm_vm_ioctl_get_dirty_log_pr()
|
/linux-6.1.9/include/linux/ |
D | kvm_host.h | 572 unsigned long *dirty_bitmap; member 594 return memslot->dirty_bitmap + len / sizeof(*memslot->dirty_bitmap); in kvm_second_dirty_bitmap()
|
/linux-6.1.9/tools/include/uapi/linux/ |
D | kvm.h | 619 void __user *dirty_bitmap; /* one bit per page */ member 630 void __user *dirty_bitmap; /* one bit per page */ member
|
/linux-6.1.9/include/uapi/linux/ |
D | kvm.h | 619 void __user *dirty_bitmap; /* one bit per page */ member 630 void __user *dirty_bitmap; /* one bit per page */ member
|
/linux-6.1.9/arch/riscv/kvm/ |
D | mmu.c | 629 bool logging = (memslot->dirty_bitmap && in kvm_riscv_gstage_map()
|
/linux-6.1.9/arch/arm64/kvm/ |
D | mmu.c | 79 return memslot->dirty_bitmap && !(memslot->flags & KVM_MEM_READONLY); in memslot_is_logging()
|
/linux-6.1.9/fs/btrfs/ |
D | disk-io.c | 877 ASSERT(subpage->dirty_bitmap); in btree_dirty_folio() 884 if (!(tmp & subpage->dirty_bitmap)) { in btree_dirty_folio()
|
/linux-6.1.9/arch/s390/kvm/ |
D | kvm-s390.c | 714 memset(memslot->dirty_bitmap, 0, n); in kvm_vm_ioctl_get_dirty_log() 1144 if (!ms->dirty_bitmap) in kvm_s390_vm_start_migration()
|
/linux-6.1.9/Documentation/virt/kvm/ |
D | api.rst | 350 void __user *dirty_bitmap; /* one bit per page */ 4887 void __user *dirty_bitmap; /* one bit per page */ 4893 the bitmap that is passed in struct kvm_clear_dirty_log's dirty_bitmap
|