/openbmc/linux/arch/x86/kvm/ |
H A D | trace.h | 22 __field( unsigned int, vcpu_id ) 27 __entry->vcpu_id = vcpu->vcpu_id; 31 TP_printk("vcpu %u, rip 0x%lx", __entry->vcpu_id, __entry->rip) 307 __field( unsigned int, vcpu_id ) \ 313 __entry->vcpu_id = vcpu->vcpu_id; \ 324 __entry->vcpu_id, \ 404 __field( unsigned int, vcpu_id ) 411 __entry->vcpu_id = vcpu->vcpu_id; 418 __entry->vcpu_id, __entry->guest_rip, 573 __entry->apicid = apic->vcpu->vcpu_id; [all …]
|
H A D | ioapic.c | 123 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 D | xen.c | 121 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() 1762 e->xen_evtchn.vcpu_id = ue->u.xen_evtchn.vcpu; in kvm_xen_setup_evtchn() [all …]
|
/openbmc/linux/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 = vcpu->vcpu_id; 322 __entry->vcpu_id, 334 __field(int, vcpu_id) [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/lib/x86_64/ |
H A D | memstress.c | 18 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], ®s); in memstress_setup_nested() 109 vcpu_regs_set(vcpus[vcpu_id], ®s); in memstress_setup_nested() 110 vcpu_args_set(vcpus[vcpu_id], 2, vmx_gva, vcpu_id); in memstress_setup_nested()
|
/openbmc/linux/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 | 30 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 D | vm-sample.c | 46 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 D | ne_misc_dev.c | 528 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() 541 "CPU %d is not in NE CPU pool\n", vcpu_id); in ne_set_enclave_threads_per_core() 573 static int ne_get_cpu_from_cpu_pool(struct ne_enclave *ne_enclave, u32 *vcpu_id) in ne_get_cpu_from_cpu_pool() argument 588 *vcpu_id = cpu; in ne_get_cpu_from_cpu_pool() 601 rc = ne_set_enclave_threads_per_core(ne_enclave, core_id, *vcpu_id); in ne_get_cpu_from_cpu_pool() 605 *vcpu_id = cpumask_any(ne_enclave->threads_per_core[core_id]); in ne_get_cpu_from_cpu_pool() 626 static int ne_get_vcpu_core_from_cpu_pool(u32 vcpu_id) in ne_get_vcpu_core_from_cpu_pool() argument 632 if (cpumask_test_cpu(vcpu_id, ne_cpu_pool.avail_threads_per_core[i])) { in ne_get_vcpu_core_from_cpu_pool() 652 static int ne_check_cpu_in_cpu_pool(struct ne_enclave *ne_enclave, u32 vcpu_id) in ne_check_cpu_in_cpu_pool() argument [all …]
|
/openbmc/linux/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) \ 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) [all …]
|
/openbmc/linux/arch/arm64/kvm/ |
H A D | trace_arm.h | 182 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/hw/intc/ |
H A D | xics_kvm.c | 45 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 D | spapr_xive_kvm.c | 33 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/qemu/include/sysemu/ |
H A D | kvm_xen.h | 24 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/linux/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) | \ argument 50 ((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 151 pr_debug("SVM: %s: vm_id=%#x, vcpu_id=%#x\n", __func__, vm_id, vcpu_id); in avic_ga_log_notifier() 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() [all …]
|
/openbmc/linux/arch/s390/kvm/ |
H A D | sigp.c | 39 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 D | interrupt.c | 56 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() 492 trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, KVM_S390_INT_CPU_TIMER, in __deliver_cpu_timer() 516 trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, KVM_S390_INT_CLOCK_COMP, in __deliver_ckc() 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() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | hyperv_ipi.c | 58 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 D | tsc_scaling_sync.c | 45 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 D | hvm_op.h | 221 uint32_t vcpu_id; member 230 uint32_t vcpu_id; member 300 uint32_t vcpu_id; member
|
/openbmc/qemu/target/i386/kvm/ |
H A D | xen-emu.c | 205 .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() 496 int kvm_xen_set_vcpu_virq(uint32_t vcpu_id, uint16_t virq, uint16_t port) in kvm_xen_set_vcpu_virq() argument 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() [all …]
|
/openbmc/linux/tools/perf/ |
H A D | builtin-kvm.c | 694 int vcpu_id; member 730 static bool kvm_event_expand(struct kvm_event *event, int vcpu_id) in kvm_event_expand() argument 735 if (vcpu_id < event->max_vcpu) in kvm_event_expand() 738 while (event->max_vcpu <= vcpu_id) in kvm_event_expand() 837 static double kvm_event_rel_stddev(int vcpu_id, struct kvm_event *event) in kvm_event_rel_stddev() argument 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() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/include/ |
H A D | kvm_util_base.h | 446 struct kvm_vcpu *__vm_vcpu_add(struct kvm_vm *vm, uint32_t vcpu_id); 825 struct kvm_vcpu *vm_arch_vcpu_add(struct kvm_vm *vm, uint32_t vcpu_id, 828 static inline struct kvm_vcpu *vm_vcpu_add(struct kvm_vm *vm, uint32_t vcpu_id, in vm_vcpu_add() argument 831 return vm_arch_vcpu_add(vm, vcpu_id, guest_code); in vm_vcpu_add() 835 struct kvm_vcpu *vm_arch_vcpu_recreate(struct kvm_vm *vm, uint32_t vcpu_id); 838 uint32_t vcpu_id) in vm_vcpu_recreate() argument 840 return vm_arch_vcpu_recreate(vm, vcpu_id); in vm_vcpu_recreate()
|
/openbmc/linux/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,
|
/openbmc/linux/arch/riscv/kvm/ |
H A D | vcpu_sbi_replace.c | 63 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()
|