[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 1/1] Xen ARINC 653 Scheduler (updated to add support for CPU pools)



On 18/06/2010 18:35, "Kathy Hadley" <Kathy.Hadley@xxxxxxxxxxxxxxx> wrote:

> xc_sched_arinc653_sched_set(
>     xc_interface *xch,
>     xen_sysctl_sched_arinc653_schedule_t * sched)
> {
>     DECLARE_SYSCTL;
> 
>     sysctl.cmd = XEN_SYSCTL_scheduler_op;
>     sysctl.u.scheduler_op.sched_id = XEN_SCHEDULER_ARINC653;
>     sysctl.u.scheduler_op.cmd = XEN_SYSCTL_SCHEDOP_putinfo;
>     set_xen_guest_handle(sysctl.u.scheduler_op.u.arinc653.schedule, sched);
> 
>     return do_sysctl(xch, &sysctl);
> }
> 
> In this function, which executes in Dom0, how do I determine the cpupool_id
> that I need to set in the sysctl data structure?

It would be passed in to you?

Or if you don't care about cpu pools you can just set it to zero. That's the
default cpupool created at boot time which all CPUs are bound to by default.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.