x86/mm/p2m: break into common, pt-implementation and pod parts
PATCH 1/1 x86/mm/p2m: break into common, pt-implementation and pod parts
# HG changeset patch
# User Tim Deegan <[email protected]>
# Date 1304676935 -3600
# Node ID 26c4beb6b520733883eb1fb2aac8701de9188e08
# Parent 4b0692880dfa557d4e1537c7a58c412c1286a416 x86/mm/p2m: break into common, pt-implementation and pod parts.
Start to make a clearer distinction between generic p2m functions and the implementation of the datastructure as an x86 pagetable. Also move the EPT datastructure implementation into x86/mm/ to match, and split the PoD admin code into its own file.
This is just code motion, except for splitting the p2m_initialise function into a pt-specific part and a common part.
xen/arch/x86/mm/Makefile +1 -1
@@ -2,7 +2,7 @@ subdir-y += shadow subdir-y += hap obj-y += paging.o -obj-y += p2m.o +obj-y += p2m.o p2m-pt.o p2m-ept.o p2m-pod.o obj-y += guest_walk_2.o obj-y += guest_walk_3.o obj-$(x86_64) += guest_walk_4.o
xen/arch/x86/mm/hap/Makefile +0 -1
@@ -2,7 +2,6 @@ obj-y += hap.o obj-y += guest_walk_2level.o obj-y += guest_walk_3level.o obj-$(x86_64) += guest_walk_4level.o -obj-y += p2m-ept.o obj-y += nested_hap.o guest_walk_%level.o: guest_walk.c Makefile
xen/arch/x86/mm/hap/p2m-ept.c deleted +0 -911
911 lines not on this page · raw message
xen/arch/x86/mm/p2m-ept.c new file +911 -0
911 lines not on this page · raw message
xen/arch/x86/mm/p2m-pod.c new file +1151 -0
1,151 lines not on this page · raw message
xen/arch/x86/mm/p2m-pt.c new file +1301 -0
12 lines not on this page · raw message
xen/arch/x86/mm/p2m.c +6 -2340
2,346 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
Quoted 9 lines · Tim Deegan
x86/mm/p2m: break into common, pt-implementation and pod parts.
Start to make a clearer distinction between generic p2m functions and the implementation of the datastructure as an x86 pagetable. Also move the EPT datastructure implementation into x86/mm/ to match, and split the PoD admin code into its own file.
This is just code motion, except for splitting the
p2m_initialisefunction into a pt-specific part and a common part.
I've just pushed this to the staging tree (with one minor fix).
If you're working on memory management code, be aware that I'm planning a whole lot more p2m overhaul this week, including a wholesale reversal of most of the interface changes in 21940:e7afe98afd43 (which turn out not to have been necessary). I'll post an RFC patch series in the next few days once I've had a chance to smoke-test things a bit.
If you have any outstanding p2m patches, email me ASAP and I'll work out whether I can rebase on top of them or fold them into my patchqueue
somehow. If you're thinking of starting on any p2m work I recommend
waiting until at least next week.
Cheers,
Tim.
Signature · 3 lines
Tim Deegan <[email protected]> Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)