|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH MM-PART3 v2 05/12] xen/arm: mm: Introduce _PAGE_PRESENT and _PAGE_POPULATE
Hi Stefano, On 11/06/2019 23:35, Stefano Stabellini wrote: On Tue, 14 May 2019, Julien Grall wrote: The end goal is to streamline as much as possible to page-table update. I wanted to have all the information in flags because it is much easier to reason with one variable over two variables. Furthermore, x86 code allows map_pages_to_xen(...) to destroy mappings but not the underlying page-tables. This is used for instance for the vunmap to avoid re-creating the page-tables afterwards. I have been thinking to introduce similar things on Arm. Keeping the xenmap_operation would make it awkward to support it because you would have to translate the flags to the actual operations.
Better alternative, I will update the comment. because there is no need to say "bit", the [5] means it is a bit. Otherwise, something like the following: [5] Present in memory but it's unimportant. It's [6] that we might want to explain a bit better: if we say "Populate page table" then every time we want the Xen pagetable to be populated we would need to pass _PAGE_POPULATE, even when the page is present in memory. Do you see what I mean? I am not entirely sure how to make it clearer. Maybe: To be honest, I was not entirely happy with the current comment. But I also wasn't able to find a better one :). [6] Only populate page tables I am happy with this alternative. I will update the comment. Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |