Lines Matching refs:ms
1002 struct kvm_memory_slot *ms; in kvm_s390_vm_start_migration() local
1020 ms = slots->memslots + slotnr; in kvm_s390_vm_start_migration()
1021 if (!ms->dirty_bitmap) in kvm_s390_vm_start_migration()
1029 memset(kvm_second_dirty_bitmap(ms), 0xff, kvm_dirty_bitmap_bytes(ms)); in kvm_s390_vm_start_migration()
1030 ram_pages += ms->npages; in kvm_s390_vm_start_migration()
1973 struct kvm_memory_slot *ms = slots->memslots + slotidx; in kvm_s390_next_dirty_cmma() local
1974 unsigned long ofs = cur_gfn - ms->base_gfn; in kvm_s390_next_dirty_cmma()
1976 if (ms->base_gfn + ms->npages <= cur_gfn) { in kvm_s390_next_dirty_cmma()
1982 ms = slots->memslots + slotidx; in kvm_s390_next_dirty_cmma()
1986 if (cur_gfn < ms->base_gfn) in kvm_s390_next_dirty_cmma()
1989 ofs = find_next_bit(kvm_second_dirty_bitmap(ms), ms->npages, ofs); in kvm_s390_next_dirty_cmma()
1990 while ((slotidx > 0) && (ofs >= ms->npages)) { in kvm_s390_next_dirty_cmma()
1992 ms = slots->memslots + slotidx; in kvm_s390_next_dirty_cmma()
1993 ofs = find_next_bit(kvm_second_dirty_bitmap(ms), ms->npages, 0); in kvm_s390_next_dirty_cmma()
1995 return ms->base_gfn + ofs; in kvm_s390_next_dirty_cmma()
2003 struct kvm_memory_slot *ms; in kvm_s390_get_cmma() local
2006 ms = gfn_to_memslot(kvm, cur_gfn); in kvm_s390_get_cmma()
2009 if (!ms) in kvm_s390_get_cmma()
2019 if (test_and_clear_bit(cur_gfn - ms->base_gfn, kvm_second_dirty_bitmap(ms))) in kvm_s390_get_cmma()
2037 if (cur_gfn - ms->base_gfn >= ms->npages) { in kvm_s390_get_cmma()
2038 ms = gfn_to_memslot(kvm, cur_gfn); in kvm_s390_get_cmma()
2039 if (!ms) in kvm_s390_get_cmma()