ia64/linux-2.6.18-xen.hg

diff include/asm-ia64/maddr.h @ 761:5e1269aa5c29

blktap, gntdev: fix highpte handling

In case of highpte, virt_to_machine() can't be used. Introduce
ptep_to_machine() and use it, also to simplify xen_l1_entry_update().

Original patch from: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Dec 10 13:32:32 2008 +0000 (2008-12-10)
parents ca213a56dba1
children
line diff
     1.1 --- a/include/asm-ia64/maddr.h	Wed Dec 10 13:31:38 2008 +0000
     1.2 +++ b/include/asm-ia64/maddr.h	Wed Dec 10 13:32:32 2008 +0000
     1.3 @@ -100,6 +100,7 @@ mfn_to_local_pfn(unsigned long mfn)
     1.4  #define virt_to_mfn(virt) (__pa(virt) >> PAGE_SHIFT)
     1.5  #define virt_to_machine(virt) __pa(virt) /* for tpmfront.c */
     1.6  #define arbitrary_virt_to_machine(virt) virt_to_machine(ia64_imva(virt))
     1.7 +#define ptep_to_machine(virt) virt_to_machine(virt)
     1.8  
     1.9  #define set_phys_to_machine(pfn, mfn) do { } while (0)
    1.10