From: Avi Kivity <avi.kivity@qumranet.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: suspending execution within Xen
Date: Wed, 29 Jun 2005 14:53:18 +0300 [thread overview]
Message-ID: <1120045998.12491.10.camel@blast.q> (raw)
I am trying to send a stream of events about one domain to another. so I
set up a ring between the monitoring domain and xen (not the monitored
domain). however I am having trouble blocking when buffer space runs
out.
the intuitive
while (!buffer_space_available())
do_block();
does not work; do_block() appears to return to guest context, not to the
while loop (is this correct?). the other alternative,
while (!buffer_space_available())
if (!test_and_set_bit(EDF_BLOCKED, &ed->ed_flags))
domain_sleep(ed);
freezes xen solid.
is there a way to do it? am I missing something obvious?
Avi
next reply other threads:[~2005-06-29 11:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-29 11:53 Avi Kivity [this message]
2005-06-29 12:03 ` suspending execution within Xen Timenkov Yuri
2005-06-29 12:43 ` Keir Fraser
2005-06-29 12:42 ` Keir Fraser
2005-06-29 13:49 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1120045998.12491.10.camel@blast.q \
--to=avi.kivity@qumranet.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.