ia64/linux-2.6.18-xen.hg

changeset 639:abcb2a10ff2f

linux/x86-64: use xen_new_user_pt() rather than open-coding it

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Aug 08 14:22:52 2008 +0100 (2008-08-08)
parents 099864f50909
children 9c730ffb48f7
files drivers/xen/core/machine_reboot.c
line diff
     1.1 --- a/drivers/xen/core/machine_reboot.c	Fri Aug 08 14:21:32 2008 +0100
     1.2 +++ b/drivers/xen/core/machine_reboot.c	Fri Aug 08 14:22:52 2008 +0100
     1.3 @@ -184,14 +184,8 @@ static int take_machine_down(void *_susp
     1.4  		 * We do it here just in case, but there's no need if we are
     1.5  		 * in fast-suspend mode as that implies a new enough Xen.
     1.6  		 */
     1.7 -		if (!suspend->fast_suspend) {
     1.8 -			struct mmuext_op op;
     1.9 -			op.cmd = MMUEXT_NEW_USER_BASEPTR;
    1.10 -			op.arg1.mfn = pfn_to_mfn(__pa(__user_pgd(
    1.11 -				current->active_mm->pgd)) >> PAGE_SHIFT);
    1.12 -			if (HYPERVISOR_mmuext_op(&op, 1, NULL, DOMID_SELF))
    1.13 -				BUG();
    1.14 -		}
    1.15 +		if (!suspend->fast_suspend)
    1.16 +			xen_new_user_pt(__pa(__user_pgd(current->active_mm->pgd));
    1.17  #endif
    1.18  	}
    1.19  	time_resume();