[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] Sched_op hypercall small questions
- To: Jan Beulich <JBeulich@xxxxxxxx>
- From: Daniel Castro <evil.dani@xxxxxxxxx>
- Date: Tue, 20 Sep 2011 21:35:22 +0900
- Cc: keir.xen@xxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
- Delivery-date: Tue, 20 Sep 2011 05:40:56 -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=d3XSMhM2CxHKFcjH56w90PlMXdas47+/UeoXK/bENrw=; b=HX3E73w2gG2+l4xIBGaKfckGgH+hcxzR3R9yK+8FBakHeJ/5j+iQFR0NB4Q6uhftFR mLWDPKzSX+W3wv2WqUFtYcE+67UEjug/P2brTtxC+d+ChLwkGYJ1SQZLOJ4vOvC4ZXzI qBNZm6ma+Hi3nwaYEX+RzxsAtedeThsddI86Q=
- List-id: Xen developer discussion <xen-devel.lists.xensource.com>
On Tue, Sep 20, 2011 at 8:57 PM, Jan Beulich <JBeulich@xxxxxxxx> wrote:
>>>> On 20.09.11 at 12:55, Daniel Castro <evil.dani@xxxxxxxxx> wrote:
>> What I am trying is writing to the xenstore ring, issue the send
>> hypercall, then wait (poll hypercall) for event, then read answer from
> That reads as if you do all this from the same thread in the same domain.
> Which might be your problem, particularly if additionally you use the
> same event channel for signaling production and consumption.
Yes you are correct, I have all in the same thread. But I have no
other choice, since this is run inside hvmloader when the BIOS is
>> 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.
> 32752 == DOMID_SELF. And I can't see where the hypercall
> implementation would return DOMID_SELF here.
Sorry I had a coding error, but it is corrected (I did not call the
union correctly, so I ended up calling dom in the main struct).
Anyway here is the output corrected:
Xenbus rings @0xfeffc000, event channel 2
Event Chn 2 Status 2 VCPU 0.
Event is interdomain (2) union dom 983040 union port 42
>> 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?
> Without a timeout, yes.
>> Second, the bit is never set. Or it is being undone before I can check it.
> That would need to be you to undo it.
| +---------------------------------+ | This space intentionally blank
| | | Daniel Castro, |
| | | Consultant/Programmer.|
| | | U Andes |
Xen-devel mailing list