On 24.04.2020 16:08, Hongyan Xia wrote:
> @@ -4998,31 +5005,40 @@ static l2_pgentry_t *virt_to_xen_l2e(unsigned long v)
> if ( !(l3e_get_flags(*pl3e) & _PAGE_PRESENT) )
> {
> bool locking = system_state > SYS_STATE_boot;
> -l2_pgentry_t *l2t = alloc_xen_pagetable();
> +
From: Wei Liu
Rewrite those functions to use the new APIs. Modify its callers to unmap
the pointer returned.
Note that the change of virt_to_xen_l1e() also requires vmap_to_mfn() to
unmap the page, which requires domain_page.h header in vmap.
Signed-off-by: Wei Liu
Signed-off-by: Hongyan Xia