diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2013-08-08 13:15:14 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-08-20 15:44:36 +0100 |
commit | 8b36092b02e036088420ba9056afb447a90120e6 (patch) | |
tree | 05f111583bcec434a2a5574a7de20bd81db28d65 /xen/include/asm-arm | |
parent | cbf4911d286b46b9b7e6bf55ed3f00b16ee3df4c (diff) | |
download | xen-8b36092b02e036088420ba9056afb447a90120e6.tar.gz xen-8b36092b02e036088420ba9056afb447a90120e6.tar.bz2 xen-8b36092b02e036088420ba9056afb447a90120e6.zip |
xen: arm: fix is_xen_fixed_mfn
The current implementation is nonsense since the xenheap and the xen
text/data/etc mappings are nowhere near each other.
This is only actually used by the page offlining code, which isn't active on
ARM.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'xen/include/asm-arm')
-rw-r--r-- | xen/include/asm-arm/mm.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xen/include/asm-arm/mm.h b/xen/include/asm-arm/mm.h index 5e7c5a36be..baaf9c3833 100644 --- a/xen/include/asm-arm/mm.h +++ b/xen/include/asm-arm/mm.h @@ -123,7 +123,9 @@ extern unsigned long xenheap_virt_end; unsigned long _mfn = (mfn); \ (_mfn >= xenheap_mfn_start && _mfn < xenheap_mfn_end); \ }) -#define is_xen_fixed_mfn(mfn) is_xen_heap_mfn(mfn) +#define is_xen_fixed_mfn(mfn) \ + ((((mfn) << PAGE_SHIFT) >= virt_to_maddr(&_start)) && \ + (((mfn) << PAGE_SHIFT) <= virt_to_maddr(&_end))) #define page_get_owner(_p) (_p)->v.inuse.domain #define page_set_owner(_p,_d) ((_p)->v.inuse.domain = (_d)) |