From: "Jan Beulich" Subject: Re: Re: how to handle paged hypercall args? Date: Mon, 15 Nov 2010 09:53:59 +0000 Message-ID: <4CE111470200007800022344@vpn.id2.novell.com> References: <20101111143338.GA27721@aepfle.de> <4CDD1AB70200007800021EB7@vpn.id2.novell.com> <20101115093705.GA21112@whitby.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20101115093705.GA21112@whitby.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tim Deegan Cc: Olaf Hering , "xen-devel@lists.xensource.com" , Keir Fraser , Patrick Colp List-Id: xen-devel@lists.xenproject.org >>> On 15.11.10 at 10:37, Tim Deegan wrote: > At 09:45 +0000 on 12 Nov (1289555111), Jan Beulich wrote: >> Furthermore, even for the do_memory_op() one, encoding a >> continuation for a failure of copying in the arguments is clearly >> acceptable (if no other solution can be found), but unwinding >> the whole operation when copying out the results fails is at >> least undesirable (and can lead to a live lock). So I think a >> general (hopefully transparent to the individual hypercall >> handlers) solution needs to be found, and a word on the >> general issue from the original paging code authors (and their >> thoughts of it when designing the whole thing) would be very >> much appreciated. >=20 > Maybe Patrick can comment too, but my recollection of discussing this is > that we would have to propagate failures caused by paging at least as > far as the dom0 kernel, because otherwise a single-vcpu dom0 kernel > could deadlock with its one vcpu stuck in a hypercall (or continually > having it preempted and retried) and the paging binary that would > unstick it never getting scheduled. How's Dom0 involved here? The hypercall arguments live in guest memory. Confused, Jan