FreeBSD/sys/x86/xen/pvcpu_enum.c
/*
 * Test each possible vCPU in order to find the number of vCPUs
 */
Test each possible vCPU in order to find the number of vCPUs
Test each possible vCPU in order to find the number of vCPUs
static int
xenpv_probe_cpus(void)
{
#ifdef SMP
	int i, ret;
	for (i = 0; i < MAXCPU; i++) {
		ret = HYPERVISOR_vcpu_op(VCPUOP_is_up, i, NULL);
		if (ret >= 0)
			lapic_create((i * 2), (i == 0));
	}
#endif
	return (0);
}
static int xenpv_probe_cpus ( void ) { #ifdef SMP int i , ret ; for ( i = 0 ; i < MAXCPU ; i ++ ) { ret = HYPERVISOR_vcpu_op ( VCPUOP_is_up , i , NULL ) ; if ( ret >= 0 ) lapic_create ( ( i * 2 ) , ( i == 0 ) ) ; } #endif return ( 0 ) ; }
Test each possible vCPU in order to find the number of vCPUs
Test each possible vCPU in order to find the number of vCPUs