direct-io.hg

changeset 10391:2f9878d01e2b

[IA64] use pte_mem() in relinquish_pte()

use pte_mem instread of direct bit test in relinquish_pte()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@xenbuild.aw
date Fri Jun 09 10:35:39 2006 -0600 (2006-06-09)
parents 7da52d016bcc
children d5adbcbb7492
files xen/arch/ia64/xen/mm.c
line diff
     1.1 --- a/xen/arch/ia64/xen/mm.c	Fri Jun 09 10:35:38 2006 -0600
     1.2 +++ b/xen/arch/ia64/xen/mm.c	Fri Jun 09 10:35:39 2006 -0600
     1.3 @@ -104,7 +104,7 @@ relinquish_pte(struct domain* d, pte_t* 
     1.4  
     1.5      // vmx domain use bit[58:56] to distinguish io region from memory.
     1.6      // see vmx_build_physmap_table() in vmx_init.c
     1.7 -    if (((mfn << PAGE_SHIFT) & GPFN_IO_MASK) != GPFN_MEM)
     1.8 +    if (!pte_mem(*pte))
     1.9          return;
    1.10  
    1.11      // domain might map IO space or acpi table pages. check it.