[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
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=aDtmWCEIUgEyd1az5LKoO/pQEDXHHjuRz8p1VRDlf2Q=; b=qNFVFH/Ezrra2FtEmSz81YAgMlDiUg+A7oINxZzHEHGOmvWzx6Qsci4nCTqPNQT1Tj cQNanp+aMIBjIpp2fVW9FZQzA1A3VtGhO9h1ThC+A0y6mV+LBuk11M3UoEokjk57Ccwh gP10B+KgSvGdBeR4sz+99RLbvkUeJiM5zn2Os=
- 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