|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 00 of 13] [RFC] p2m cleanups
This series is the current state of my p2m cleanups; it passes
basic smoke-tests but needs more serious testing before it's
ready to go in. I'm posting it as an RFC for now so anyone who's
interested in it can see the way things are going and maybe even
give feedback before I get too far down this particular rabbit-hole.
So far, it:
- fixes a lot of locking bugs
- tidies up the p2m interface, mostly to stop the callers needing to know
about internal p2m cruft.
- collects all the x86/mm locks together, defining and enforcing a
locking order.
Next stages:
- Fix the ugly "need_lock" semi-recursive locking.
- Fix the idiom where many callers of gfn_to_mfn_* immediately
have to page in or unshare the result by moving that logic
into p2m code and requesting it with a flag.
- Disentangle the page allocators from hap and shadow, and put them
under their own lock, which will allow me to undo some of the
contortions the log-dirty code goes to when allocating memory.
- Sort out the interactions between nested HAP and memory
sharing/paging.
After all that (phew!) I should be in a position to look at
integrating the p2m code and the core typecounting code better,
to avoid the TOCTOU races that have been pointed out in the
memory sharing code.
Cheers,
Tim.
--
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00 of 13] [RFC] p2m cleanups,
Tim Deegan <=
- [Xen-devel] [PATCH 06 of 13] x86/mm/p2m: paging_p2m_ga_to_gfn() doesn't need so many arguments, Tim Deegan
- [Xen-devel] [PATCH 07 of 13] x86/mm: Fix memory-sharing code's locking discipline, Tim Deegan
- [Xen-devel] [PATCH 01 of 13] x86/mm/p2m: Mark internal functions static, Tim Deegan
- [Xen-devel] [PATCH 12 of 13] x86/mm/p2m: Fix locking discipline around log-dirty teardown, Tim Deegan
- [Xen-devel] [PATCH 09 of 13] x86/mm/p2m: Fix locking discipline around p2m updates, Tim Deegan
- [Xen-devel] [PATCH 08 of 13] x86/mm/p2m: Remove recursive-locking code from set_shared_p2m_entry(), Tim Deegan
- [Xen-devel] [PATCH 10 of 13] x86/mm/p2m: Fix locking discipline around p2m lookups, Tim Deegan
- [Xen-devel] [PATCH 04 of 13] x86/mm/p2m: merge gfn_to_mfn_unshare with other gfn_to_mfn paths, Tim Deegan
- [Xen-devel] [PATCH 03 of 13] x86/mm/p2m: hide the current-domain fast-path inside the p2m-pt code, Tim Deegan
- [Xen-devel] [PATCH 11 of 13] x86/mm/p2m: Move p2m code in HVMOP_[gs]et_mem_access into p2m.c, Tim Deegan
|
|
|
|
|