Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
int construct_dom0(struct domain *d)
{
struct kernel_info kinfo = {};
- int rc;
+ int rc, i, cpu;
struct vcpu *v = d->vcpu[0];
struct cpu_user_regs *regs = &v->arch.cpu_info->guest_cpu_user_regs;
}
#endif
+ for ( i = 1, cpu = 0; i < d->max_vcpus; i++ )
+ {
+ cpu = cpumask_cycle(cpu, &cpu_online_map);
+ if ( alloc_vcpu(d, i, cpu) == NULL )
+ {
+ printk("Failed to allocate dom0 vcpu %d on pcpu %d\n", i, cpu);
+ break;
+ }
+ }
+
local_abort_enable();
return 0;