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

[Xen-devel] [PATCH v5 00/23] x86: refactor mm.c



This series is rather different from v4 because of two things:

1. The staging branch has changed a lot.
2. Try to export stuff via local header where appropriate.

The end result is x86/mm.c goes from 6341 lines to 2930 lines, which means more
than half of the files is moved.

This series can be found at:
 https://xenbits.xen.org/git-http/people/liuw/xen.git wip.split-mm-v5

Wei.

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

Wei Liu (23):
  x86/mm: move guest_get_eff_l1e to pv/mm.h
  x86/mm: export get_page_from_mfn
  x86/mm: move update_intpte to pv/mm.h
  x86/mm: move {un,}adjust_guest_l*e to pv/mm.h
  x86/mm: move ro page fault emulation code
  x86/mm: remove the now unused inclusion of pv/emulate.h
  x86/mm: move map_guest_l1e to pv/mm.c
  x86/mm: split out pv grant table code
  x86/mm: add pv prefix to {set,destroy}_gdt
  x86/mm: split out descriptor table manipulation code
  x86/mm: move compat descriptor table manipulation code
  x86/mm: move and rename map_ldt_shadow_page
  x86/mm: factor out pv_arch_init_memory
  x86/mm: move PV l4 table setup code
  x86/mm: move declaration of new_guest_cr3 to local pv/mm.h
  x86/mm: add pv prefix to {alloc,free}_page_type
  x86/mm: export base_disallow_mask and l1 mask in asm-x86/mm.h
  x86/mm: export some stuff via local mm.h
  x86/mm: export get_page_light via asm-x86/mm.h
  x86/mm: split out PV mm code to pv/mm.c
  x86/mm: move and add pv prefix to invalidate_shadow_ldt
  x86/mm: split out PV mm hypercalls to pv/mm-hypercalls.c
  x86/mm: remove the now unused inclusion of pv/mm.h

 xen/arch/x86/domain.c               |   13 +-
 xen/arch/x86/mm.c                   | 4255 ++++-------------------------------
 xen/arch/x86/pv/Makefile            |    5 +
 xen/arch/x86/pv/descriptor-tables.c |  232 ++
 xen/arch/x86/pv/dom0_build.c        |    2 +
 xen/arch/x86/pv/domain.c            |    5 +
 xen/arch/x86/pv/emul-priv-op.c      |    1 +
 xen/arch/x86/pv/grant_table.c       |  327 +++
 xen/arch/x86/pv/mm-hypercalls.c     | 1461 ++++++++++++
 xen/arch/x86/pv/mm.c                | 1051 +++++++++
 xen/arch/x86/pv/mm.h                |  176 ++
 xen/arch/x86/pv/ro-page-fault.c     |  399 ++++
 xen/arch/x86/traps.c                |    5 +-
 xen/arch/x86/x86_64/compat/mm.c     |   39 +-
 xen/include/asm-x86/mm.h            |   38 +-
 xen/include/asm-x86/processor.h     |    5 -
 xen/include/asm-x86/pv/mm.h         |   72 +
 17 files changed, 4192 insertions(+), 3894 deletions(-)
 create mode 100644 xen/arch/x86/pv/descriptor-tables.c
 create mode 100644 xen/arch/x86/pv/grant_table.c
 create mode 100644 xen/arch/x86/pv/mm-hypercalls.c
 create mode 100644 xen/arch/x86/pv/mm.c
 create mode 100644 xen/arch/x86/pv/mm.h
 create mode 100644 xen/arch/x86/pv/ro-page-fault.c
 create mode 100644 xen/include/asm-x86/pv/mm.h

-- 
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®.