Home
last modified time | relevance | path

Searched refs:vcpu_idx (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.10/arch/arm64/kvm/
Dtrace_arm.h93 TP_PROTO(unsigned int type, int vcpu_idx, int irq_num, int level),
94 TP_ARGS(type, vcpu_idx, irq_num, level),
98 __field( int, vcpu_idx )
105 __entry->vcpu_idx = vcpu_idx;
114 __entry->type, __entry->vcpu_idx, __entry->irq_num, __entry->level)
Darm.c899 unsigned int irq_type, vcpu_idx, irq_num; in kvm_vm_ioctl_irq_line() local
905 vcpu_idx = (irq >> KVM_ARM_IRQ_VCPU_SHIFT) & KVM_ARM_IRQ_VCPU_MASK; in kvm_vm_ioctl_irq_line()
906vcpu_idx += ((irq >> KVM_ARM_IRQ_VCPU2_SHIFT) & KVM_ARM_IRQ_VCPU2_MASK) * (KVM_ARM_IRQ_VCPU_MASK +… in kvm_vm_ioctl_irq_line()
909 trace_kvm_irq_line(irq_type, vcpu_idx, irq_num, irq_level->level); in kvm_vm_ioctl_irq_line()
916 if (vcpu_idx >= nrcpus) in kvm_vm_ioctl_irq_line()
919 vcpu = kvm_get_vcpu(kvm, vcpu_idx); in kvm_vm_ioctl_irq_line()
931 if (vcpu_idx >= nrcpus) in kvm_vm_ioctl_irq_line()
934 vcpu = kvm_get_vcpu(kvm, vcpu_idx); in kvm_vm_ioctl_irq_line()
/Linux-v5.10/arch/x86/kvm/
Dlapic.c1169 int i, vcpu_idx; in kvm_bitmap_or_dest_vcpus() local
1181 vcpu_idx = dest_vcpu[i]->vcpu->vcpu_idx; in kvm_bitmap_or_dest_vcpus()
1182 __set_bit(vcpu_idx, vcpu_bitmap); in kvm_bitmap_or_dest_vcpus()
Dhyperv.c1224 int vcpu_idx = kvm_vcpu_get_idx(vcpu); in kvm_hv_set_msr() local
1239 if (hv_vcpu->vp_index == vcpu_idx) in kvm_hv_set_msr()
1241 else if (new_vp_index == vcpu_idx) in kvm_hv_set_msr()
Dx86.c9966 if (kvmclock_periodic_sync && vcpu->vcpu_idx == 0) in kvm_arch_vcpu_postcreate()
/Linux-v5.10/include/linux/
Dkvm_host.h269 int vcpu_idx; /* index in kvm->vcpus array */ member
583 return vcpu->vcpu_idx; in kvm_vcpu_get_idx()
/Linux-v5.10/virt/kvm/
Dkvm_main.c3138 vcpu->vcpu_idx = atomic_read(&kvm->online_vcpus); in kvm_vm_ioctl_create_vcpu()
3139 BUG_ON(kvm->vcpus[vcpu->vcpu_idx]); in kvm_vm_ioctl_create_vcpu()
3149 kvm->vcpus[vcpu->vcpu_idx] = vcpu; in kvm_vm_ioctl_create_vcpu()
/Linux-v5.10/arch/s390/kvm/
Dkvm-s390.c2897 unsigned int vcpu_idx; in sca_switch_to_extended() local
2915 kvm_for_each_vcpu(vcpu_idx, vcpu, kvm) { in sca_switch_to_extended()