| To: | <xen-devel@xxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | [Xen-devel] [PATCH] linux/x86-64: use xen_new_user_pt() rather than open-coding it |
| From: | "Jan Beulich" <jbeulich@xxxxxxxxxx> |
| Date: | 2008年8月08日 13:23:46 +0100 |
| Delivery-date: | 2008年8月08日 05:23:24 -0700 |
| Envelope-to: | www-data@xxxxxxxxxxxxxxxxxxx |
| List-help: | <mailto:xen-devel-request@lists.xensource.com?subject=help> |
| List-id: | Xen developer discussion <xen-devel.lists.xensource.com> |
| List-post: | <mailto:xen-devel@lists.xensource.com> |
| List-subscribe: | <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
| List-unsubscribe: | <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
| Sender: | xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
As usual, written and tested on 2.6.26 and made apply to the 2.6.18
tree without further testing.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
Index: head-2008年08月07日/drivers/xen/core/machine_reboot.c
===================================================================
--- head-2008年08月07日.orig/drivers/xen/core/machine_reboot.c 2008年08月07日
12:44:36.000000000 +0200
+++ head-2008年08月07日/drivers/xen/core/machine_reboot.c 2008年08月07日
13:59:00.000000000 +0200
@@ -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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [Xen-devel] [PATCH] linux: some Kconfig adjustments , Jan Beulich |
|---|---|
| Next by Date: | [Xen-devel] [PATCH] linux/x86: fix issues with the assignment of huge amounts of memory , Jan Beulich |
| Previous by Thread: | [Xen-devel] [PATCH] linux: some Kconfig adjustments , Jan Beulich |
| Next by Thread: | [Xen-devel] [PATCH] linux/x86: fix issues with the assignment of huge amounts of memory , Jan Beulich |
| Indexes: | [Date] [Thread] [Top] [All Lists] |