Home
last modified time | relevance | path

Searched refs:vcpu_id (Results 1 – 25 of 98) sorted by relevance

1234

/openbmc/linux/arch/x86/kvm/
H A Dtrace.h27 __entry->vcpu_id = vcpu->vcpu_id;
1062 __entry->vcpu_id = vcpu_id;
1093 __entry->vcpu_id = vcpu_id;
1123 __entry->vcpu_id = vcpu_id;
1145 __entry->vcpu_id = vcpu_id;
1171 __entry->vcpu_id = vcpu_id;
1193 __entry->vcpu_id = vcpu_id;
1218 __entry->vcpu_id = vcpu_id;
1244 __entry->vcpu_id = vcpu_id;
1270 __entry->vcpu_id = vcpu_id;
[all …]
H A Dioapic.c123 old_val = test_bit(vcpu->vcpu_id, dest_map->map); in __rtc_irq_eoi_tracking_restore_one()
129 __set_bit(vcpu->vcpu_id, dest_map->map); in __rtc_irq_eoi_tracking_restore_one()
130 dest_map->vectors[vcpu->vcpu_id] = e->fields.vector; in __rtc_irq_eoi_tracking_restore_one()
133 __clear_bit(vcpu->vcpu_id, dest_map->map); in __rtc_irq_eoi_tracking_restore_one()
167 if (test_bit(vcpu->vcpu_id, dest_map->map) && in rtc_irq_eoi()
168 (vector == dest_map->vectors[vcpu->vcpu_id]) && in rtc_irq_eoi()
169 (test_and_clear_bit(vcpu->vcpu_id, in rtc_irq_eoi()
288 if (test_bit(vcpu->vcpu_id, dest_map->map)) in kvm_ioapic_scan_entry()
289 __set_bit(dest_map->vectors[vcpu->vcpu_id], in kvm_ioapic_scan_entry()
H A Dxen.c121 e.vcpu_id = vcpu->vcpu_id; in kvm_xen_inject_timer_irqs()
479 irq.dest_id = v->vcpu_id; in kvm_xen_inject_vcpu_vector()
901 if (data->u.vcpu_id >= KVM_MAX_VCPUS) in kvm_xen_vcpu_set_attr()
904 vcpu->arch.xen.vcpu_id = data->u.vcpu_id; in kvm_xen_vcpu_set_attr()
1017 data->u.vcpu_id = vcpu->arch.xen.vcpu_id; in kvm_xen_vcpu_get_attr()
1339 int vcpu_id, u64 param, u64 *r) in kvm_xen_hcall_vcpu_op() argument
1350 if (vcpu->arch.xen.vcpu_id != vcpu_id) { in kvm_xen_hcall_vcpu_op()
1388 if (vcpu->arch.xen.vcpu_id != vcpu_id) { in kvm_xen_hcall_vcpu_op()
1566 vcpu = kvm_get_vcpu_by_id(kvm, xe->vcpu_id); in kvm_xen_set_evtchn_fast()
1785 e.vcpu_id = uxe->vcpu; in kvm_xen_hvm_evtchn_send()
[all …]
/openbmc/linux/tools/testing/selftests/kvm/lib/x86_64/
H A Dmemstress.c18 void memstress_l2_guest_code(uint64_t vcpu_id) in memstress_l2_guest_code() argument
20 memstress_guest_code(vcpu_id); in memstress_l2_guest_code()
32 static void memstress_l1_guest_code(struct vmx_pages *vmx, uint64_t vcpu_id) in memstress_l1_guest_code() argument
44 *rsp = vcpu_id; in memstress_l1_guest_code()
85 int vcpu_id; in memstress_setup_nested() local
90 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in memstress_setup_nested()
93 if (vcpu_id == 0) { in memstress_setup_nested()
107 vcpu_regs_get(vcpus[vcpu_id], &regs); in memstress_setup_nested()
109 vcpu_regs_set(vcpus[vcpu_id], &regs); in memstress_setup_nested()
110 vcpu_args_set(vcpus[vcpu_id], 2, vmx_gva, vcpu_id); in memstress_setup_nested()
/openbmc/linux/arch/powerpc/kvm/
H A Dtrace_hv.h253 __entry->vcpu_id = vcpu->vcpu_id;
260 __entry->vcpu_id,
278 __entry->vcpu_id = vcpu->vcpu_id;
286 __entry->vcpu_id,
311 __entry->vcpu_id = vcpu->vcpu_id;
322 __entry->vcpu_id,
341 __entry->vcpu_id = vcpu->vcpu_id;
367 __entry->vcpu_id = vcpu->vcpu_id;
393 __entry->vcpu_id = vcpu->vcpu_id;
487 __entry->vcpu_id = vcpu->vcpu_id;
[all …]
/openbmc/linux/arch/arm64/kvm/vgic/
H A Dtrace.h11 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 Dvgic-debug.c30 int vcpu_id; member
45 ++iter->vcpu_id < iter->nr_cpus) in iter_next()
78 iter->vcpu_id == iter->nr_cpus && in end_of_vgic()
169 id = vcpu->vcpu_id; in print_header()
215 (irq->target_vcpu) ? irq->target_vcpu->vcpu_id : -1, in print_irq_state()
227 (irq->vcpu) ? irq->vcpu->vcpu_id : -1); in print_irq_state()
246 if (iter->vcpu_id < iter->nr_cpus) in vgic_debug_show()
247 vcpu = kvm_get_vcpu(kvm, iter->vcpu_id); in vgic_debug_show()
/openbmc/linux/samples/acrn/
H A Dvm-sample.c46 int vcpu_id, ret; in main() local
82 regs.vcpu_id = 0; in main()
108 for (vcpu_id = 0; vcpu_id < vcpu_num; vcpu_id++) { in main()
109 io_req = &io_req_buf[vcpu_id]; in main()
121 notify.vcpu = vcpu_id; in main()
/openbmc/linux/drivers/virt/nitro_enclaves/
H A Dne_misc_dev.c528 int core_id, u32 vcpu_id) in ne_set_enclave_threads_per_core() argument
532 if (core_id < 0 && vcpu_id == 0) { in ne_set_enclave_threads_per_core()
588 *vcpu_id = cpu; in ne_get_cpu_from_cpu_pool()
658 if (ne_donated_cpu(ne_enclave, vcpu_id)) { in ne_check_cpu_in_cpu_pool()
660 "CPU %d already used\n", vcpu_id); in ne_check_cpu_in_cpu_pool()
717 slot_add_vcpu_req.vcpu_id = vcpu_id; in ne_add_vcpu_ioctl()
1152 u32 vcpu_id = 0; in ne_enclave_ioctl() local
1154 if (copy_from_user(&vcpu_id, (void __user *)arg, sizeof(vcpu_id))) in ne_enclave_ioctl()
1178 if (!vcpu_id) { in ne_enclave_ioctl()
1196 vcpu_id, rc); in ne_enclave_ioctl()
[all …]
/openbmc/linux/include/trace/events/
H A Dkvm.h350 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) \ argument
374 trace_kvm_halt_poll_ns(true, vcpu_id, new, old)
375 #define trace_kvm_halt_poll_ns_shrink(vcpu_id, new, old) \ argument
376 trace_kvm_halt_poll_ns(false, vcpu_id, new, old)
431 __field(int, vcpu_id)
435 __entry->vcpu_id = vcpu->vcpu_id;
[all …]
/openbmc/linux/arch/arm64/kvm/
H A Dtrace_arm.h182 TP_PROTO(unsigned long vcpu_id, __u32 irq, int level),
183 TP_ARGS(vcpu_id, irq, level),
186 __field( unsigned long, vcpu_id )
192 __entry->vcpu_id = vcpu_id;
198 __entry->vcpu_id, __entry->irq, __entry->level)
202 TP_PROTO(unsigned long vcpu_id, struct timer_map *map),
203 TP_ARGS(vcpu_id, map),
206 __field( unsigned long, vcpu_id )
214 __entry->vcpu_id = vcpu_id;
225 __entry->vcpu_id,
/openbmc/qemu/include/sysemu/
H A Dkvm_xen.h24 void *kvm_xen_get_vcpu_info_hva(uint32_t vcpu_id);
26 void kvm_xen_inject_vcpu_callback_vector(uint32_t vcpu_id, int type);
28 int kvm_xen_set_vcpu_virq(uint32_t vcpu_id, uint16_t virq, uint16_t port);
/openbmc/qemu/hw/intc/
H A Dxics_kvm.c45 unsigned long vcpu_id; member
142 unsigned long vcpu_id; in icp_kvm_realize() local
151 vcpu_id = kvm_arch_vcpu_id(cs); in icp_kvm_realize()
159 if (enabled_icp->vcpu_id == vcpu_id) { in icp_kvm_realize()
164 ret = kvm_vcpu_enable_cap(cs, KVM_CAP_IRQ_XICS, 0, kernel_xics_fd, vcpu_id); in icp_kvm_realize()
169 vcpu_id, strerror(errno)); in icp_kvm_realize()
178 enabled_icp->vcpu_id = vcpu_id; in icp_kvm_realize()
H A Dspapr_xive_kvm.c33 unsigned long vcpu_id; member
43 unsigned long vcpu_id = kvm_arch_vcpu_id(cs); in kvm_cpu_is_enabled() local
46 if (enabled_cpu->vcpu_id == vcpu_id) { in kvm_cpu_is_enabled()
56 unsigned long vcpu_id = kvm_arch_vcpu_id(cs); in kvm_cpu_enable() local
59 enabled_cpu->vcpu_id = vcpu_id; in kvm_cpu_enable()
155 unsigned long vcpu_id; in kvmppc_xive_cpu_connect() local
165 vcpu_id = kvm_arch_vcpu_id(tctx->cs); in kvmppc_xive_cpu_connect()
167 trace_kvm_xive_cpu_connect(vcpu_id); in kvmppc_xive_cpu_connect()
170 vcpu_id, 0); in kvmppc_xive_cpu_connect()
174 vcpu_id); in kvmppc_xive_cpu_connect()
/openbmc/linux/arch/s390/kvm/
H A Dsigp.c39 VCPU_EVENT(vcpu, 4, "sensed status of cpu %x rc %x", dst_vcpu->vcpu_id, in __sigp_sense()
49 .u.emerg.code = vcpu->vcpu_id, in __inject_sigp_emergency()
56 dst_vcpu->vcpu_id); in __inject_sigp_emergency()
98 .u.extcall.code = vcpu->vcpu_id, in __sigp_external_call()
109 dst_vcpu->vcpu_id); in __sigp_external_call()
127 dst_vcpu->vcpu_id); in __sigp_stop()
146 dst_vcpu->vcpu_id); in __sigp_stop_and_store_status()
235 dst_vcpu->vcpu_id, rc); in __sigp_sense_running()
370 order_code, dst_vcpu->vcpu_id); in handle_sigp_dst()
H A Dinterrupt.c56 sca->cpu[vcpu->vcpu_id].sigp_ctrl; in sca_ext_call_pending()
63 sca->cpu[vcpu->vcpu_id].sigp_ctrl; in sca_ext_call_pending()
85 &(sca->cpu[vcpu->vcpu_id].sigp_ctrl); in sca_inject_ext_call()
98 &(sca->cpu[vcpu->vcpu_id].sigp_ctrl); in sca_inject_ext_call()
130 &(sca->cpu[vcpu->vcpu_id].sigp_ctrl); in sca_clear_ext_call()
139 &(sca->cpu[vcpu->vcpu_id].sigp_ctrl); in sca_clear_ext_call()
548 trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, in __deliver_pfault_init()
716 trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, in __deliver_machine_check()
759 trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, in __deliver_set_prefix()
815 trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, in __deliver_external_call()
[all …]
/openbmc/linux/arch/x86/kvm/svm/
H A Davic.c50 ((vcpu_id) & AVIC_VCPU_ID_MASK))
51 #define AVIC_GATAG(vm_id, vcpu_id) \ argument
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); in avic_ga_log_notifier() local
152 trace_kvm_avic_ga_log(vm_id, vcpu_id); in avic_ga_log_notifier()
158 vcpu = kvm_get_vcpu_by_id(&kvm_svm->kvm, vcpu_id); in avic_ga_log_notifier()
280 int id = vcpu->vcpu_id; in avic_init_backing_page()
806 u32 vcpu_id = AVIC_GATAG_TO_VCPUID(pi->prev_ga_tag); in svm_ir_list_add() local
940 svm->vcpu.vcpu_id); in avic_pi_update_irte()
[all …]
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Dhyperv_ipi.c58 u32 vcpu_id; in receiver_code() local
63 vcpu_id = rdmsr(HV_X64_MSR_VP_INDEX); in receiver_code()
66 ipis_rcvd[vcpu_id] = (u64)-1; in receiver_code()
74 u32 vcpu_id = rdmsr(HV_X64_MSR_VP_INDEX); in guest_ipi_handler() local
76 ipis_rcvd[vcpu_id]++; in guest_ipi_handler()
H A Dtsc_scaling_sync.c45 unsigned long vcpu_id = (unsigned long)_cpu_nr; in run_vcpu() local
53 vcpu = vm_vcpu_add(vm, vcpu_id, guest_code); in run_vcpu()
/openbmc/qemu/include/hw/xen/interface/hvm/
H A Dhvm_op.h221 uint32_t vcpu_id; member
230 uint32_t vcpu_id; member
300 uint32_t vcpu_id; member
/openbmc/qemu/target/i386/kvm/
H A Dxen-emu.c205 .u.vcpu_id = cs->cpu_index, in kvm_xen_init_vcpu()
381 void *kvm_xen_get_vcpu_info_hva(uint32_t vcpu_id) in kvm_xen_get_vcpu_info_hva() argument
383 CPUState *cs = qemu_get_cpu(vcpu_id); in kvm_xen_get_vcpu_info_hva()
431 void kvm_xen_inject_vcpu_callback_vector(uint32_t vcpu_id, int type) in kvm_xen_inject_vcpu_callback_vector() argument
433 CPUState *cs = qemu_get_cpu(vcpu_id); in kvm_xen_inject_vcpu_callback_vector()
467 if (vcpu_id == 0) { in kvm_xen_inject_vcpu_callback_vector()
498 CPUState *cs = qemu_get_cpu(vcpu_id); in kvm_xen_set_vcpu_virq()
1175 int cmd, int vcpu_id, uint64_t arg) in kvm_xen_hcall_vcpu_op() argument
1178 CPUState *dest = cs->cpu_index == vcpu_id ? cs : qemu_get_cpu(vcpu_id); in kvm_xen_hcall_vcpu_op()
1197 if (cs->cpu_index == vcpu_id) { in kvm_xen_hcall_vcpu_op()
[all …]
/openbmc/linux/tools/perf/
H A Dbuiltin-kvm.c694 int vcpu_id; member
735 if (vcpu_id < event->max_vcpu) in kvm_event_expand()
738 while (event->max_vcpu <= vcpu_id) in kvm_event_expand()
841 if (vcpu_id != -1) in kvm_event_rel_stddev()
842 kvm_stats = &event->vcpu[vcpu_id]; in kvm_event_rel_stddev()
849 struct kvm_event *event, int vcpu_id, in update_kvm_event() argument
856 if (vcpu_id == -1) { in update_kvm_event()
861 if (!kvm_event_expand(event, vcpu_id)) in update_kvm_event()
928 vcpu = vcpu_record->vcpu_id; in handle_end_event()
969 sample->time, sample->pid, vcpu_record->vcpu_id, in handle_end_event()
[all …]
/openbmc/linux/arch/riscv/kvm/
H A Dvcpu_sbi_replace.c63 if (tmp->vcpu_id < hbase) in kvm_sbi_ext_ipi_handler()
65 if (!(hmask & (1UL << (tmp->vcpu_id - hbase)))) in kvm_sbi_ext_ipi_handler()
/openbmc/linux/arch/mips/kvm/
H A Dstats.c54 kvm_info("\nKVM VCPU[%d] COP0 Access Profile:\n", vcpu->vcpu_id); in kvm_mips_dump_stats()
/openbmc/linux/arch/x86/kvm/mmu/
H A Dmmutrace.h261 __field(int, vcpu_id)
271 __entry->vcpu_id = vcpu->vcpu_id;
281 " new %llx spurious %d fixed %d", __entry->vcpu_id,

1234