From: Andrew Biggadike Subject: Re: Blocking upcall to dom0 Date: Tue, 1 Mar 2005 15:53:28 -0500 Message-ID: <20050301205328.GG26847@andrew.cmu.edu> References: <20050228230406.GD26847@andrew.cmu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Keir Fraser Cc: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org Keir Fraser wrote: > In what context do you want to block? That of some other domain, or > block all domains while dom0 executes, or something else? I want to block in the context of the unprivileged domain that was running, and only block that domain. In the hypercall example I gave, I'd want the domain that invoked the hypercall to block within Xen until dom0 completed the upcall. > Xen doesn't support arbitrary blocking within itself since it only > maintains per-CPU stacks, not per-domain stacks. Interesting. So this means the scheduler is only ever invoked on entry to and exit from Xen when there is no Xen state to worry about saving? > So you have to create a closure manually. This is a bit more work than I had bargained for, but it seems doable. Does temporarily setting a different schedule_tail() function to restore the state from the closure seem reasonable? Andrew ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click