Lines Matching defs:cpu
107 #include <sys/cpu.h>
141 vcpu_on_pcpu(processorid_t cpu)
146 ASSERT(cpu < NCPU);
150 if (cpu == CPU->cpu_id)
152 if (HYPERVISOR_vcpu_op(VCPUOP_get_runstate_info, cpu, &runstate) != 0)
191 cpu_config_watch.node = "cpu";
204 * cpu hot plug events.
324 * Create a guest virtual cpu context so that the virtual cpu
335 mach_cpucontext_alloc(struct cpu *cp)
343 * First, augment the incoming cpu structure
406 * the cpu, or our attempt to start it has failed.
411 mach_cpucontext_free(struct cpu *cp, void *arg, int err)
567 mp_cpu_poweron(struct cpu *cp)
574 mp_cpu_poweroff(struct cpu *cp)
668 poweroff_vcpu(struct cpu *cp)
729 * the cpu back to a different, non-quiesced state e.g.
748 * Add a new virtual cpu to the domain.
757 printf("cannot (yet) add cpus to a single-cpu domain\n");
768 poweron_vcpu(struct cpu *cp)
852 "cpu%d: externally initiated %s", id, ps);
865 "cpu already %s", ps ? ps : "?");
869 "cpu not found");
913 "vcpu_config: cpu%d does not fit in this domain", id);
917 (void) snprintf(dir, sizeof (dir), "cpu/%d", id);
928 "cpu%d: unknown target state '%s'", id, state);
932 "cpu%d: unable to read target state from xenstore", id);
945 if ((s = strstr(path, "cpu/")) != NULL &&
946 sscanf(s, "cpu/%d", &id) == 1) {
983 str = "no such cpu";
1022 str = "no such cpu";
1052 * X_ENOENT: no such cpu