From: "Jan Beulich" Subject: [PATCH] x86: fix guest migration after c/s 20892:d311d1efc25e Date: Fri, 15 Jul 2011 09:55:43 +0100 Message-ID: <4E201CAF020000780004D8EA@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part99B6FA9F.2__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" Cc: Olaf Hering , Ian Campbell List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part99B6FA9F.2__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 --- 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 =3D MACH2PHYS_NR_ENTRIES - 1 }; =20 - if ( !mem_hotplug ) + if ( !mem_hotplug && current->domain =3D=3D dom0 ) mapping.max_mfn =3D max_page - 1; if ( copy_to_guest(arg, &mapping, 1) ) return -EFAULT; --=__Part99B6FA9F.2__= Content-Type: text/plain; name="fix-20892.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="fix-20892.patch" Guests would not manage to run successfully after being migrated to = a=0Ahost having sufficiently much more memory than the host they were=0Aori= ginally started on.=0A=0ASubsequently the plan is to re-enable the changes = behavior under the=0Acontrol of a guest kernel announced feature = flag.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- = a/xen/arch/x86/mm.c=0A+++ b/xen/arch/x86/mm.c=0A@@ -4861,7 +4861,7 @@ long = arch_memory_op(int op, XEN_GUEST_HA=0A .max_mfn =3D MACH2PHYS_N= R_ENTRIES - 1=0A };=0A =0A- if ( !mem_hotplug )=0A+ = if ( !mem_hotplug && current->domain =3D=3D dom0 )=0A = mapping.max_mfn =3D max_page - 1;=0A if ( copy_to_guest(arg, = &mapping, 1) )=0A return -EFAULT;=0A --=__Part99B6FA9F.2__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part99B6FA9F.2__=--