/kernel/linux/linux-5.10/arch/x86/kvm/ |
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) 251 __field( unsigned int, vcpu_id ) \ 258 __entry->vcpu_id = vcpu->vcpu_id; \ 267 __entry->vcpu_id, \ 500 __entry->apicid = apic->vcpu->vcpu_id; 517 __entry->apicid = apic->vcpu->vcpu_id; 789 TP_PROTO(unsigned int vcpu_id, __u64 previous_tsc_offset, 791 TP_ARGS(vcpu_id, previous_tsc_offset, next_tsc_offset), [all …]
|
D | ioapic.c | 124 old_val = test_bit(vcpu->vcpu_id, dest_map->map); in __rtc_irq_eoi_tracking_restore_one() 130 __set_bit(vcpu->vcpu_id, dest_map->map); in __rtc_irq_eoi_tracking_restore_one() 131 dest_map->vectors[vcpu->vcpu_id] = e->fields.vector; in __rtc_irq_eoi_tracking_restore_one() 134 __clear_bit(vcpu->vcpu_id, dest_map->map); in __rtc_irq_eoi_tracking_restore_one() 168 if (test_bit(vcpu->vcpu_id, dest_map->map) && in rtc_irq_eoi() 169 (vector == dest_map->vectors[vcpu->vcpu_id]) && in rtc_irq_eoi() 170 (test_and_clear_bit(vcpu->vcpu_id, in rtc_irq_eoi() 289 if (test_bit(vcpu->vcpu_id, dest_map->map)) in kvm_ioapic_scan_entry() 290 __set_bit(dest_map->vectors[vcpu->vcpu_id], in kvm_ioapic_scan_entry()
|
D | hyperv.c | 172 trace_kvm_hv_notify_acked_sint(vcpu->vcpu_id, sint); in kvm_hv_notify_acked_sint() 213 trace_kvm_hv_synic_set_msr(vcpu->vcpu_id, msr, data, host); in synic_set_msr() 321 trace_kvm_hv_syndbg_set_msr(vcpu->vcpu_id, in syndbg_set_msr() 383 trace_kvm_hv_syndbg_get_msr(vcpu->vcpu_id, in syndbg_get_msr() 446 trace_kvm_hv_synic_set_irq(vcpu->vcpu_id, sint, irq.vector, ret); in synic_set_irq() 466 trace_kvm_hv_synic_send_eoi(vcpu->vcpu_id, vector); in kvm_hv_synic_send_eoi() 553 trace_kvm_hv_stimer_cleanup(stimer_to_vcpu(stimer)->vcpu_id, in stimer_cleanup() 568 trace_kvm_hv_stimer_callback(stimer_to_vcpu(stimer)->vcpu_id, in stimer_timer_callback() 602 stimer_to_vcpu(stimer)->vcpu_id, in stimer_start() 624 trace_kvm_hv_stimer_start_one_shot(stimer_to_vcpu(stimer)->vcpu_id, in stimer_start() [all …]
|
D | lapic.c | 111 return apic->vcpu->vcpu_id; in kvm_x2apic_id() 328 WARN_ON_ONCE(id != apic->vcpu->vcpu_id); in kvm_apic_set_x2apic_id() 1063 trace_kvm_apic_accept_irq(vcpu->vcpu_id, delivery_mode, in __apic_accept_irq() 1080 __set_bit(vcpu->vcpu_id, dest_map->map); in __apic_accept_irq() 1081 dest_map->vectors[vcpu->vcpu_id] = vector; in __apic_accept_irq() 1486 apic->vcpu->vcpu_id, in limit_periodic_timer_frequency() 1758 apic->vcpu->vcpu_id, in set_target_expiration() 1870 trace_kvm_hv_timer_state(vcpu->vcpu_id, ktimer->hv_timer_in_use); in start_hv_timer() 1889 trace_kvm_hv_timer_state(apic->vcpu->vcpu_id, false); in start_sw_timer() 2264 kvm_apic_set_xapic_id(apic, vcpu->vcpu_id); in kvm_lapic_set_base() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/ |
D | dirty_log_perf_test.c | 45 int vcpu_id = vcpu_args->vcpu_id; in vcpu_worker() local 47 vcpu_args_set(vm, vcpu_id, 1, vcpu_id); in vcpu_worker() 48 run = vcpu_state(vm, vcpu_id); in vcpu_worker() 54 ret = _vcpu_run(vm, vcpu_id); in vcpu_worker() 58 TEST_ASSERT(get_ucall(vm, vcpu_id, NULL) == UCALL_SYNC, in vcpu_worker() 62 pr_debug("Got sync event from vCPU %d\n", vcpu_id); in vcpu_worker() 63 vcpu_last_completed_iteration[vcpu_id] = current_iteration; in vcpu_worker() 65 vcpu_id, vcpu_last_completed_iteration[vcpu_id]); in vcpu_worker() 71 vcpu_id, current_iteration, ts_diff.tv_sec, in vcpu_worker() 75 vcpu_id, current_iteration, ts_diff.tv_sec, in vcpu_worker() [all …]
|
D | demand_paging_test.c | 48 int vcpu_id = vcpu_args->vcpu_id; in vcpu_worker() local 54 vcpu_args_set(vm, vcpu_id, 1, vcpu_id); in vcpu_worker() 55 run = vcpu_state(vm, vcpu_id); in vcpu_worker() 60 ret = _vcpu_run(vm, vcpu_id); in vcpu_worker() 62 if (get_ucall(vm, vcpu_id, NULL) != UCALL_SYNC) { in vcpu_worker() 69 PER_VCPU_DEBUG("vCPU %d execution time: %ld.%.9lds\n", vcpu_id, in vcpu_worker() 261 int vcpu_id; in run_test() local 289 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test() 293 vcpu_gpa = guest_test_phys_mem + (vcpu_id * guest_percpu_mem_size); in run_test() 295 vcpu_id, vcpu_gpa, vcpu_gpa + guest_percpu_mem_size); in run_test() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/include/ |
D | perf_test_util.h | 48 int vcpu_id; member 66 static void guest_code(uint32_t vcpu_id) in guest_code() argument 68 struct vcpu_args *vcpu_args = &perf_test_args.vcpu_args[vcpu_id]; in guest_code() 74 GUEST_ASSERT(vcpu_args->vcpu_id == vcpu_id); in guest_code() 175 int vcpu_id; in add_vcpus() local 177 for (vcpu_id = 0; vcpu_id < vcpus; vcpu_id++) { in add_vcpus() 178 vcpu_args = &perf_test_args.vcpu_args[vcpu_id]; in add_vcpus() 180 vm_vcpu_add_default(vm, vcpu_id, guest_code); in add_vcpus() 183 vcpu_set_cpuid(vm, vcpu_id, kvm_get_supported_cpuid()); in add_vcpus() 186 vcpu_args->vcpu_id = vcpu_id; in add_vcpus() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
D | trace_hv.h | 226 __field(int, vcpu_id) 233 __entry->vcpu_id = vcpu->vcpu_id; 240 __entry->vcpu_id, 250 __field(int, vcpu_id) 258 __entry->vcpu_id = vcpu->vcpu_id; 266 __entry->vcpu_id, 280 __field(int, vcpu_id) 291 __entry->vcpu_id = vcpu->vcpu_id; 302 __entry->vcpu_id, 314 __field(int, vcpu_id) [all …]
|
/kernel/linux/linux-5.10/arch/arm64/kvm/vgic/ |
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)
|
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()
|
/kernel/linux/linux-5.10/arch/arm64/kvm/ |
D | trace_arm.h | 247 TP_PROTO(unsigned long vcpu_id, __u32 irq, int level), 248 TP_ARGS(vcpu_id, irq, level), 251 __field( unsigned long, vcpu_id ) 257 __entry->vcpu_id = vcpu_id; 263 __entry->vcpu_id, __entry->irq, __entry->level) 267 TP_PROTO(unsigned long vcpu_id, struct timer_map *map), 268 TP_ARGS(vcpu_id, map), 271 __field( unsigned long, vcpu_id ) 278 __entry->vcpu_id = vcpu_id; 287 __entry->vcpu_id,
|
/kernel/linux/linux-5.10/drivers/virt/nitro_enclaves/ |
D | ne_misc_dev.c | 517 int core_id, u32 vcpu_id) in ne_set_enclave_threads_per_core() argument 521 if (core_id < 0 && vcpu_id == 0) { in ne_set_enclave_threads_per_core() 530 "CPU %d is not in NE CPU pool\n", vcpu_id); in ne_set_enclave_threads_per_core() 562 static int ne_get_cpu_from_cpu_pool(struct ne_enclave *ne_enclave, u32 *vcpu_id) in ne_get_cpu_from_cpu_pool() argument 577 *vcpu_id = cpu; in ne_get_cpu_from_cpu_pool() 590 rc = ne_set_enclave_threads_per_core(ne_enclave, core_id, *vcpu_id); in ne_get_cpu_from_cpu_pool() 594 *vcpu_id = cpumask_any(ne_enclave->threads_per_core[core_id]); in ne_get_cpu_from_cpu_pool() 615 static int ne_get_vcpu_core_from_cpu_pool(u32 vcpu_id) in ne_get_vcpu_core_from_cpu_pool() argument 621 if (cpumask_test_cpu(vcpu_id, ne_cpu_pool.avail_threads_per_core[i])) { in ne_get_vcpu_core_from_cpu_pool() 641 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 …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/x86_64/ |
D | ucall.c | 38 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc) in get_ucall() argument 40 struct kvm_run *run = vcpu_state(vm, vcpu_id); in get_ucall() 49 vcpu_regs_get(vm, vcpu_id, ®s); in get_ucall() 53 vcpu_run_complete_io(vm, vcpu_id); in get_ucall()
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | kvm.h | 372 TP_PROTO(bool grow, unsigned int vcpu_id, unsigned int new, 374 TP_ARGS(grow, vcpu_id, new, old), 378 __field(unsigned int, vcpu_id) 385 __entry->vcpu_id = vcpu_id; 391 __entry->vcpu_id, 397 #define trace_kvm_halt_poll_ns_grow(vcpu_id, new, old) \ argument 398 trace_kvm_halt_poll_ns(true, vcpu_id, new, old) 399 #define trace_kvm_halt_poll_ns_shrink(vcpu_id, new, old) \ argument 400 trace_kvm_halt_poll_ns(false, vcpu_id, new, old)
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/s390x/ |
D | ucall.c | 36 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc) in get_ucall() argument 38 struct kvm_run *run = vcpu_state(vm, vcpu_id); in get_ucall() 53 vcpu_run_complete_io(vm, vcpu_id); in get_ucall()
|
/kernel/linux/linux-5.10/arch/s390/kvm/ |
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() 247 dst_vcpu->vcpu_id, rc); in __sigp_sense_running() 382 order_code, dst_vcpu->vcpu_id); in handle_sigp_dst()
|
D | interrupt.c | 54 sca->cpu[vcpu->vcpu_id].sigp_ctrl; in sca_ext_call_pending() 61 sca->cpu[vcpu->vcpu_id].sigp_ctrl; in sca_ext_call_pending() 83 &(sca->cpu[vcpu->vcpu_id].sigp_ctrl); in sca_inject_ext_call() 95 &(sca->cpu[vcpu->vcpu_id].sigp_ctrl); in sca_inject_ext_call() 126 &(sca->cpu[vcpu->vcpu_id].sigp_ctrl); in sca_clear_ext_call() 134 &(sca->cpu[vcpu->vcpu_id].sigp_ctrl); in sca_clear_ext_call() 496 trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, KVM_S390_INT_CPU_TIMER, in __deliver_cpu_timer() 520 trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, KVM_S390_INT_CLOCK_COMP, in __deliver_ckc() 552 trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, in __deliver_pfault_init() 720 trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, in __deliver_machine_check() [all …]
|
D | pv.c | 27 vcpu->vcpu_id, *rc, *rrc); in kvm_s390_pv_destroy_cpu() 86 vcpu->vcpu_id, uvcb.cpu_handle, uvcb.header.rc, in kvm_s390_pv_create_cpu() 298 vcpu->vcpu_id, state, uvcb.header.rc, uvcb.header.rrc); in kvm_s390_pv_set_cpu_state()
|
/kernel/linux/linux-5.10/arch/x86/kvm/svm/ |
D | avic.c | 99 u32 vcpu_id = AVIC_GATAG_TO_VCPUID(ga_tag); in avic_ga_log_notifier() local 101 pr_debug("SVM: %s: vm_id=%#x, vcpu_id=%#x\n", __func__, vm_id, vcpu_id); in avic_ga_log_notifier() 102 trace_kvm_avic_ga_log(vm_id, vcpu_id); in avic_ga_log_notifier() 108 vcpu = kvm_get_vcpu_by_id(&kvm_svm->kvm, vcpu_id); in avic_ga_log_notifier() 264 int id = vcpu->vcpu_id; in avic_init_backing_page() 306 trace_kvm_avic_incomplete_ipi(svm->vcpu.vcpu_id, icrh, icrl, id, index); in avic_incomplete_ipi_interception() 348 index, svm->vcpu.vcpu_id, icrh, icrl); in avic_incomplete_ipi_interception() 445 if (vcpu->vcpu_id == id) in avic_handle_apic_id_update() 448 old = avic_get_physical_id_entry(vcpu, vcpu->vcpu_id); in avic_handle_apic_id_update() 547 trace_kvm_avic_unaccelerated_access(svm->vcpu.vcpu_id, offset, in avic_unaccelerated_access_interception() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/aarch64/ |
D | ucall.c | 92 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc) in get_ucall() argument 94 struct kvm_run *run = vcpu_state(vm, vcpu_id); in get_ucall() 109 vcpu_run_complete_io(vm, vcpu_id); in get_ucall()
|
/kernel/linux/linux-5.10/tools/perf/ |
D | builtin-kvm.c | 143 int vcpu_id; member 186 static bool kvm_event_expand(struct kvm_event *event, int vcpu_id) in kvm_event_expand() argument 191 if (vcpu_id < event->max_vcpu) in kvm_event_expand() 194 while (event->max_vcpu <= vcpu_id) in kvm_event_expand() 269 static double kvm_event_rel_stddev(int vcpu_id, struct kvm_event *event) in kvm_event_rel_stddev() argument 273 if (vcpu_id != -1) in kvm_event_rel_stddev() 274 kvm_stats = &event->vcpu[vcpu_id]; in kvm_event_rel_stddev() 280 static bool update_kvm_event(struct kvm_event *event, int vcpu_id, in update_kvm_event() argument 283 if (vcpu_id == -1) { in update_kvm_event() 288 if (!kvm_event_expand(event, vcpu_id)) in update_kvm_event() [all …]
|
/kernel/linux/linux-5.10/arch/x86/kvm/mmu/ |
D | mmutrace.h | 254 __field(int, vcpu_id) 264 __entry->vcpu_id = vcpu->vcpu_id; 274 " new %llx spurious %d fixed %d", __entry->vcpu_id,
|
/kernel/linux/linux-5.10/arch/mips/kvm/ |
D | stats.c | 54 kvm_info("\nKVM VCPU[%d] COP0 Access Profile:\n", vcpu->vcpu_id); in kvm_mips_dump_stats()
|
/kernel/linux/linux-5.10/include/xen/interface/ |
D | xenpmu.h | 73 uint32_t vcpu_id; member
|
/kernel/linux/linux-5.10/include/linux/ |
D | kvm_host.h | 268 int vcpu_id; /* id given by userspace at creation */ member 526 (vcpu)->vcpu_id, kvm_rip_read(vcpu), ## __VA_ARGS__) 529 kvm_debug("vcpu%i " fmt, (vcpu)->vcpu_id, ## __VA_ARGS__) 531 kvm_debug_ratelimited("vcpu%i " fmt, (vcpu)->vcpu_id, \ 534 kvm_err("vcpu%i " fmt, (vcpu)->vcpu_id, ## __VA_ARGS__) 573 if (vcpu && vcpu->vcpu_id == id) in kvm_get_vcpu_by_id() 576 if (vcpu->vcpu_id == id) in kvm_get_vcpu_by_id()
|