[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH RFC 00/13] Refactor x86/mm.c



This series splits x86/mm.c into PV and HVM specific files.

The long term goal is to have clear separation of guest supporting
code so that we can disable modes as we see fit. This would also help
a later project to move PV interface into a PVH container.

I think if I try harder some of the page manipulation code can be
split further. But I started this series with the intent to move three
PV only hypercalls into pv/mm.c and now it has grown into a long
series. I would rather leave further splitting to another day.

RFC at the moment as it still awaits testing. And I would like some
opinions before I spend more effort on this.

Wei.

Cc: Jan Beulich <jbeulich@xxxxxxxx>
Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Cc: Tim Deegan <tim@xxxxxxx>
Cc: George Dunlap <george.dunlap@xxxxxxxxxxxxx>

Wei Liu (13):
  x86/mm: export {get,put}_pg_owner
  x86/mm: move MEM_LOG to asm-x86/mm.h
  x86/mm: export vcpumask_to_pcpumask
  x86/mm: carve out create_grant_pv_mapping
  x86/mm: carve out replace_grant_pv_mapping
  x86/mm: extract page table masks to mm.h
  x86/mm: extract PAGE_CACHE_ATTRS to mm.h
  x86/mm: extract adjust_guest_l*e macros to mm.h
  x86/mm: export a bunch of {get,put}_page functions
  x86/mm: export invalidate_shadow_ldt
  x86/mm: export create_pae_xen_mappings
  x86/mm: split PV MMU code to pv/mm.c
  x86/mm: split HVM grant table code to hvm/mm.c

 xen/arch/x86/hvm/Makefile |    1 +
 xen/arch/x86/hvm/mm.c     |   84 ++
 xen/arch/x86/mm.c         | 2095 ++-------------------------------------------
 xen/arch/x86/pv/Makefile  |    1 +
 xen/arch/x86/pv/mm.c      | 1902 ++++++++++++++++++++++++++++++++++++++++
 xen/include/asm-x86/mm.h  |  108 +++
 6 files changed, 2158 insertions(+), 2033 deletions(-)
 create mode 100644 xen/arch/x86/hvm/mm.c
 create mode 100644 xen/arch/x86/pv/mm.c

-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.