mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
4b11387906
commit
8cfe8bcf33
1 file changed
+1
-1
@@ -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);
|
||||
|
||||