| /openbmc/qemu/target/i386/hvf/ |
| H A D | vmx.h | 39 static inline uint64_t rreg(hv_vcpuid_t vcpu, hv_x86_reg_t reg) in rreg() argument 43 if (hv_vcpu_read_register(vcpu, reg, &v)) { in rreg() 51 static inline void wreg(hv_vcpuid_t vcpu, hv_x86_reg_t reg, uint64_t v) in wreg() argument 53 if (hv_vcpu_write_register(vcpu, reg, v)) { in wreg() 59 static inline uint64_t rvmcs(hv_vcpuid_t vcpu, uint32_t field) in rvmcs() argument 63 hv_vmx_vcpu_read_vmcs(vcpu, field, &v); in rvmcs() 69 static inline void wvmcs(hv_vcpuid_t vcpu, uint32_t field, uint64_t v) in wvmcs() argument 71 hv_vmx_vcpu_write_vmcs(vcpu, field, v); in wvmcs() 92 static void enter_long_mode(hv_vcpuid_t vcpu, uint64_t cr0, uint64_t efer) in enter_long_mode() argument 97 wvmcs(vcpu, VMCS_GUEST_IA32_EFER, efer); in enter_long_mode() [all …]
|
| /openbmc/qemu/contrib/plugins/ |
| H A D | ips.c | 61 static void update_system_time(vCPUTime *vcpu) in update_system_time() argument 63 int64_t elapsed_ns = now_ns() - vcpu->last_quantum_time; in update_system_time() 66 if (vcpu->quantum_insn >= max_insn) { in update_system_time() 68 uint64_t insn_advance = vcpu->quantum_insn - max_insn; in update_system_time() 74 vcpu->total_insn += vcpu->quantum_insn; in update_system_time() 75 vcpu->quantum_insn = 0; in update_system_time() 76 vcpu->last_quantum_time = now_ns(); in update_system_time() 79 int64_t new_virtual_time = time_for_insn(vcpu->total_insn); in update_system_time() 94 vCPUTime *vcpu = qemu_plugin_scoreboard_find(vcpus, cpu_index); in vcpu_init() local 95 vcpu->total_insn = 0; in vcpu_init() [all …]
|
| H A D | bbv.c | 61 Vcpu *vcpu = qemu_plugin_scoreboard_find(vcpus, vcpu_index); in vcpu_init() local 64 vcpu->file = fopen(vcpu_filename, "w"); in vcpu_init() 69 Vcpu *vcpu = qemu_plugin_scoreboard_find(vcpus, vcpu_index); in vcpu_interval_exec() local 73 if (!vcpu->file) { in vcpu_interval_exec() 77 vcpu->count -= interval; in vcpu_interval_exec() 79 fputc('T', vcpu->file); in vcpu_interval_exec() 92 fprintf(vcpu->file, ":%u:%" PRIu64 " ", bb->index, bb_count); in vcpu_interval_exec() 97 fputc('\n', vcpu->file); in vcpu_interval_exec()
|
| /openbmc/qemu/target/i386/nvmm/ |
| H A D | nvmm-all.c | 34 struct nvmm_vcpu vcpu; 88 struct nvmm_vcpu *vcpu = &qcpu->vcpu; in nvmm_set_registers() 89 struct nvmm_x64_state *state = vcpu->state; in nvmm_set_registers() 194 ret = nvmm_vcpu_setstate(mach, vcpu, bitmap); in nvmm_set_registers() 225 struct nvmm_vcpu *vcpu = &qcpu->vcpu; in nvmm_get_registers() 227 struct nvmm_x64_state *state = vcpu->state; in nvmm_get_registers() 242 ret = nvmm_vcpu_getstate(mach, vcpu, bitmap); in nvmm_get_registers() 348 struct nvmm_vcpu *vcpu in nvmm_can_take_int() 33 struct nvmm_vcpu vcpu; global() member 87 struct nvmm_vcpu *vcpu = &qcpu->vcpu; nvmm_set_registers() local 224 struct nvmm_vcpu *vcpu = &qcpu->vcpu; nvmm_get_registers() local 347 struct nvmm_vcpu *vcpu = &qcpu->vcpu; nvmm_can_take_int() local 395 struct nvmm_vcpu *vcpu = &qcpu->vcpu; nvmm_vcpu_pre_run() local 533 nvmm_handle_mem(struct nvmm_machine * mach,struct nvmm_vcpu * vcpu) nvmm_handle_mem() argument 547 nvmm_handle_io(struct nvmm_machine * mach,struct nvmm_vcpu * vcpu) nvmm_handle_io() argument 565 struct nvmm_vcpu *vcpu = &qcpu->vcpu; nvmm_handle_rdmsr() local 610 struct nvmm_vcpu *vcpu = &qcpu->vcpu; nvmm_handle_wrmsr() local 668 nvmm_inject_ud(struct nvmm_machine * mach,struct nvmm_vcpu * vcpu) nvmm_inject_ud() argument 684 struct nvmm_vcpu *vcpu = &qcpu->vcpu; nvmm_vcpu_loop() local 893 struct nvmm_vcpu *vcpu = &qcpu->vcpu; nvmm_ipi_signal() local [all...] |
| /openbmc/qemu/target/i386/whpx/ |
| H A D | whpx-all.c | 385 AccelCPUState *vcpu = cpu->accel; in whpx_set_registers() local 410 vcpu->tpr = whpx_apic_tpr_to_cr8(cpu_get_apic_tpr(x86_cpu->apic_state)); in whpx_set_registers() 411 vcpu->apic_base = cpu_get_apic_base(x86_cpu->apic_state); in whpx_set_registers() 461 vcxt.values[idx++].Reg64 = vcpu->tpr; in whpx_set_registers() 519 vcxt.values[idx++].Reg64 = vcpu->apic_base; in whpx_set_registers() 600 AccelCPUState *vcpu = cpu->accel; in whpx_get_registers() local 634 vcpu->tpr = whpx_apic_tpr_to_cr8( in whpx_get_registers() 683 if (tpr != vcpu->tpr) { in whpx_get_registers() 684 vcpu->tpr = tpr; in whpx_get_registers() 741 if (apic_base != vcpu in whpx_get_registers() 881 AccelCPUState *vcpu = cpu->accel; whpx_handle_mmio() local 906 AccelCPUState *vcpu = cpu->accel; whpx_handle_portio() local 1405 AccelCPUState *vcpu = cpu->accel; whpx_vcpu_get_pc() local 1455 AccelCPUState *vcpu = cpu->accel; whpx_vcpu_pre_run() local 1575 AccelCPUState *vcpu = cpu->accel; whpx_vcpu_post_run() local 1600 AccelCPUState *vcpu = cpu->accel; whpx_vcpu_process_async_events() local 1638 AccelCPUState *vcpu = cpu->accel; whpx_vcpu_run() local 2136 AccelCPUState *vcpu = NULL; whpx_init_vcpu() local 2271 AccelCPUState *vcpu = cpu->accel; whpx_destroy_vcpu() local [all...] |
| /openbmc/qemu/include/hw/xen/interface/ |
| H A D | event_channel.h | 128 uint32_t vcpu; member 157 uint32_t vcpu; member 204 uint32_t vcpu; /* VCPU to which this channel is bound. */ member 234 uint32_t vcpu; member 275 uint32_t vcpu; member
|
| /openbmc/qemu/hw/i386/kvm/ |
| H A D | xen_evtchn.c | 59 uint32_t vcpu; /* Xen/ACPI vcpu_id */ member 246 VMSTATE_UINT32(vcpu, XenEvtchnPort), 540 static void inject_callback(XenEvtchnState *s, uint32_t vcpu) in inject_callback() argument 544 kvm_xen_inject_vcpu_callback_vector(vcpu, type); in inject_callback() 578 ha.u.evtchn.deliver.port.vcpu = kvm_arch_vcpu_id(cpu); in assign_kernel_port() 611 static bool valid_vcpu(uint32_t vcpu) in valid_vcpu() argument 613 return !!qemu_get_cpu(vcpu); in valid_vcpu() 663 status->vcpu = p->vcpu; in xen_evtchn_status_op() 748 inject_callback(s, s->port_table[port].vcpu); in do_unmask_port_lm() 806 inject_callback(s, s->port_table[port].vcpu); in do_unmask_port_compat() [all …]
|
| H A D | xen_evtchn.h | 73 int xen_evtchn_bind_vcpu_op(struct evtchn_bind_vcpu *vcpu);
|
| /openbmc/qemu/hw/ppc/ |
| H A D | spapr_nested.c | 565 struct SpaprMachineStateNestedGuestVcpu *vcpu; in spapr_nested_vcpu_check() local 579 vcpu = &guest->vcpus[vcpuid]; in spapr_nested_vcpu_check() 580 if (!vcpu->enabled) { in spapr_nested_vcpu_check() 589 if (vcpu->runbufin.addr && vcpu->runbufout.addr) { in spapr_nested_vcpu_check() 1605 SpaprMachineStateNestedGuestVcpu *vcpu) in exit_nested_store_l2() argument 1611 assert(sizeof(env->gpr) == sizeof(vcpu->state.gpr)); /* sanity check */ in exit_nested_store_l2() 1614 now -= vcpu->tb_offset; /* L1 timebase */ in exit_nested_store_l2() 1615 vcpu->state.dec_expiry_tb = now - cpu_ppc_load_decr(env); in exit_nested_store_l2() 1618 hdar = vcpu->state.hdar; in exit_nested_store_l2() 1619 hdsisr = vcpu->state.hdsisr; in exit_nested_store_l2() [all …]
|
| /openbmc/qemu/stats/ |
| H A D | stats-qmp-cmds.c | 59 if (filter->u.vcpu.has_vcpus) { in invoke_stats_cb() 60 if (!filter->u.vcpu.vcpus) { in invoke_stats_cb() 64 targets = filter->u.vcpu.vcpus; in invoke_stats_cb()
|
| H A D | stats-hmp-cmds.c | 154 filter->u.vcpu.has_vcpus = true; in stats_filter() 155 filter->u.vcpu.vcpus = vcpu_list; in stats_filter()
|
| /openbmc/qemu/accel/kvm/ |
| H A D | trace-events | 25 kvm_dirty_ring_full(int id) "vcpu %d" 26 kvm_dirty_ring_reap_vcpu(int id) "vcpu %d" 27 kvm_dirty_ring_page(int vcpu, uint32_t slot, uint64_t offset) "vcpu %d fetch %"PRIu32" offset 0x%"P…
|
| /openbmc/qemu/monitor/ |
| H A D | hmp-cmds-target.c | 99 int vcpu = qdict_get_try_int(qdict, "vcpu", -1); in hmp_info_registers() local 108 cs = vcpu >= 0 ? qemu_get_cpu(vcpu) : mon_get_cpu(mon); in hmp_info_registers() 111 if (vcpu >= 0) { in hmp_info_registers() 112 monitor_printf(mon, "CPU#%d not available\n", vcpu); in hmp_info_registers()
|
| /openbmc/qemu/target/i386/kvm/ |
| H A D | trace-events | 14 kvm_xen_set_vcpu_attr(int cpu, int type, uint64_t gpa) "vcpu attr cpu %d type %d gpa 0x%" PRIx64 15 kvm_xen_set_vcpu_callback(int cpu, int vector) "callback vcpu %d vector %d"
|
| H A D | xen-emu.c | 41 #include "hw/xen/interface/vcpu.h" 856 target_cs = qemu_get_cpu(up.vcpu); in kvm_xen_hcall_evtchn_upcall_vector() 1373 struct evtchn_bind_vcpu vcpu; in kvm_xen_hcall_evtchn_op() 1375 qemu_build_assert(sizeof(vcpu) == 8); in kvm_xen_hcall_evtchn_op() 1376 if (kvm_copy_from_gva(cs, arg, &vcpu, sizeof(vcpu))) { in kvm_xen_hcall_evtchn_op() 1381 err = xen_evtchn_bind_vcpu_op(&vcpu); in kvm_xen_hcall_evtchn_op() 1371 struct evtchn_bind_vcpu vcpu; kvm_xen_hcall_evtchn_op() local
|
| /openbmc/qemu/docs/specs/ |
| H A D | rapl-msr.rst | 60 3. Sleep for 1 second - During this pause the vcpu and other non-vcpu threads 67 5. Filter the vcpu threads and the non-vcpu threads. 72 7. The total energy spent by the non-vcpu threads is divided by the number 73 of vcpu threads so that each vcpu thread will get an equal part of the 76 8. Calculate the ratio of energy spent per vcpu threads.
|
| /openbmc/qemu/include/hw/xen/ |
| H A D | xen-hvm-common.h | 31 static inline ioreq_t *xen_vcpu_ioreq(shared_iopage_t *shared_page, int vcpu) in xen_vcpu_ioreq() argument 33 return &shared_page->vcpu_ioreq[vcpu]; in xen_vcpu_ioreq()
|
| /openbmc/qemu/hw/intc/ |
| H A D | arm_gic.c | 279 int vcpu = cpu + GIC_NCPU; in gic_compute_misr() local 308 (s->cpu_ctlr[vcpu] & GICC_CTLR_EN_GRP0)) { in gic_compute_misr() 314 !(s->cpu_ctlr[vcpu] & GICC_CTLR_EN_GRP0)) { in gic_compute_misr() 320 (s->cpu_ctlr[vcpu] & GICC_CTLR_EN_GRP1)) { in gic_compute_misr() 326 !(s->cpu_ctlr[vcpu] & GICC_CTLR_EN_GRP1)) { in gic_compute_misr() 1892 int vcpu = gic_get_current_vcpu(s); in gic_vmcr_write() local 1903 gic_set_cpu_control(s, vcpu, ctlr, attrs); in gic_vmcr_write() 1904 s->abpr[vcpu] = MAX(abpr, GIC_VIRT_MIN_ABPR); in gic_vmcr_write() 1905 s->bpr[vcpu] = MAX(bpr, GIC_VIRT_MIN_BPR); in gic_vmcr_write() 1906 gic_set_priority_mask(s, vcpu, prio_mask, attrs); in gic_vmcr_write() [all …]
|
| H A D | gic_internal.h | 198 static inline bool gic_virq_is_valid(GICState *s, int irq, int vcpu) in gic_virq_is_valid() argument 200 int cpu = gic_get_vcpu_real_id(vcpu); in gic_virq_is_valid() 229 static inline uint32_t *gic_get_lr_entry(GICState *s, int irq, int vcpu) in gic_get_lr_entry() argument 231 int cpu = gic_get_vcpu_real_id(vcpu); in gic_get_lr_entry()
|
| /openbmc/qemu/qga/ |
| H A D | commands-linux.c | 1481 /* Transfer online/offline status between @vcpu and the guest system. 1485 * In system-to-@vcpu direction, the following @vcpu fields are accessed: 1486 * - R: vcpu->logical_id 1487 * - W: vcpu->online 1488 * - W: vcpu->can_offline 1490 * In @vcpu-to-system direction, the following @vcpu fields are accessed: 1491 * - R: vcpu->logical_id 1492 * - R: vcpu 1495 transfer_vcpu(GuestLogicalProcessor * vcpu,bool sys2vcpu,char * dirpath,Error ** errp) transfer_vcpu() argument 1566 GuestLogicalProcessor *vcpu; qmp_guest_get_vcpus() local [all...] |
| /openbmc/qemu/ |
| H A D | hmp-commands-info.hx | 103 .args_type = "cpustate_all:-a,vcpu:i?", 104 .params = "[-a|vcpu]", 106 " vcpu: specific vCPU to query; show the current CPU's registers if" 601 .args_type = "name:s?,vcpu:i?", 602 .params = "[name] [vcpu]", 604 "(name: event name pattern; vcpu: vCPU to query, default is any)", 857 Display the vcpu dirty rate information. 870 Display the vcpu dirty page limit information. 907 .help = "show statistics for the given target (vm or vcpu); optionally filter by"
|
| /openbmc/qemu/qapi/ |
| H A D | migration.json | 244 # @postcopy-vcpu-blocktime: list of the postcopy blocktime per vCPU. 263 # @postcopy-vcpu-latency: average remote page fault latency per vCPU 269 # @postcopy-non-vcpu-latency: average remote page fault latency for 302 # @unstable: Members @postcopy-latency, @postcopy-vcpu-latency, 303 # @postcopy-latency-dist, @postcopy-non-vcpu-latency are 320 '*postcopy-vcpu-blocktime': ['uint32'], 325 '*postcopy-vcpu-latency': { 327 '*postcopy-non-vcpu-latency': { 521 # keep their dirty page rate within @vcpu-dirty-limit. This can 944 # @x-vcpu [all...] |
| H A D | stats.json | 79 # @vcpu: statistics that apply to a single virtual CPU. 86 'data': [ 'vm', 'vcpu', 'cryptodev' ] } 134 'data': { 'vcpu': 'StatsVCPUFilter' } }
|
| /openbmc/openbmc/poky/meta/recipes-core/images/build-appliance-image/ |
| H A D | Yocto_Build_Appliance.vmx | 5 vcpu.hotadd = "TRUE"
|
| /openbmc/qemu/common-user/ |
| H A D | plugin-api.c.inc | 16 #include "accel/tcg/vcpu-state.h"
|