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: Jan Beulich <JBeulich@xxxxxxxx>
Subject: Re: [Xen-devel] Sched_op hypercall small questions
From: Daniel Castro <evil.dani@xxxxxxxxx>
Date: Tue, 20 Sep 2011 19:55:46 +0900
Cc: keir.xen@xxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 20 Sep 2011 03:56:43 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=FGnAGBVQ+XhmkTx9Xz5kE5uk2kGfE4t4MCSau/lCYA4=; b=qAWvUCEcRy2ZjIhAZD4SyEAxHEPAQNsWOiIseYRzqZGMhdh8KqT144nZS77gcAHtbd L3/NjQnhsL+lZQauIfrCVlIMdsVsTAcGkyt9dstCm7i2RzsfzdbwjROMoJORvooUK/I/ Smr/ubOEkpXEWmE5xKvF3YWUHQRXgCppZ7AnA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E7874180200007800056BF2@xxxxxxxxxxxxxxxxxxxx>
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>
References: <4E784FD502000078000769C5@xxxxxxxxxxxxxxxxxxxx> <CAP2B85_YdLJDaNoaimuDOJhQJ_1ogtDWYhUbg-Ycxd0R0dmd8A@xxxxxxxxxxxxxx> <4E7874180200007800056BF2@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, Sep 20, 2011 at 6:08 PM, Jan Beulich <JBeulich@xxxxxxxx> wrote:
>>>> On 20.09.11 at 10:31, Daniel Castro <evil.dani@xxxxxxxxx> wrote:
>> On Tue, Sep 20, 2011 at 4:33 PM, Jan Beulich <jbeulich@xxxxxxxx> wrote:
>>>>>> Daniel Castro  09/20/11 8:18 AM >>>
>>>>On Tue, Sep 20, 2011 at 2:41 PM, Keir Fraser  wrote:
>>>>> On 19/09/2011 22:21, "Daniel Castro"  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.
>>>>
>>>>really an absolute system time?
>>>>
>>>>When the timeout is set and the timeout is reached, the system behaves
>>>>like if the event had been received? i.e the bit is changed?
>>>
>>> No, the bit would remain unset - the poll times out then, it doesn't
>>> "complete".
>>
>> My Guest VM would get stuck on the hypercall call, like if it was an
>> infinite loop?
>
> I'm not following. Of course, if you blindly and constantly re-issue the
> hypercall, then you'd be stuck in a loop. Allowing to prevent that is
> what the timeout is for.

What I am trying is writing to the xenstore ring, issue the send
hypercall, then wait (poll hypercall) for event, then read answer from
ring.

The waiting is not working, but If I wait enough time, the ring will
contain the answer, but apparently I have a problem with my event
channel port. So to test this theory I am using event channel status
hypercall, and I get:
Status 2 (meaning interdomain connected)
VCPU 0
The Union reports dom 32752 and port 2.

Right now, there are two things that jump to my mind, first when I
issue the poll hypercall the system continues execution, instead of
yielding CPU unitl event arrives. If it were never to arrive it should
yield infinitely, right?
Second, the bit is never set. Or it is being undone before I can check it.

Thanks,

Daniel

>
>> And once the timeout occurs or the event get delivered, then the
>> hypercall would return, right?
>
> Yes.
>
> Jan
>
>



-- 
+-=====---------------------------+
| +---------------------------------+ | This space intentionally blank
for notetaking.
| |   | Daniel Castro,                |
| |   | Consultant/Programmer.|
| |   | U Andes                         |
+-------------------------------------+

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