From: Tim Deegan Subject: Re: [PATCH] x86/mm: early put_page when XENMEM_add_to_physmap(XENMAPSPACE_gmfn) Date: Mon, 4 Jan 2010 13:29:08 +0000 Message-ID: <20100104132908.GA30054@whitby.uk.xensource.com> References: <7kocloub71.fsf@pingu.sky.yk.fujitsu.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <7kocloub71.fsf@pingu.sky.yk.fujitsu.co.jp> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kouya Shimura Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org > diff -r 07f98beddc18 xen/arch/x86/mm/shadow/common.c > --- a/xen/arch/x86/mm/shadow/common.c Wed Dec 23 08:22:13 2009 +0000 > +++ b/xen/arch/x86/mm/shadow/common.c Thu Dec 24 14:07:04 2009 +0900 > @@ -2606,7 +2606,7 @@ int sh_remove_all_mappings(struct vcpu * > { > /* Don't complain if we're in HVM and there are some extra mappings: > * The qemu helper process has an untyped mapping of this dom's RAM > - * and the HVM restore program takes another. */ > + * and the stub domain takes another. */ > if ( !(shadow_mode_external(v->domain) > && (page->count_info & PGC_count_mask) <= 3 > && (page->u.inuse.type_info & PGT_count_mask) == 0) ) This change is wrong - the stub domain _is_ the qemu helper process. (The rest of the patch looks OK). Tim. -- Tim Deegan Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]