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

[Xen-devel] [PATCH V9 0/6] xen: Clean-up of mem_event subsystem



This patch series aims to clean up the mem_event subsystem within Xen. The
original use-case for this system was to allow external helper applications
running in privileged domains to control various memory operations performed
by Xen. Amongs these were paging, sharing and access control. The subsystem
has since been extended to also deliver non-memory related events, namely
various HVM debugging events (INT3, MTF, MOV-TO-CR, MOV-TO-MSR). The structures
and naming of related functions however has not caught up to these new
use-cases, thus leaving many ambiguities in the code. Furthermore, future
use-cases envisioned for this subsystem include PV domains and ARM domains,
thus there is a need to establish a common base to build on.

Each patch in the series has been build-tested on x86 and ARM, both with
and without XSM enabled.

This PATCH series is also available at:
https://github.com/tklengyel/xen/tree/mem_event_cleanup9

Tamas K Lengyel (6):
  xen: Introduce monitor_op domctl
  xen/vm_event: Deprecate VM_EVENT_FLAG_DUMMY flag
  xen/vm_event: Decouple vm_event and mem_access.
  xen/vm_event: Relocate memop checks
  xen/xsm: Split vm_event_op into three separate labels
  xen/vm_event: Add RESUME option to vm_event_op domctl

 MAINTAINERS                         |   1 +
 tools/libxc/Makefile                |   1 +
 tools/libxc/include/xenctrl.h       |  49 +++++++--
 tools/libxc/xc_domain.c             |  28 +++++-
 tools/libxc/xc_mem_access.c         |  56 +++++------
 tools/libxc/xc_mem_paging.c         |  12 ++-
 tools/libxc/xc_memshr.c             |  15 ++-
 tools/libxc/xc_monitor.c            | 137 +++++++++++++++++++++++++
 tools/libxc/xc_private.h            |   2 +-
 tools/libxc/xc_vm_event.c           |  11 +-
 tools/tests/xen-access/xen-access.c |  40 ++++----
 xen/arch/x86/Makefile               |   1 +
 xen/arch/x86/hvm/emulate.c          |   2 +-
 xen/arch/x86/hvm/event.c            |  82 ++++++++-------
 xen/arch/x86/hvm/hvm.c              |  35 +------
 xen/arch/x86/hvm/vmx/vmcs.c         |   7 +-
 xen/arch/x86/hvm/vmx/vmx.c          |   2 +-
 xen/arch/x86/mm/mem_paging.c        |  41 ++++++--
 xen/arch/x86/mm/mem_sharing.c       | 160 ++++++++++++++---------------
 xen/arch/x86/mm/p2m.c               |  74 ++++----------
 xen/arch/x86/monitor.c              | 196 ++++++++++++++++++++++++++++++++++++
 xen/arch/x86/x86_64/compat/mm.c     |  26 +----
 xen/arch/x86/x86_64/mm.c            |  24 +----
 xen/common/Makefile                 |  18 ++--
 xen/common/domctl.c                 |   9 ++
 xen/common/mem_access.c             |  51 ++--------
 xen/common/vm_event.c               | 181 +++++++++++++++++----------------
 xen/include/asm-arm/monitor.h       |  35 +++++++
 xen/include/asm-arm/p2m.h           |  18 +++-
 xen/include/asm-x86/domain.h        |  22 +++-
 xen/include/asm-x86/hvm/domain.h    |   1 -
 xen/include/asm-x86/mem_paging.h    |   2 +-
 xen/include/asm-x86/mem_sharing.h   |   4 +-
 xen/include/asm-x86/monitor.h       |  31 ++++++
 xen/include/asm-x86/p2m.h           |  37 +++++--
 xen/include/public/domctl.h         |  80 +++++++++++----
 xen/include/public/hvm/params.h     |   9 +-
 xen/include/public/memory.h         |  18 ++--
 xen/include/public/vm_event.h       |   3 +-
 xen/include/xen/mem_access.h        |  14 ++-
 xen/include/xen/vm_event.h          |  59 +----------
 xen/include/xsm/dummy.h             |  20 +++-
 xen/include/xsm/xsm.h               |  33 +++++-
 xen/xsm/dummy.c                     |  13 ++-
 xen/xsm/flask/hooks.c               |  64 ++++++++----
 xen/xsm/flask/policy/access_vectors |  12 ++-
 46 files changed, 1106 insertions(+), 630 deletions(-)
 create mode 100644 tools/libxc/xc_monitor.c
 create mode 100644 xen/arch/x86/monitor.c
 create mode 100644 xen/include/asm-arm/monitor.h
 create mode 100644 xen/include/asm-x86/monitor.h

-- 
2.1.4


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


 


Rackspace

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