Home
last modified time | relevance | path

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

/Linux-v5.4/include/linux/
Dkvm_host.h436 struct kvm_memory_slot memslots[KVM_MEM_SLOTS_NUM]; member
447 struct kvm_memslots __rcu *memslots[KVM_ADDRESS_SPACE_NUM]; member
584 for (memslot = &slots->memslots[0]; \
585 memslot < slots->memslots + KVM_MEM_SLOTS_NUM && memslot->npages;\
629 return srcu_dereference_check(kvm->memslots[as_id], &kvm->srcu, in __kvm_memslots()
652 slot = &slots->memslots[index]; in id_to_memslot()
1010 struct kvm_memory_slot *memslots = slots->memslots; in search_memslots() local
1012 if (gfn >= memslots[slot].base_gfn && in search_memslots()
1013 gfn < memslots[slot].base_gfn + memslots[slot].npages) in search_memslots()
1014 return &memslots[slot]; in search_memslots()
[all …]
/Linux-v5.4/arch/s390/kvm/
Dkvm-s390.c1020 ms = slots->memslots + slotnr; in kvm_s390_vm_start_migration()
1920 struct kvm_memory_slot *memslots = slots->memslots; in gfn_to_memslot_approx() local
1922 if (gfn >= memslots[slot].base_gfn && in gfn_to_memslot_approx()
1923 gfn < memslots[slot].base_gfn + memslots[slot].npages) in gfn_to_memslot_approx()
1929 if (gfn >= memslots[slot].base_gfn) in gfn_to_memslot_approx()
1935 if (gfn >= memslots[start].base_gfn && in gfn_to_memslot_approx()
1936 gfn < memslots[start].base_gfn + memslots[start].npages) { in gfn_to_memslot_approx()
1970 struct kvm_memory_slot *ms = slots->memslots + slotidx; in kvm_s390_next_dirty_cmma()
1979 ms = slots->memslots + slotidx; in kvm_s390_next_dirty_cmma()
1985 ms = slots->memslots + slotidx; in kvm_s390_next_dirty_cmma()
[all …]
/Linux-v5.4/Documentation/virt/kvm/
Dlocking.txt197 Protects: - kvm->memslots
199 Comment: The srcu read lock must be held while accessing memslots (e.g.
/Linux-v5.4/arch/powerpc/include/asm/
Dkvm_book3s_64.h538 return rcu_dereference_raw_check(kvm->memslots[0]); in kvm_memslots_raw()
/Linux-v5.4/virt/kvm/
Dkvm_main.c572 slots->id_to_index[i] = slots->memslots[i].id = i; in kvm_alloc_memslots()
712 rcu_assign_pointer(kvm->memslots[i], slots); in kvm_create_vm()
879 struct kvm_memory_slot *mslots = slots->memslots; in update_memslots()
950 rcu_assign_pointer(kvm->memslots[as_id], slots); in install_new_memslots()