On 26/09/2019 11:45, Julien Grall wrote:
Hi,
I forgot to mention one thing. Can you explain why you are using
map_pages_to_xen and not destroy_xen_mappings here?
From my understanding, the former will not teardown intermediate pagetables.
If this is what you want then please write it down in a comment. Note that Arm
does not support _PAGE_NONE so something similar to implementation of vunmap
would be necessary.
That is exactly my intention. Without an always-mapped direct map, mappings to
the DIRECTMAP region are created/destroyed alongside xenheap
allocations/deallocations. Performance-wise it probably makes less sense to
actually tear down all pagetables and later allocate them again.
I can add a comment.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel