ia64: fix build in grant table and tmem code
PATCH 1/1 ia64: fix build in grant table and tmem code
Signed-off-by Jan Beulich <[email protected]>
xen/common/grant_table.c +5 -1
@@ -142,10 +142,11 @@ shared_entry_header(struct grant_table */* Check if the page has been paged out */ static int __get_paged_frame (unsigned long gfn,unsigned long *frame,int readonly,struct domain *rd) { +int rc = GNTST_okay; +#if defined(P2M_PAGED_TYPES ) || defined(P2M_SHARED_TYPES )struct p2m_domain *p2m;p2m_type_t p2mt;mfn_t mfn; -int rc = GNTST_okay; p2m =p2m_get_hostp2m (rd);if ( readonly )
@@ -163,6 +164,9 @@ static int __get_paged_frame(unsigned lo *frame =INVALID_MFN ; rc = GNTST_bad_page; } +#else + *frame = readonly ?gmfn_to_mfn (rd, gfn) :gfn_to_mfn_private (rd, gfn); +#endif return rc; }
xen/common/tmem_xen.c +2 -2
@@ -95,8 +95,8 @@ static inline void *cli_get_page(tmem_clreturn NULL ; } -static inline void cli_put_page (void *cli_va,struct page_info *cli_pfp, -bool_t mark_dirty) +static inline void cli_put_page (void *cli_va,pfp_t *cli_pfp, +unsigned long cli_mfn,bool_t mark_dirty) {ASSERT (0 ); }
Signed-off-by Jan Beulich <[email protected]>
xen/common/grant_table.c +5 -1
@@ -142,10 +142,11 @@ shared_entry_header(struct grant_table */* Check if the page has been paged out */ static int __get_paged_frame (unsigned long gfn,unsigned long *frame,int readonly,struct domain *rd) { +int rc = GNTST_okay; +#if defined(P2M_PAGED_TYPES ) || defined(P2M_SHARED_TYPES )struct p2m_domain *p2m;p2m_type_t p2mt;mfn_t mfn; -int rc = GNTST_okay; p2m =p2m_get_hostp2m (rd);if ( readonly )
@@ -163,6 +164,9 @@ static int __get_paged_frame(unsigned lo *frame =INVALID_MFN ; rc = GNTST_bad_page; } +#else + *frame = readonly ?gmfn_to_mfn (rd, gfn) :gfn_to_mfn_private (rd, gfn); +#endif return rc; }
xen/common/tmem_xen.c +2 -2
@@ -95,8 +95,8 @@ static inline void *cli_get_page(tmem_clreturn NULL ; } -static inline void cli_put_page (void *cli_va,struct page_info *cli_pfp, -bool_t mark_dirty) +static inline void cli_put_page (void *cli_va,pfp_t *cli_pfp, +unsigned long cli_mfn,bool_t mark_dirty) {ASSERT (0 ); }
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel