/linux-master/tools/testing/selftests/kvm/lib/x86_64/ |
H A D | memstress.c | 18 void memstress_l2_guest_code(uint64_t vcpu_id) argument 20 memstress_guest_code(vcpu_id); 32 static void memstress_l1_guest_code(struct vmx_pages *vmx, uint64_t vcpu_id) argument 44 *rsp = vcpu_id; 85 int vcpu_id; local 90 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { 93 if (vcpu_id == 0) { 107 vcpu_regs_get(vcpus[vcpu_id], [all...] |
/linux-master/arch/arm64/kvm/vgic/ |
H A D | trace.h | 11 TP_PROTO(unsigned long vcpu_id, __u32 irq, bool level), 12 TP_ARGS(vcpu_id, irq, level), 15 __field( unsigned long, vcpu_id ) 21 __entry->vcpu_id = vcpu_id; 27 __entry->vcpu_id, __entry->irq, __entry->level)
|
H A D | vgic-debug.c | 22 * When vcpu_id < nr_cpus we print the vcpu info until vcpu_id == nr_cpus and 30 int vcpu_id; member in struct:vgic_state_iter 45 ++iter->vcpu_id < iter->nr_cpus) 78 iter->vcpu_id == iter->nr_cpus && 246 if (iter->vcpu_id < iter->nr_cpus) 247 vcpu = kvm_get_vcpu(kvm, iter->vcpu_id);
|
/linux-master/arch/x86/kvm/ |
H A D | trace.h | 22 __field( unsigned int, vcpu_id ) 28 __entry->vcpu_id = vcpu->vcpu_id; 33 TP_printk("vcpu %u, rip 0x%lx%s", __entry->vcpu_id, __entry->rip, 310 __field( unsigned int, vcpu_id ) \ 316 __entry->vcpu_id = vcpu->vcpu_id; \ 327 __entry->vcpu_id, \ 407 __field( unsigned int, vcpu_id ) 414 __entry->vcpu_id [all...] |
H A D | ioapic.c | 123 old_val = test_bit(vcpu->vcpu_id, dest_map->map); 129 __set_bit(vcpu->vcpu_id, dest_map->map); 130 dest_map->vectors[vcpu->vcpu_id] = e->fields.vector; 133 __clear_bit(vcpu->vcpu_id, dest_map->map); 167 if (test_bit(vcpu->vcpu_id, dest_map->map) && 168 (vector == dest_map->vectors[vcpu->vcpu_id]) && 169 (test_and_clear_bit(vcpu->vcpu_id, 288 if (test_bit(vcpu->vcpu_id, dest_map->map)) 289 __set_bit(dest_map->vectors[vcpu->vcpu_id],
|
H A D | xen.c | 113 e.vcpu_id = vcpu->vcpu_id; 135 e.vcpu_id = vcpu->vcpu_id; 574 irq.dest_id = v->vcpu_id; 1058 if (data->u.vcpu_id >= KVM_MAX_VCPUS) 1061 vcpu->arch.xen.vcpu_id = data->u.vcpu_id; 1180 data->u.vcpu_id = vcpu->arch.xen.vcpu_id; 1550 kvm_xen_hcall_vcpu_op(struct kvm_vcpu *vcpu, bool longmode, int cmd, int vcpu_id, u64 param, u64 *r) argument [all...] |
/linux-master/arch/powerpc/kvm/ |
H A D | trace_hv.h | 246 __field(int, vcpu_id) 253 __entry->vcpu_id = vcpu->vcpu_id; 260 __entry->vcpu_id, 270 __field(int, vcpu_id) 278 __entry->vcpu_id = vcpu->vcpu_id; 286 __entry->vcpu_id, 300 __field(int, vcpu_id) 311 __entry->vcpu_id [all...] |
H A D | guest-state-buffer.c | 21 * @vcpu_id: vcpu_id 27 unsigned long vcpu_id, gfp_t flags) 42 gsb->vcpu_id = vcpu_id; 592 rc = plpar_guest_set_state(hflags, gsb->guest_id, gsb->vcpu_id, 617 rc = plpar_guest_get_state(hflags, gsb->guest_id, gsb->vcpu_id, 26 kvmppc_gsb_new(size_t size, unsigned long guest_id, unsigned long vcpu_id, gfp_t flags) argument
|
H A D | trace.h | 110 __entry->cpu_nr = vcpu->vcpu_id;
|
/linux-master/include/xen/interface/ |
H A D | xenpmu.h | 73 uint32_t vcpu_id; member in struct:xen_pmu_data 77 * guests set to vcpu_id;
|
/linux-master/arch/mips/kvm/ |
H A D | stats.c | 54 kvm_info("\nKVM VCPU[%d] COP0 Access Profile:\n", vcpu->vcpu_id);
|
/linux-master/samples/acrn/ |
H A D | vm-sample.c | 46 int vcpu_id, ret; local 82 regs.vcpu_id = 0; 108 for (vcpu_id = 0; vcpu_id < vcpu_num; vcpu_id++) { 109 io_req = &io_req_buf[vcpu_id]; 121 notify.vcpu = vcpu_id;
|
/linux-master/include/trace/events/ |
H A D | kvm.h | 348 TP_PROTO(bool grow, unsigned int vcpu_id, unsigned int new, 350 TP_ARGS(grow, vcpu_id, new, old), 354 __field(unsigned int, vcpu_id) 361 __entry->vcpu_id = vcpu_id; 367 __entry->vcpu_id, 373 #define trace_kvm_halt_poll_ns_grow(vcpu_id, new, old) \ 374 trace_kvm_halt_poll_ns(true, vcpu_id, new, old) 375 #define trace_kvm_halt_poll_ns_shrink(vcpu_id, new, old) \ 376 trace_kvm_halt_poll_ns(false, vcpu_id, ne [all...] |
/linux-master/drivers/virt/nitro_enclaves/ |
H A D | ne_misc_dev.c | 519 * @vcpu_id: vCPU id part of the provided core. 528 int core_id, u32 vcpu_id) 532 if (core_id < 0 && vcpu_id == 0) { 541 "CPU %d is not in NE CPU pool\n", vcpu_id); 566 * @vcpu_id: vCPU to get from the NE CPU pool. 573 static int ne_get_cpu_from_cpu_pool(struct ne_enclave *ne_enclave, u32 *vcpu_id) argument 588 *vcpu_id = cpu; 601 rc = ne_set_enclave_threads_per_core(ne_enclave, core_id, *vcpu_id); 605 *vcpu_id = cpumask_any(ne_enclave->threads_per_core[core_id]); 618 * @vcpu_id 527 ne_set_enclave_threads_per_core(struct ne_enclave *ne_enclave, int core_id, u32 vcpu_id) argument 626 ne_get_vcpu_core_from_cpu_pool(u32 vcpu_id) argument 652 ne_check_cpu_in_cpu_pool(struct ne_enclave *ne_enclave, u32 vcpu_id) argument 706 ne_add_vcpu_ioctl(struct ne_enclave *ne_enclave, u32 vcpu_id) argument 1152 u32 vcpu_id = 0; local [all...] |
H A D | ne_pci_dev.h | 207 * @vcpu_id: vCPU ID of the CPU to add to the enclave. 212 u32 vcpu_id; member in struct:slot_add_vcpu_req
|
/linux-master/arch/arm64/kvm/ |
H A D | trace_arm.h | 207 TP_PROTO(unsigned long vcpu_id, __u32 irq, int level), 208 TP_ARGS(vcpu_id, irq, level), 211 __field( unsigned long, vcpu_id ) 217 __entry->vcpu_id = vcpu_id; 223 __entry->vcpu_id, __entry->irq, __entry->level) 227 TP_PROTO(unsigned long vcpu_id, struct timer_map *map), 228 TP_ARGS(vcpu_id, map), 231 __field( unsigned long, vcpu_id ) 239 __entry->vcpu_id [all...] |
/linux-master/arch/powerpc/include/asm/ |
H A D | plpar_wrappers.h | 377 unsigned long vcpu_id) 382 rc = plpar_hcall_norets(H_GUEST_CREATE_VCPU, 0, guest_id, vcpu_id); 399 unsigned long vcpu_id, 409 vcpu_id, data_buffer, data_size); 436 unsigned long vcpu_id, 446 vcpu_id, data_buffer, data_size); 472 unsigned long vcpu_id, int *trap, 478 rc = plpar_hcall(H_GUEST_RUN_VCPU, retbuf, flags, guest_id, vcpu_id); 619 unsigned long vcpu_id) 626 unsigned long vcpu_id, 375 plpar_guest_create_vcpu(unsigned long flags, unsigned long guest_id, unsigned long vcpu_id) argument 397 plpar_guest_set_state(unsigned long flags, unsigned long guest_id, unsigned long vcpu_id, unsigned long data_buffer, unsigned long data_size, unsigned long *failed_index) argument 434 plpar_guest_get_state(unsigned long flags, unsigned long guest_id, unsigned long vcpu_id, unsigned long data_buffer, unsigned long data_size, unsigned long *failed_index) argument 471 plpar_guest_run_vcpu(unsigned long flags, unsigned long guest_id, unsigned long vcpu_id, int *trap, unsigned long *failed_index) argument 617 plpar_guest_create_vcpu(unsigned long flags, unsigned long guest_id, unsigned long vcpu_id) argument 624 plpar_guest_get_state(unsigned long flags, unsigned long guest_id, unsigned long vcpu_id, unsigned long data_buffer, unsigned long data_size, unsigned long *failed_index) argument 634 plpar_guest_set_state(unsigned long flags, unsigned long guest_id, unsigned long vcpu_id, unsigned long data_buffer, unsigned long data_size, unsigned long *failed_index) argument 644 plpar_guest_run_vcpu(unsigned long flags, unsigned long guest_id, unsigned long vcpu_id, int *trap, unsigned long *failed_index) argument [all...] |
/linux-master/tools/testing/selftests/kvm/x86_64/ |
H A D | tsc_scaling_sync.c | 45 unsigned long vcpu_id = (unsigned long)_cpu_nr; local 53 vcpu = vm_vcpu_add(vm, vcpu_id, guest_code);
|
H A D | hyperv_ipi.c | 58 u32 vcpu_id; local 63 vcpu_id = rdmsr(HV_X64_MSR_VP_INDEX); 66 ipis_rcvd[vcpu_id] = (u64)-1; 74 u32 vcpu_id = rdmsr(HV_X64_MSR_VP_INDEX); local 76 ipis_rcvd[vcpu_id]++; 215 TEST_ASSERT(!r, "pthread_setcanceltype failed on vcpu_id=%u with errno=%d", 231 TEST_ASSERT(!r, "pthread_cancel on vcpu_id=%d failed with errno=%d", 235 TEST_ASSERT(!r, "pthread_join on vcpu_id=%d failed with errno=%d",
|
/linux-master/arch/s390/kvm/ |
H A D | sigp.c | 39 VCPU_EVENT(vcpu, 4, "sensed status of cpu %x rc %x", dst_vcpu->vcpu_id, 49 .u.emerg.code = vcpu->vcpu_id, 56 dst_vcpu->vcpu_id); 98 .u.extcall.code = vcpu->vcpu_id, 109 dst_vcpu->vcpu_id); 127 dst_vcpu->vcpu_id); 146 dst_vcpu->vcpu_id); 235 dst_vcpu->vcpu_id, rc); 370 order_code, dst_vcpu->vcpu_id);
|
/linux-master/arch/x86/kvm/svm/ |
H A D | avic.c | 49 #define __AVIC_GATAG(vm_id, vcpu_id) ((((vm_id) & AVIC_VM_ID_MASK) << AVIC_VM_ID_SHIFT) | \ 50 ((vcpu_id) & AVIC_VCPU_ID_MASK)) 51 #define AVIC_GATAG(vm_id, vcpu_id) \ 53 u32 ga_tag = __AVIC_GATAG(vm_id, vcpu_id); \ 55 WARN_ON_ONCE(AVIC_GATAG_TO_VCPUID(ga_tag) != (vcpu_id)); \ 149 u32 vcpu_id = AVIC_GATAG_TO_VCPUID(ga_tag); local 151 pr_debug("SVM: %s: vm_id=%#x, vcpu_id=%#x\n", __func__, vm_id, vcpu_id); 152 trace_kvm_avic_ga_log(vm_id, vcpu_id); 158 vcpu = kvm_get_vcpu_by_id(&kvm_svm->kvm, vcpu_id); 806 u32 vcpu_id = AVIC_GATAG_TO_VCPUID(pi->prev_ga_tag); local [all...] |
/linux-master/tools/testing/selftests/kvm/include/ |
H A D | memstress.h | 70 void memstress_guest_code(uint32_t vcpu_id);
|
/linux-master/arch/riscv/kvm/ |
H A D | vcpu_sbi_replace.c | 63 if (tmp->vcpu_id < hbase) 65 if (!(hmask & (1UL << (tmp->vcpu_id - hbase))))
|
/linux-master/tools/testing/selftests/kvm/lib/aarch64/ |
H A D | processor.c | 373 static struct kvm_vcpu *__aarch64_vcpu_add(struct kvm_vm *vm, uint32_t vcpu_id, argument 378 struct kvm_vcpu *vcpu = __vm_vcpu_add(vm, vcpu_id); 392 struct kvm_vcpu *aarch64_vcpu_add(struct kvm_vm *vm, uint32_t vcpu_id, argument 395 struct kvm_vcpu *vcpu = __aarch64_vcpu_add(vm, vcpu_id, init); 402 struct kvm_vcpu *vm_arch_vcpu_add(struct kvm_vm *vm, uint32_t vcpu_id) argument 404 return __aarch64_vcpu_add(vm, vcpu_id, NULL);
|
/linux-master/arch/x86/kvm/mmu/ |
H A D | mmutrace.h | 261 __field(int, vcpu_id) 271 __entry->vcpu_id = vcpu->vcpu_id; 281 " new %llx spurious %d fixed %d", __entry->vcpu_id,
|