From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: Need help with fixing the Xen waitqueue feature Date: Thu, 10 Nov 2011 13:05:01 +0100 Message-ID: <20111110120501.GA594@aepfle.de> References: <20111108224414.83985CF73A@homiemail-mx7.g.dreamhost.com> <3c097da8e49a42af1210e4ffcd39fd48.squirrel@webmail.lagarcavilla.org> <20111109070927.GB26154@aepfle.de> <0bb01a4d216a68c4ae8441b037927f61.squirrel@webmail.lagarcavilla.org> <20111109221148.GA17166@aepfle.de> <5d7d38b18271fcc7aa750604eeb52bbd.squirrel@webmail.lagarcavilla.org> <20111110101828.GA31293@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <20111110101828.GA31293@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andres Lagar-Cavilla Cc: keir.xen@gmail.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Thu, Nov 10, Olaf Hering wrote: > On Wed, Nov 09, Andres Lagar-Cavilla wrote: > > The tools retry as long as IOCTL_PRIVCMD_MMAPBATCH_V2 is supported. Which > > it isn't on mainline linux 3.0, 3.1, etc. Which dom0 kernel are you using? > I'm running SLES11 as dom0. Now thats really odd that there is no ENOENT > handling in mainline, I will go and check the code. xen_remap_domain_mfn_range() has to catch -ENOENT returned from HYPERVISOR_mmu_update() and return it to its callers. Then drivers/xen/xenfs/privcmd.c:traverse_pages() will do the right thing. See http://xenbits.xen.org/hg/linux-2.6.18-xen.hg/rev/0051d294bb60 The granttable part needs more changes, see http://xenbits.xen.org/hg/linux-2.6.18-xen.hg/rev/7c7efaea8b54 Olaf