Refactor super page shattering
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest2 patches 7 repliesIn review
- v32 patches 7 repliesSuperseded
- v22 patches 7 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 2 patches | 8 replies | Superseded |
Changes in v4 from the cover letter
- helper functions now return bool instead of a random value.
- rebase
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | x86/mm: factor out the code for shattering an l3 PTExen/ | +49 | 5 replies | |
| 2/2 | x86/mm: factor out the code for shattering an l2 PTExen/ | +49 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [Xen-devel] [PATCH v4 0/2] Refactor super page shattering
map_pages_to_xen and modify_xen_mappings use almost exactly the same page shattering logic, and the code is mingled with other PTE manipulations so it is less obvious that the intention is page shattering. Factor out the functions to make them reusable and to make the intention more obvious.
Of course, there is not much difference between the shattering logic of each level, so we could further turn the per-level functions into a single macro, although this is not that simple since we have per-level functions and macros all over the place and there are slight differences between levels. Keep it per-level for now.
tree:
https://xenbits.xen.org/git-http/people/hx242/xen.git
shatter-refactor_v4
---
Changes in v4:
- helper functions now return bool instead of a random value.
- rebase
Changes in v3:
- style and indentation fixes.
Changes in v2:
- rebase.
- improve asm code.
- avoid stale values when taking the lock.
- move allocation of PTE tables inside the shatter function.
Hongyan Xia (2):
x86/mm: factor out the code for shattering an l3 PTE x86/mm: factor out the code for shattering an l2 PTE
xen/arch/x86/mm.c | 194 +++++++++++++++++++++++----------------------- 1 file changed, 98 insertions(+), 96 deletions(-)
Signature · 7 lines
2.17.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel