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

Re: [Xen-devel] Sched_op hypercall small questions


  • To: Daniel Castro <evil.dani@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir.xen@xxxxxxxxx>
  • Date: Mon, 19 Sep 2011 22:41:00 -0700
  • Cc:
  • Delivery-date: Mon, 19 Sep 2011 22:42:08 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acx3V+CLOt4R8rpaJ0WFmmEk566YKA==
  • Thread-topic: [Xen-devel] Sched_op hypercall small questions

On 19/09/2011 22:21, "Daniel Castro" <evil.dani@xxxxxxxxx> wrote:

> Greetings all.
> 
> Some small question regarding schedule poll operation hypercall.
> 
> 1. struct sched_poll poll.timeout is measured in what unit of time?
> Secs, ms? ns?

It is an absolute system time (rather than a duration), in nanoseconds.

> 2. After issuing the hypercall_sched_op(SCHEDOP_poll, &poll); if no
> timeout is used in poll struct how long will I yield the CPU?

Until one of the specified event channel ports is pending.

> 3. If I issue the hypercall and the event never comes is it possible
> to to yield the CPU for ever?

Yes, if you do not specify a timeout.

 -- Keir

> Thanks you very much for answering these questions.
> 
> Daniel Castro



_______________________________________________
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®.