From: John Levon Subject: Re: compat_mmuext_op - continuation code is wrong Date: Wed, 20 Feb 2008 19:12:03 +0000 Message-ID: <20080220191203.GA18300@totally.trollied.org.uk> References: <20080220172115.GA7180@totally.trollied.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, Feb 20, 2008 at 06:16:58PM +0000, Keir Fraser wrote: > > But we never initialised the guest's "pdone" at any point. So we can > > copy in an uninit stack value into 'done', add 'i' to it, then copy it > > back out. On Solaris, we assert that the success count == what we passed > > in, so this breaks Solaris 32/64 > > > > I'm running on 3.1 with a couple of fixes from unstable to make it work > > at all. The below patch works for us but I'm not confident in its > > correctness. > > Better to remove the preempt check altogether, as it's already done > (correctly) in do_mmuext_op(). That's what I'll check in. That's what we initially tested, and works for us. Thanks. john