From: Ian Campbell Subject: Re: [PATCH] x86: fix guest migration after c/s 20892:d311d1efc25e Date: Fri, 15 Jul 2011 09:58:07 +0100 Message-ID: <1310720287.634.557.camel@zakaz.uk.xensource.com> References: <4E201CAF020000780004D8EA@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4E201CAF020000780004D8EA@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: Olaf Hering , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Fri, 2011-07-15 at 09:55 +0100, Jan Beulich wrote: > Guests would not manage to run successfully after being migrated to a > host having sufficiently much more memory than the host they were > originally started on. > > Subsequently the plan is to re-enable the changes behavior under the > control of a guest kernel announced feature flag. > > Signed-off-by: Jan Beulich Thanks Jan, I think this is a good workaround for the time being. Acked-by: Ian Campbell > > --- a/xen/arch/x86/mm.c > +++ b/xen/arch/x86/mm.c > @@ -4861,7 +4861,7 @@ long arch_memory_op(int op, XEN_GUEST_HA > .max_mfn = MACH2PHYS_NR_ENTRIES - 1 > }; > > - if ( !mem_hotplug ) > + if ( !mem_hotplug && current->domain == dom0 ) > mapping.max_mfn = max_page - 1; > if ( copy_to_guest(arg, &mapping, 1) ) > return -EFAULT; > > >