Searched refs:vcpu (Results 51 - 75 of 96) sorted by relevance

1234

/freebsd-current/sys/arm64/vmm/
H A Dvmm_dev.c103 vcpu_lock_one(struct vcpu *vcpu) argument
105 return (vcpu_set_state(vcpu, VCPU_FROZEN, true));
109 vcpu_unlock_one(struct vcpu *vcpu) argument
113 state = vcpu_get_state(vcpu, NULL);
115 panic("vcpu %s(%d) has invalid state %d",
116 vm_name(vcpu_vm(vcpu)), vcpu_vcpuid(vcpu), state);
119 vcpu_set_state(vcpu, VCPU_IDL
125 struct vcpu *vcpu; local
157 struct vcpu *vcpu; local
320 vm_get_register_set(struct vcpu *vcpu, unsigned int count, int *regnum, uint64_t *regval) argument
335 vm_set_register_set(struct vcpu *vcpu, unsigned int count, int *regnum, uint64_t *regval) argument
356 struct vcpu *vcpu; local
[all...]
H A Dvmm_arm64.c108 DPCPU_DEFINE_STATIC(struct hypctx *, vcpu);
113 DPCPU_SET(vcpu, hypctx);
119 return (DPCPU_GET(vcpu));
520 vmmops_vcpu_init(void *vmi, struct vcpu *vcpu1, int vcpuid)
534 hypctx->vcpu = vcpu1;
681 vmm_stat_incr(hypctx->vcpu, VMEXIT_UNKNOWN, 1);
687 vmm_stat_incr(hypctx->vcpu, VMEXIT_WFI, 1);
690 vmm_stat_incr(hypctx->vcpu, VMEXIT_WFE, 1);
695 vmm_stat_incr(hypctx->vcpu, VMEXIT_HVC, 1);
699 vmm_stat_incr(hypctx->vcpu, VMEXIT_MS
828 ptp_hold(struct vcpu *vcpu, vm_paddr_t ptpphys, size_t len, void **cookie) argument
1070 struct vcpu *vcpu; local
[all...]
H A Dvmm_stat.c76 vmm_stat_copy(struct vcpu *vcpu, int index, int count, int *num_stats, argument
100 (*vst->func)(vcpu, vst);
104 stats = vcpu_stats(vcpu);
H A Dvmm_reset.c49 reset_vm_el01_regs(void *vcpu) argument
53 el2ctx = vcpu;
112 reset_vm_el2_regs(void *vcpu) argument
117 el2ctx = vcpu;
118 vcpuid = vcpu_vcpuid(el2ctx->vcpu);
H A Darm64.h102 struct vcpu *vcpu; member in struct:hypctx
143 DEFINE_VMMOPS_IFUNC(void *, vcpu_init, (void *vmi, struct vcpu *vcpu,
/freebsd-current/sys/amd64/vmm/io/
H A Dvlapic.h62 * Returns 1 if the vcpu needs to be notified of the interrupt and 0 otherwise.
67 * Post an interrupt to the vcpu running on 'hostcpu'. This will use a
80 void vlapic_set_x2apic_state(struct vcpu *vcpu, enum x2apic_state s);
116 int vm_handle_ipi(struct vcpu *vcpu, struct vm_exit *vme, bool *retu);
H A Dvioapic.c236 vioapic_update_tmr(struct vcpu *vcpu, void *arg) argument
244 vlapic = vm_lapic(vcpu);
245 vioapic = vm_ioapic(vcpu_vm(vcpu));
276 vioapic_read(struct vioapic *vioapic, struct vcpu *vcpu, uint32_t addr) argument
311 vioapic_write(struct vioapic *vioapic, struct vcpu *vcpu, uint32_t addr, argument
372 (void)vm_smp_rendezvous(vcpu, allvcpus,
392 vioapic_mmio_rw(struct vioapic *vioapic, struct vcpu *vcp argument
430 vioapic_mmio_read(struct vcpu *vcpu, uint64_t gpa, uint64_t *rval, int size, void *arg) argument
442 vioapic_mmio_write(struct vcpu *vcpu, uint64_t gpa, uint64_t wval, int size, void *arg) argument
[all...]
H A Dvlapic.c66 * vlapic_callout_handler() and vcpu accesses to:
459 vcpu_notify_event(vlapic->vcpu, true);
462 vm_inject_nmi(vlapic->vcpu);
465 vm_inject_extint(vlapic->vcpu);
598 vmm_stat_incr(vlapic->vcpu, VLAPIC_GRATUITOUS_EOI, 1);
634 vmm_stat_incr(vlapic->vcpu, VLAPIC_INTR_ERROR, 1);
648 vmm_stat_incr(vlapic->vcpu, VLAPIC_INTR_TIMER, 1);
660 vmm_stat_incr(vlapic->vcpu, VLAPIC_INTR_CMC, 1);
679 vm_inject_extint(vlapic->vcpu);
682 vm_inject_nmi(vlapic->vcpu);
1039 struct vcpu *vcpu; local
1154 vlapic_handle_init(struct vcpu *vcpu, void *arg) argument
1162 vm_handle_ipi(struct vcpu *vcpu, struct vm_exit *vme, bool *retu) argument
1643 vlapic_set_x2apic_state(struct vcpu *vcpu, enum x2apic_state state) argument
1681 struct vcpu *vcpu; local
1841 struct vcpu *vcpu; local
[all...]
/freebsd-current/usr.sbin/bhyve/amd64/
H A Dxmsr.c48 emulate_wrmsr(struct vcpu *vcpu __unused, uint32_t num, uint64_t val __unused)
102 emulate_rdmsr(struct vcpu *vcpu __unused, uint32_t num, uint64_t *val)
H A Dkernemu_dev.c47 apic_handler(struct vcpu *vcpu, int dir, uint64_t addr, int size, argument
50 if (vm_readwrite_kernemu_device(vcpu, addr, (dir == MEM_F_WRITE),
H A Dinout.c101 emulate_inout(struct vmctx *ctx, struct vcpu *vcpu, struct vm_exit *vmexit) argument
159 vm_inject_gp(vcpu);
163 error = vm_copy_setup(vcpu, &vis->paging, gla,
175 vm_inject_ac(vcpu, 0);
201 error = vie_update_register(vcpu, idxreg, index, addrsize);
209 error = vie_update_register(vcpu, VM_REG_GUEST_RCX,
216 error = vm_restart_instruction(vcpu);
226 error = vm_set_register(vcpu, VM_REG_GUEST_RAX,
H A Dspinup_ap.c43 spinup_ap_realmode(struct vcpu *newcpu, uint64_t rip)
74 spinup_ap(struct vcpu *newcpu, uint64_t rip)
/freebsd-current/usr.sbin/bhyve/
H A Dsnapshot.h89 void checkpoint_cpu_add(int vcpu);
90 void checkpoint_cpu_resume(int vcpu);
91 void checkpoint_cpu_suspend(int vcpu);
H A Dgdb.c162 static struct vcpu **vcpus;
287 guest_paging_info(struct vcpu *vcpu, struct vm_guest_paging *paging) argument
298 if (vm_get_register_set(vcpu, nitems(regset), regset, regs) == -1)
335 if (vm_get_register_set(vcpu, nitems(regset), regset, regs) == -1)
352 * Map a guest virtual address to a physical address (for a given vcpu).
358 guest_vaddr2paddr(struct vcpu *vcpu, uint64_t vaddr, uint64_t *paddr) argument
363 if (guest_paging_info(vcpu, &paging) == -1)
370 if (vm_gla2gpa_nofault(vcpu,
830 _gdb_cpu_suspend(struct vcpu *vcpu, bool report_stop) argument
849 _gdb_set_step(struct vcpu *vcpu, int val) argument
875 _gdb_check_step(struct vcpu *vcpu) argument
895 gdb_cpu_add(struct vcpu *vcpu) argument
930 gdb_cpu_resume(struct vcpu *vcpu) argument
955 gdb_cpu_suspend(struct vcpu *vcpu) argument
983 gdb_cpu_step(struct vcpu *vcpu) argument
1016 gdb_cpu_debug(struct vcpu *vcpu, struct vm_exit *vmexit) argument
1037 gdb_cpu_mtrap(struct vcpu *vcpu) argument
1057 gdb_cpu_breakpoint(struct vcpu *vcpu, struct vm_exit *vmexit) argument
1121 gdb_step_vcpu(struct vcpu *vcpu) argument
1427 int vcpu; local
1698 int vcpu; local
[all...]
/freebsd-current/sys/contrib/xen/
H A Devent_channel.h132 * vcpu.
134 * 1. Virtual IRQs are classified as per-vcpu or global. See the VIRQ list
138 * 3. Per-vcpu VIRQs may be bound to at most one event channel per vcpu.
139 * The allocated event channel is bound to the specified vcpu and the
145 uint32_t vcpu; member in struct:evtchn_bind_virq
170 * 1. The allocated event channel is bound to the specified vcpu. The binding
174 uint32_t vcpu; member in struct:evtchn_bind_ipi
221 uint32_t vcpu; /* VCPU to which this channel is bound. */ member in struct:evtchn_status
237 * EVTCHNOP_bind_vcpu: Specify which vcpu
251 uint32_t vcpu; member in struct:evtchn_bind_vcpu
292 uint32_t vcpu; member in struct:evtchn_init_control
[all...]
H A Dpmu.h66 uint32_t vcpu; member in struct:xen_pmu_params
/freebsd-current/usr.sbin/bhyve/aarch64/
H A Dbhyverun_machdep.c98 " %*s [-p vcpu:hostcpu] [-r file] [-s pci] [-U uuid] vmname\n"
107 " -p: pin 'vcpu' to 'hostcpu'\n"
157 "invalid vcpu pinning configuration '%s'",
187 bhyve_init_vcpu(struct vcpu *vcpu __unused)
192 bhyve_start_vcpu(struct vcpu *vcpu, bool bsp __unused) argument
194 fbsdrun_addcpu(vcpu_id(vcpu));
249 mmio_uart_mem_handler(struct vcpu *vcpu __unuse
[all...]
/freebsd-current/sys/dev/xen/timer/
H A Dxen_timer.c54 #include <contrib/xen/vcpu.h>
153 * \param vcpu vcpu_info structure to fetch the time from.
157 xen_fetch_vcpu_time(struct vcpu_info *vcpu) argument
161 time = (struct pvclock_vcpu_time_info *) &vcpu->time;
284 xentimer_vcpu_start_timer(int vcpu, uint64_t next_time) argument
291 return (HYPERVISOR_vcpu_op(VCPUOP_set_singleshot_timer, vcpu, &single));
295 xentimer_vcpu_stop_timer(int vcpu) argument
298 return (HYPERVISOR_vcpu_op(VCPUOP_stop_singleshot_timer, vcpu, NULL));
321 struct vcpu_info *vcpu = DPCPU_GET(vcpu_info); local
334 next_time = xen_fetch_vcpu_time(vcpu)
520 struct vcpu_info *vcpu = &HYPERVISOR_shared_info->vcpu_info[0]; local
[all...]
/freebsd-current/sys/amd64/vmm/
H A Dvmm_stat.c80 vmm_stat_copy(struct vcpu *vcpu, int index, int count, int *num_stats, argument
104 (*vst->func)(vcpu, vst);
108 stats = vcpu_stats(vcpu);
157 VMM_STAT(VCPU_MIGRATIONS, "vcpu migration across host cpus");
H A Dx86.c74 x86_emulate_cpuid(struct vcpu *vcpu, uint64_t *rax, uint64_t *rbx, argument
77 struct vm *vm = vcpu_vm(vcpu);
78 int vcpu_id = vcpu_vcpuid(vcpu);
191 error = vm_get_capability(vcpu,
220 * XXX This still falls short because the vcpu
298 error = vm_get_x2apic_state(vcpu, &x2apic_state);
338 error = vm_get_register(vcpu,
447 error = vm_get_capability(vcpu, VM_CAP_RDPID,
453 error = vm_get_capability(vcpu,
630 vm_cpuid_capability(struct vcpu *vcpu, enum vm_cpuid_capability cap) argument
[all...]
/freebsd-current/sys/dev/hyperv/vmbus/
H A Dhyperv_mmu.c90 int cpu, vcpu, vcpu_bank, vcpu_offset, nr_bank = 1; local
112 vcpu = VMBUS_PCPU_GET(sc, vcpuid, cpu);
113 if (vcpu == -1)
115 vcpu_bank = vcpu / HV_VCPUS_PER_SPARSE_BANK;
116 vcpu_offset = vcpu % HV_VCPUS_PER_SPARSE_BANK;
135 int cpu, vcpu; local
200 vcpu = VMBUS_PCPU_GET(sc, vcpuid, cpu);
201 if (vcpu >= 64)
204 set_bit(vcpu, &flush->processor_mask);
/freebsd-current/lib/libvmmapi/aarch64/
H A Dvmmapi_machdep.c118 vm_inject_exception(struct vcpu *vcpu, uint64_t esr, uint64_t far) argument
126 return (vcpu_ioctl(vcpu, VM_INJECT_EXCEPTION, &vmexc));
/freebsd-current/sys/amd64/vmm/amd/
H A Dsvm.h70 void svm_set_tsc_offset(struct svm_vcpu *vcpu, uint64_t offset);
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i86xpv/xdt/
H A Dtst.schedargs.ksh56 /* print domid vcpu pcpu probename */
66 while (("/usr/sbin/xm vcpu-list" | getline)) {
69 vcpu = $3
71 vcpumap[domid, vcpu] = 1
78 cpumap[domid, vcpu,
82 cpumap[domid, vcpu,
/freebsd-current/stand/userboot/
H A Duserboot.h220 int (*vm_set_register)(void *arg, int vcpu, int reg, uint64_t val);
221 int (*vm_set_desc)(void *arg, int vcpu, int reg, uint64_t base,

Completed in 174 milliseconds

1234