Home
last modified time | relevance | path

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

/linux-3.4.99/virt/kvm/
Dkvm_main.c447 struct kvm_memslots *slots = kvm->memslots; in kvm_init_memslots_id()
450 slots->id_to_index[i] = slots->memslots[i].id = i; in kvm_init_memslots_id()
475 kvm->memslots = kzalloc(sizeof(struct kvm_memslots), GFP_KERNEL); in kvm_create_vm()
476 if (!kvm->memslots) in kvm_create_vm()
514 kfree(kvm->memslots); in kvm_create_vm()
553 struct kvm_memslots *slots = kvm->memslots; in kvm_free_physmem()
559 kfree(kvm->memslots); in kvm_free_physmem()
659 sort(slots->memslots, KVM_MEM_SLOTS_NUM, in sort_memslots()
663 slots->id_to_index[slots->memslots[i].id] = i; in sort_memslots()
718 memslot = id_to_memslot(kvm->memslots, mem->slot); in __kvm_set_memory_region()
[all …]
/linux-3.4.99/include/linux/
Dkvm_host.h239 struct kvm_memory_slot memslots[KVM_MEM_SLOTS_NUM]; member
248 struct kvm_memslots *memslots; member
315 for (memslot = &slots->memslots[0]; \
316 memslot < slots->memslots + KVM_MEM_SLOTS_NUM && memslot->npages;\
335 return rcu_dereference_check(kvm->memslots, in kvm_memslots()
346 slot = &slots->memslots[index]; in id_to_memslot()
/linux-3.4.99/arch/x86/kvm/
Dx86.c3096 memslot = id_to_memslot(kvm->memslots, log->slot); in kvm_vm_ioctl_get_dirty_log()
3116 slots = kmemdup(kvm->memslots, sizeof(*kvm->memslots), GFP_KERNEL); in kvm_vm_ioctl_get_dirty_log()
3125 old_slots = kvm->memslots; in kvm_vm_ioctl_get_dirty_log()
3126 rcu_assign_pointer(kvm->memslots, slots); in kvm_vm_ioctl_get_dirty_log()
/linux-3.4.99/arch/powerpc/kvm/
Dbook3s_pr.c1116 memslot = id_to_memslot(kvm->memslots, log->slot); in kvm_vm_ioctl_get_dirty_log()
Dbook3s_hv.c1126 memslot = id_to_memslot(kvm->memslots, log->slot); in kvm_vm_ioctl_get_dirty_log()
/linux-3.4.99/arch/ia64/kvm/
Dkvm-ia64.c1844 memslot = id_to_memslot(kvm->memslots, log->slot); in kvm_vm_ioctl_get_dirty_log()