@@ -248,8 +248,7 @@ static void hap_clean_dirty_bitmap(struct domain *d)
/************************************************/
static struct page_info *hap_alloc(struct domain *d)
{
- struct page_info *pg =3D NULL;
- void *p;
+ struct page_info *pg;
=20
ASSERT(paging_locked_by_me(d));
=20
@@ -259,9 +258,7 @@ static struct page_info *hap_alloc(struct domain *d)
=20
d->arch.paging.hap.free_pages--;
=20
- p =3D __map_domain_page(pg);
- clear_page(p);
- unmap_domain_page(p);
+ clear_domain_page(page_to_mfn(pg));
=20
return pg;
}