WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] linux/x86-64: use xen_new_user_pt() r

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] linux/x86-64: use xen_new_user_pt() rather than open-coding it
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 08 Aug 2008 07:30:37 -0700
Delivery-date: Fri, 08 Aug 2008 07:31:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1218201772 -3600
# Node ID abcb2a10ff2f59d117a92c97ae5aa42da3587354
# Parent  099864f509099fb00b8411cc01f05587feac07f5
linux/x86-64: use xen_new_user_pt() rather than open-coding it

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 drivers/xen/core/machine_reboot.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff -r 099864f50909 -r abcb2a10ff2f drivers/xen/core/machine_reboot.c
--- a/drivers/xen/core/machine_reboot.c Fri Aug 08 14:21:32 2008 +0100
+++ b/drivers/xen/core/machine_reboot.c Fri Aug 08 14:22:52 2008 +0100
@@ -184,14 +184,8 @@ static int take_machine_down(void *_susp
                 * We do it here just in case, but there's no need if we are
                 * in fast-suspend mode as that implies a new enough Xen.
                 */
-               if (!suspend->fast_suspend) {
-                       struct mmuext_op op;
-                       op.cmd = MMUEXT_NEW_USER_BASEPTR;
-                       op.arg1.mfn = pfn_to_mfn(__pa(__user_pgd(
-                               current->active_mm->pgd)) >> PAGE_SHIFT);
-                       if (HYPERVISOR_mmuext_op(&op, 1, NULL, DOMID_SELF))
-                               BUG();
-               }
+               if (!suspend->fast_suspend)
+                       
xen_new_user_pt(__pa(__user_pgd(current->active_mm->pgd));
 #endif
        }
        time_resume();

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] linux/x86-64: use xen_new_user_pt() rather than open-coding it, Xen patchbot-linux-2.6.18-xen <=