]> xenbits.xensource.com Git - xen.git/commitdiff
x86: fix guest migration after c/s 20892:d311d1efc25e
authorJan Beulich <jbeulich@novell.com>
Sat, 16 Jul 2011 08:35:13 +0000 (09:35 +0100)
committerJan Beulich <jbeulich@novell.com>
Sat, 16 Jul 2011 08:35:13 +0000 (09:35 +0100)
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 <jbeulich@novell.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset:   23706:3dd399873c9e
xen-unstable date:        Sat Jul 16 09:18:21 2011 +0100

xen/arch/x86/mm.c

index 43a373fb7d3ab87465e3138a116416cb36893572..3d61bb459932b9fe845c67b54903bb6488073602 100644 (file)
@@ -4490,7 +4490,7 @@ long arch_memory_op(int op, XEN_GUEST_HANDLE(void) arg)
             .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;