/freebsd-current/sys/amd64/vmm/ |
H A D | vmm_ktr.h | 39 #define VCPU_CTR0(vm, vcpuid, format) \ 40 CTR2(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid)) 42 #define VCPU_CTR1(vm, vcpuid, format, p1) \ 43 CTR3(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1)) 45 #define VCPU_CTR2(vm, vcpuid, format, p1, p2) \ 46 CTR4(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1), (p2)) 48 #define VCPU_CTR3(vm, vcpuid, format, p1, p2, p3) \ 49 CTR5(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1), (p2), (p3)) 51 #define VCPU_CTR4(vm, vcpuid, format, p1, p2, p3, p4) \ 52 CTR6(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), \ [all...] |
H A D | vmm.c | 104 int vcpuid; /* (o) */ member in struct:vcpu 197 VCPU_CTR0((vcpu)->vm, (vcpu)->vcpuid, format) 200 VCPU_CTR1((vcpu)->vm, (vcpu)->vcpuid, format, p1) 203 VCPU_CTR2((vcpu)->vm, (vcpu)->vcpuid, format, p1, p2) 206 VCPU_CTR3((vcpu)->vm, (vcpu)->vcpuid, format, p1, p2, p3) 209 VCPU_CTR4((vcpu)->vm, (vcpu)->vcpuid, format, p1, p2, p3, p4) 353 vcpu->vcpuid = vcpu_id; 364 vcpu->cookie = vmmops_vcpu_init(vcpu->vm->cookie, vcpu, vcpu->vcpuid); 531 vm_alloc_vcpu(struct vm *vm, int vcpuid) argument 535 if (vcpuid < 1440 int error, vcpuid; local 1488 int error, t, vcpuid, vcpu_halted, vm_halted; local 1897 int error, vcpuid; local 2381 vm_vcpu(struct vm *vm, int vcpuid) argument [all...] |
/freebsd-current/sys/arm64/vmm/ |
H A D | vmm_ktr.h | 39 #define VCPU_CTR0(vm, vcpuid, format) \ 40 CTR2(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid)) 42 #define VCPU_CTR1(vm, vcpuid, format, p1) \ 43 CTR3(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1)) 45 #define VCPU_CTR2(vm, vcpuid, format, p1, p2) \ 46 CTR4(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1), (p2)) 48 #define VCPU_CTR3(vm, vcpuid, format, p1, p2, p3) \ 49 CTR5(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1), (p2), (p3)) 51 #define VCPU_CTR4(vm, vcpuid, format, p1, p2, p3, p4) \ 52 CTR6(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), \ [all...] |
H A D | vmm_reset.c | 115 uint64_t cpu_aff, vcpuid; local 118 vcpuid = vcpu_vcpuid(el2ctx->vcpu); 152 cpu_aff = (vcpuid & 0xf) << MPIDR_AFF0_SHIFT | 153 ((vcpuid >> 4) & 0xff) << MPIDR_AFF1_SHIFT | 154 ((vcpuid >> 12) & 0xff) << MPIDR_AFF2_SHIFT | 155 ((vcpuid >> 20) & 0xff) << MPIDR_AFF3_SHIFT;
|
H A D | vmm.c | 81 int vcpuid; member in struct:vcpu 295 vcpu->vcpuid = vcpu_id; 305 vcpu->cookie = vmmops_vcpu_init(vcpu->vm->cookie, vcpu, vcpu->vcpuid); 409 vm_alloc_vcpu(struct vm *vm, int vcpuid) argument 413 if (vcpuid < 0 || vcpuid >= vm_get_maxcpus(vm)) 417 if (vcpuid >= vgic_max_cpu_count(vm->cookie)) 420 vcpu = atomic_load_ptr(&vm->vcpu[vcpuid]); 425 vcpu = vm->vcpu[vcpuid]; 427 vcpu = vcpu_alloc(vm, vcpuid); 1478 vm_vcpu(struct vm *vm, int vcpuid) argument 1772 int error, vcpuid; local [all...] |
/freebsd-current/usr.sbin/bhyve/ |
H A D | bhyverun.h | 54 struct vcpu *fbsdrun_vcpu(int vcpuid); 55 void fbsdrun_addcpu(int vcpuid); 56 void fbsdrun_deletecpu(int vcpuid); 57 int fbsdrun_suspendcpu(int vcpuid);
|
H A D | bhyverun.c | 116 int vcpuid; member in struct:vcpu_info 366 fbsdrun_vcpu(int vcpuid) argument 368 return (vcpu_info[vcpuid].vcpu); 378 snprintf(tname, sizeof(tname), "vcpu %d", vi->vcpuid); 381 if (vcpumap[vi->vcpuid] != NULL) { 383 sizeof(cpuset_t), vcpumap[vi->vcpuid]); 388 checkpoint_cpu_add(vi->vcpuid); 402 fbsdrun_addcpu(int vcpuid) argument 408 vi = &vcpu_info[vcpuid]; 412 err(EX_OSERR, "could not activate CPU %d", vi->vcpuid); 450 fbsdrun_suspendcpu(int vcpuid) argument [all...] |
H A D | gdb.c | 744 int vcpuid = vcpu_id(vcpu); local 746 debug("$vCPU %d suspending\n", vcpuid); 747 CPU_SET(vcpuid, &vcpus_waiting); 750 while (CPU_ISSET(vcpuid, &vcpus_suspended)) 752 CPU_CLR(vcpuid, &vcpus_waiting); 753 debug("$vCPU %d resuming\n", vcpuid); 800 int vcpuid; local 804 vcpuid = vcpu_id(vcpu); 805 debug("$vCPU %d starting\n", vcpuid); 807 assert(vcpuid < guest_ncpu 889 int vcpuid = vcpu_id(vcpu); local 960 int error, vcpuid; local 1013 int error, vcpuid; local [all...] |
H A D | mem.c | 170 int err, perror, immutable, vcpuid; local 172 vcpuid = vcpu_id(vcpu); 177 if (mmio_hint[vcpuid] && 178 paddr >= mmio_hint[vcpuid]->mr_base && 179 paddr <= mmio_hint[vcpuid]->mr_end) { 180 entry = mmio_hint[vcpuid]; 187 mmio_hint[vcpuid] = entry;
|
/freebsd-current/sys/amd64/vmm/amd/ |
H A D | svm_softc.h | 62 int vcpuid; member in struct:svm_vcpu 78 VCPU_CTR0((vcpu)->sc->vm, (vcpu)->vcpuid, format) 81 VCPU_CTR1((vcpu)->sc->vm, (vcpu)->vcpuid, format, p1) 84 VCPU_CTR2((vcpu)->sc->vm, (vcpu)->vcpuid, format, p1, p2) 87 VCPU_CTR3((vcpu)->sc->vm, (vcpu)->vcpuid, format, p1, p2, p3) 90 VCPU_CTR4((vcpu)->sc->vm, (vcpu)->vcpuid, format, p1, p2, p3, p4)
|
/freebsd-current/usr.sbin/bhyvectl/amd64/ |
H A D | bhyvectl_machdep.c | 454 get_all_registers(struct vcpu *vcpu, int vcpuid, bool get_all) argument 465 printf("efer[%d]\t\t0x%016lx\n", vcpuid, efer); 471 printf("cr0[%d]\t\t0x%016lx\n", vcpuid, cr0); 477 printf("cr2[%d]\t\t0x%016lx\n", vcpuid, cr2); 483 printf("cr3[%d]\t\t0x%016lx\n", vcpuid, cr3); 489 printf("cr4[%d]\t\t0x%016lx\n", vcpuid, cr4); 495 printf("dr0[%d]\t\t0x%016lx\n", vcpuid, dr0); 501 printf("dr1[%d]\t\t0x%016lx\n", vcpuid, dr1); 507 printf("dr2[%d]\t\t0x%016lx\n", vcpuid, dr2); 513 printf("dr3[%d]\t\t0x%016lx\n", vcpuid, dr 641 get_all_segments(struct vcpu *vcpu, int vcpuid, bool get_all) argument 788 get_misc_vmcs(struct vcpu *vcpu, int vcpuid, bool get_all) argument 1021 get_misc_vmcb(struct vcpu *vcpu, int vcpuid, bool get_all) argument 1546 bhyvectl_md_main(struct vmctx *ctx, struct vcpu *vcpu, int vcpuid, bool get_all) argument [all...] |
/freebsd-current/usr.sbin/bhyvectl/ |
H A D | bhyvectl.h | 45 void bhyvectl_md_main(struct vmctx *ctx, struct vcpu *vcpu, int vcpuid,
|
H A D | bhyvectl.c | 329 int error, ch, vcpuid; local 341 vcpuid = 0; 358 vcpuid = atoi(optarg); 404 vcpu = vm_vcpu_open(ctx, vcpuid); 417 bhyvectl_md_main(ctx, vcpu, vcpuid, get_all); 443 val ? "set" : "not set", vcpuid); 480 printf("vcpu%d stats:\n", vcpuid); 505 bhyvectl_dump_vm_run_exitcode(&vmexit, vcpuid);
|
/freebsd-current/sys/amd64/vmm/intel/ |
H A D | vmx.h | 138 int vcpuid; member in struct:vmx_vcpu 153 VCPU_CTR0((vcpu)->vmx->vm, (vcpu)->vcpuid, format) 156 VCPU_CTR1((vcpu)->vmx->vm, (vcpu)->vcpuid, format, p1) 159 VCPU_CTR2((vcpu)->vmx->vm, (vcpu)->vcpuid, format, p1, p2) 162 VCPU_CTR3((vcpu)->vmx->vm, (vcpu)->vcpuid, format, p1, p2, p3) 165 VCPU_CTR4((vcpu)->vmx->vm, (vcpu)->vcpuid, format, p1, p2, p3, p4)
|
H A D | vmx.c | 531 vpid_alloc(int vcpuid) argument 562 return (vcpuid + 1); 1121 vmx_vcpu_init(void *vmi, struct vcpu *vcpu1, int vcpuid) argument 1130 vpid = vpid_alloc(vcpuid); 1135 vcpu->vcpuid = vcpuid; 1148 error, vcpuid); 1299 "critical section", __func__, vcpu->vcpuid)); 2382 int vcpuid; local 2392 vcpuid [all...] |
/freebsd-current/sys/arm64/vmm/io/ |
H A D | vgic.h | 47 int vgic_inject_irq(struct hyp *hyp, int vcpuid, uint32_t irqid, bool level);
|
H A D | vgic.c | 98 /* TODO: vcpuid -> hypctx ? */ 101 vgic_inject_irq(struct hyp *hyp, int vcpuid, uint32_t irqid, bool level) argument 103 return (VGIC_INJECT_IRQ(vgic_dev, hyp, vcpuid, irqid, level));
|
H A D | vgic_v3.c | 153 #define INJECT_IRQ(hyp, vcpuid, irqid, level) \ 154 vgic_v3_inject_irq(NULL, (hyp), (vcpuid), (irqid), (level)) 598 int vcpuid, struct vgic_v3_irq *irq) 600 MPASS(vcpuid >= 0); 601 MPASS(vcpuid < vm_get_maxcpus(hyp->vm)); 1619 int vcpuid; local 1632 vcpuid = (fault_ipa - vgic->redist_start) / 1634 if (vcpuid >= vm_get_maxcpus(hyp->vm)) { 1640 panic("%s: Invalid vcpuid %d", __func__, vcpuid); 597 vgic_v3_queue_irq(struct hyp *hyp, struct vgic_v3_cpu *vgic_cpu, int vcpuid, struct vgic_v3_irq *irq) argument 1697 int vcpuid; local 1781 int cpus, cpu_off, target_vcpuid, vcpuid; local 1939 vgic_v3_get_irq(struct hyp *hyp, int vcpuid, uint32_t irqid) argument 2011 vgic_v3_inject_irq(device_t dev, struct hyp *hyp, int vcpuid, uint32_t irqid, bool level) argument [all...] |
/freebsd-current/sys/amd64/vmm/io/ |
H A D | vlapic_priv.h | 87 VCPU_CTR0((vlapic)->vm, (vlapic)->vcpuid, format) 90 VCPU_CTR1((vlapic)->vm, (vlapic)->vcpuid, format, p1) 93 VCPU_CTR2((vlapic)->vm, (vlapic)->vcpuid, format, p1, p2) 96 VCPU_CTR3((vlapic)->vm, (vlapic)->vcpuid, format, p1, p2, p3) 148 int vcpuid; member in struct:vlapic
|
H A D | vlapic.c | 90 return (vlapic->vcpuid); 92 return (vlapic->vcpuid << 24); 819 int vcpuid; local 835 vcpuid = vm_apicid2vcpuid(vm, dest); 837 if (vcpuid < vm_get_maxcpus(vm) && CPU_ISSET(vcpuid, &amask)) 838 CPU_SET(vcpuid, dmask); 864 CPU_FOREACH_ISSET(vcpuid, &amask) { 865 vlapic = vm_lapic(vm_vcpu(vm, vcpuid)); 896 CPU_SET(vcpuid, dmas 1683 int vcpuid; local [all...] |
/freebsd-current/lib/libvmmapi/ |
H A D | internal.h | 31 int vcpuid; member in struct:vcpu
|
/freebsd-current/usr.sbin/bhyvectl/aarch64/ |
H A D | bhyvectl_machdep.c | 80 int vcpuid __unused, bool get_all __unused)
|
/freebsd-current/sys/arm64/include/ |
H A D | vmm_dev.h | 116 int vcpuid; /* inputs */ member in struct:vm_gla2gpa 125 int vcpuid; member in struct:vm_activate_cpu
|
/freebsd-current/sys/amd64/include/ |
H A D | vmm_dev.h | 208 int vcpuid; /* inputs */ member in struct:vm_gla2gpa 217 int vcpuid; member in struct:vm_activate_cpu 230 int vcpuid; member in struct:vm_intinfo 252 int vcpuid; member in struct:vm_readwrite_kernemu_device
|
/freebsd-current/sys/dev/hyperv/vmbus/ |
H A D | vmbus_var.h | 69 uint32_t vcpuid; /* virtual cpuid */ member in struct:vmbus_pcpu_data
|