p2m: rename p2m_is_magic to p2m_is_pod
PATCH 1/1 p2m: rename p2m_is_magic to p2m_is_pod
# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1350918469 -7200
# Node ID de800ac188d5b43f0e8f3cd3b3719ba568fe79c7 # Parent 2d450b41b7e2cf74940776ab74d41c11206ca46c
p2m: rename p2m_is_magic to p2m_is_pod
Signed-off-by Olaf Hering <[email protected]>
xen/arch/x86/hvm/hvm.c +1 -1
@@ -4086,7 +4086,7 @@ long do_hvm_op(unsigned long op, XEN_GUE a.mem_type = HVMMEM_ram_ro; else if ( p2m_is_ram(t) ) a.mem_type = HVMMEM_ram_rw; - else if ( p2m_is_magic(t) ) + else if ( p2m_is_pod(t) ) a.mem_type = HVMMEM_ram_rw; else if ( p2m_is_grant(t) ) a.mem_type = HVMMEM_ram_rw;
xen/arch/x86/mm/p2m-pt.c +1 -1
@@ -405,7 +405,7 @@ p2m_set_entry(struct p2m_domain *p2m, un }ASSERT (!mfn_valid (mfn) || p2mt != p2m_mmio_direct); -if (mfn_valid (mfn) ||p2m_is_magic (p2mt) ) +if (mfn_valid (mfn) ||p2m_is_pod (p2mt) ) l2e_content =l2e_from_pfn (mfn_x (mfn),p2m_type_to_flags (p2mt, mfn) | _PAGE_PSE);
xen/arch/x86/mm/p2m.c +1 -1
@@ -238,7 +238,7 @@ struct page_info *get_page_from_gfn_p2m(return page;/* Error path: not a suitable GFN at all */ -if ( !p2m_is_ram (*t) && !p2m_is_paging (*t) && !p2m_is_magic (*t) ) +if ( !p2m_is_ram (*t) && !p2m_is_paging (*t) && !p2m_is_pod (*t) )return NULL ; }
xen/include/asm-x86/p2m.h +2 -2
@@ -139,7 +139,7 @@ typedef unsigned int p2m_query_t; | p2m_to_mask(p2m_grant_map_ro) \ | p2m_to_mask(p2m_ram_shared) ) -#define P2M_MAGIC_TYPES (p2m_to_mask(p2m_populate_on_demand)) +#define P2M_POD_TYPES (p2m_to_mask(p2m_populate_on_demand))/* Pageable types */ #define P2M_PAGEABLE_TYPES (p2m_to_mask(p2m_ram_rw) \
@@ -167,7 +167,7 @@ typedef unsigned int p2m_query_t;#define p2m_is_hole (_t) (p2m_to_mask(_t) & P2M_HOLE_TYPES)#define p2m_is_mmio (_t) (p2m_to_mask(_t) & P2M_MMIO_TYPES)#define p2m_is_readonly (_t) (p2m_to_mask(_t) & P2M_RO_TYPES) -#define p2m_is_magic (_t) (p2m_to_mask(_t) & P2M_MAGIC_TYPES) +#define p2m_is_pod (_t) (p2m_to_mask(_t) & P2M_POD_TYPES)#define p2m_is_grant (_t) (p2m_to_mask(_t) & P2M_GRANT_TYPES)/* Grant types are *not* considered valid, because they can be unmapped at any time and, unless you happen to be the shadow or p2m
Tim Deegan
AppliedQuoted 8 lines · Olaf Hering
# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1350918469 -7200
# Node IDde800ac188d5b43f0e8f3cd3b3719ba568fe79c7# Parent2d450b41b7e2cf74940776ab74d41c11206ca46c
p2m: renamep2m_is_magictop2m_is_podSigned-off-by Olaf Hering <[email protected]>
Applied, thanks.