From: Andrew Biggadike Subject: Re: Blocking upcall to dom0 Date: Tue, 1 Mar 2005 23:12:42 -0500 Message-ID: <20050302041241.GI26847@andrew.cmu.edu> References: <20050301205328.GG26847@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: Steven Hand Cc: Keir Fraser , xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org Steven Hand wrote: > > 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. > > Why not just use an event channel? This is precisely what they > are for. That way the invoking domain can simply kick an event, > and block waiting for a response. No new magic required in Xen > at all. That's what I was originally thinking, but from Keir's first reply it seems that I can't arbitrarily block within Xen since stacks are per-CPU rather than per-domain. I'd like to block within Xen and resume at that same point in Xen, not in the guest. If I understand the flow of things correctly, then using an event channel and blocking will resume the domain from the guest's last execution context, rather than Xen's. Please correct me if I'm wrong. Thanks, 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