diff options
author | Jan Beulich <jbeulich@novell.com> | 2011-07-16 09:35:13 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2011-07-16 09:35:13 +0100 |
commit | fcf97f36aed0953ed3356a1f4dc1ebaa117b0ebe (patch) | |
tree | a6458cb815e8d5ec86de726240e08dfbc7cd62dc | |
parent | 4485d1dc350575fbea3c68d55d9f12c87ef84ef8 (diff) | |
download | xen-fcf97f36aed0953ed3356a1f4dc1ebaa117b0ebe.tar.gz xen-fcf97f36aed0953ed3356a1f4dc1ebaa117b0ebe.tar.bz2 xen-fcf97f36aed0953ed3356a1f4dc1ebaa117b0ebe.zip |
x86: fix guest migration after c/s 20892:d311d1efc25e
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
-rw-r--r-- | xen/arch/x86/mm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index 43a373fb7d..3d61bb4599 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -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; |