WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Sched_op hypercall small questions

To: Daniel Castro <evil.dani@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Sched_op hypercall small questions
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAP2B85_rPbB=hZpKJYSPgC59jU=YG6deD4ZkWMmXwtMV4un1mg@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acx3V+CLOt4R8rpaJ0WFmmEk566YKA==
Thread-topic: [Xen-devel] Sched_op hypercall small questions
User-agent: Microsoft-Entourage/12.30.0.110427
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