xen/arm: p2m: Use p2m_is_foreign in get_page_from_gfn to avoid open coding

No functional change.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
Julien Grall authored and Stefano Stabellini committed 2016-07-26 15:33:54 -07:00
1 parent 4b11387906
commit 8cfe8bcf33
1 file changed
+1 -1
+1 -1
View File
@@ -227,7 +227,7 @@ static inline struct page_info *get_page_from_gfn(
* get_page won't work on foreign mapping because the page doesn't
* belong to the current domain.
*/
if ( p2mt == p2m_map_foreign )
if ( p2m_is_foreign(p2mt) )
{
struct domain *fdom = page_get_owner_and_reference(page);
ASSERT(fdom != NULL);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.