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

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH] xc_ptrace PAE awareness

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] xc_ptrace PAE awareness
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: 2007年1月12日 13:15:20 +0000
Delivery-date: 2007年1月12日 05:13:20 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Adjustments deemed necessary to properly support PAE (only compile-tested).
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
Index: 2007年01月11日/tools/libxc/xc_ptrace.c
===================================================================
--- 2007年01月11日.orig/tools/libxc/xc_ptrace.c 2006年12月14日 22:49:56.000000000 
+0100
+++ 2007年01月11日/tools/libxc/xc_ptrace.c 2007年01月12日 14:10:45.000000000 +0100
@@ -166,14 +166,11 @@ static unsigned long *page_arr
 * tables.
 *
 */
-static unsigned long
-to_ma(int cpu,
- unsigned long in_addr)
+static uint64_t
+to_ma(int cpu, uint64_t maddr)
 {
- unsigned long maddr = in_addr;
-
 if ( current_is_hvm && paging_enabled(&ctxt[cpu]) )
- maddr = page_array[maddr >> PAGE_SHIFT] << PAGE_SHIFT;
+ maddr = (uint64_t)page_array[maddr >> PAGE_SHIFT] << PAGE_SHIFT;
 return maddr;
 }
 
@@ -225,7 +222,8 @@ map_domain_va_pae(
 void *guest_va,
 int perm)
 {
- unsigned long l3e, l2e, l1e, l2p, l1p, p, va = (unsigned long)guest_va;
+ uint64_t l3e, l2e, l1e, l2p, l1p, p;
+ unsigned long va = (unsigned long)guest_va;
 uint64_t *l3, *l2, *l1;
 static void *v[MAX_VIRT_CPUS];
 
@@ -380,12 +378,12 @@ map_domain_va(
 
 if (!paging_enabled(&ctxt[cpu])) {
 static void * v;
- unsigned long page;
+ uint64_t page;
 
 if ( v != NULL )
 munmap(v, PAGE_SIZE);
 
- page = to_ma(cpu, page_array[va >> PAGE_SHIFT]);
+ page = to_ma(cpu, va);
 
 v = xc_map_foreign_range( xc_handle, current_domid, PAGE_SIZE,
 perm, page >> PAGE_SHIFT);
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xc_ptrace PAE awareness, Jan Beulich <=
Previous by Date: Re: [Xen-devel] Tracking "Cannot allocate memory" error in shadow_alloc_p2m_table , Steven Rostedt
Next by Date: Re: [Xen-devel] [RFC] keymap support for PVFB , Daniel P. Berrange
Previous by Thread: [Xen-devel] [PATCH] fix udev check , Jan Beulich
Next by Thread: [Xen-devel] __dump_execstate() + x86's dump_exececution_state() , Jan Beulich
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /