[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [IA64] use pte_mem() in relinquish_pte()



# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 2f9878d01e2bac1b4c825d13973d63fa7138986e
# Parent  7da52d016bcc933318a6894f7cd516b1ce66e6d5
[IA64] use pte_mem() in relinquish_pte()

use pte_mem instread of direct bit test in relinquish_pte()

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/mm.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 7da52d016bcc -r 2f9878d01e2b xen/arch/ia64/xen/mm.c
--- a/xen/arch/ia64/xen/mm.c    Fri Jun 09 10:35:38 2006 -0600
+++ b/xen/arch/ia64/xen/mm.c    Fri Jun 09 10:35:39 2006 -0600
@@ -104,7 +104,7 @@ relinquish_pte(struct domain* d, pte_t* 
 
     // vmx domain use bit[58:56] to distinguish io region from memory.
     // see vmx_build_physmap_table() in vmx_init.c
-    if (((mfn << PAGE_SHIFT) & GPFN_IO_MASK) != GPFN_MEM)
+    if (!pte_mem(*pte))
         return;
 
     // domain might map IO space or acpi table pages. check it.

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.