Home
last modified time | relevance | path

Searched refs:vcpu_array (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/tools/perf/
H A Dbuiltin-inject.c1050 u32 *vcpu_array; in guest_session__add_attr() local
1058 vcpu_array = calloc(evsel->core.ids, sizeof(*vcpu_array)); in guest_session__add_attr()
1059 if (!vcpu_array) in guest_session__add_attr()
1072 vcpu_array[i] = guest_id->vcpu; in guest_session__add_attr()
1086 u32 vcpu = vcpu_array[i]; in guest_session__add_attr()
1096 free(vcpu_array); in guest_session__add_attr()
/openbmc/linux/include/linux/
H A Dkvm_host.h727 struct xarray vcpu_array; member
927 return xa_load(&kvm->vcpu_array, i); in kvm_get_vcpu()
931 xa_for_each_range(&kvm->vcpu_array, idx, vcpup, 0, \
/openbmc/linux/virt/kvm/
H A Dkvm_main.c531 xa_erase(&kvm->vcpu_array, i); in kvm_destroy_vcpus()
1173 xa_init(&kvm->vcpu_array); in kvm_create_vm()
4009 r = xa_reserve(&kvm->vcpu_array, vcpu->vcpu_idx, GFP_KERNEL_ACCOUNT); in kvm_vm_ioctl_create_vcpu()
4019 if (KVM_BUG_ON(xa_store(&kvm->vcpu_array, vcpu->vcpu_idx, vcpu, 0), kvm)) { in kvm_vm_ioctl_create_vcpu()
4038 xa_release(&kvm->vcpu_array, vcpu->vcpu_idx); in kvm_vm_ioctl_create_vcpu()