[v6,0/5] x86/mem_sharing: assorted fixes
mbox series

Message ID 20190717193335.11991-1-tamas@tklengyel.com
Headers show
Series
  • x86/mem_sharing: assorted fixes
Related show

Message

Tamas K Lengyel July 17, 2019, 7:33 p.m. UTC
This is an assorted series of fixes to the memory sharing subsystem.

Patch 1-2: fix general brokeness of the system
Patch 3-5: nice-to-haves & cleanups, could be applied independently from the
           rest of the patches in the series

Tamas K Lengyel (5):
  x86/mem_sharing: reorder when pages are unlocked and released
  x86/mem_sharing: copy a page_lock version to be internal to memshr
  x86/mem_sharing: enable mem_share audit mode only in debug builds
  x86/mem_sharing: compile mem_sharing subsystem only when kconfig is
    enabled
  x86/mem_sharing: style cleanup

 xen/arch/x86/Kconfig              |   6 +-
 xen/arch/x86/domain.c             |   2 +
 xen/arch/x86/domctl.c             |   2 +
 xen/arch/x86/mm/Makefile          |   2 +-
 xen/arch/x86/mm/mem_sharing.c     | 355 +++++++++++++++++-------------
 xen/arch/x86/x86_64/compat/mm.c   |   2 +
 xen/arch/x86/x86_64/mm.c          |   2 +
 xen/common/Kconfig                |   3 -
 xen/common/domain.c               |   6 +-
 xen/common/grant_table.c          |   2 +-
 xen/common/memory.c               |   2 +-
 xen/common/vm_event.c             |   6 +-
 xen/include/asm-x86/mem_sharing.h |  32 +++
 xen/include/asm-x86/mm.h          |  18 +-
 xen/include/xen/mm.h              |   2 +-
 xen/include/xen/sched.h           |   2 +-
 xen/include/xsm/dummy.h           |   2 +-
 xen/include/xsm/xsm.h             |   4 +-
 xen/xsm/dummy.c                   |   2 +-
 xen/xsm/flask/hooks.c             |   4 +-
 20 files changed, 266 insertions(+), 190 deletions(-)