All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V9 0/6] xen: Clean-up of mem_event subsystem
@ 2015-04-09 14:32 Tamas K Lengyel
  2015-04-09 14:32 ` [PATCH V9 1/6] xen: Introduce monitor_op domctl Tamas K Lengyel
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Tamas K Lengyel @ 2015-04-09 14:32 UTC (permalink / raw)
  To: xen-devel
  Cc: kevin.tian, wei.liu2, ian.campbell, steve, stefano.stabellini,
	jun.nakajima, tim, ian.jackson, eddie.dong, andres, jbeulich,
	Tamas K Lengyel, rshriram, keir, dgdegra, yanghy, rcojocaru

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-04-16  8:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-09 14:32 [PATCH V9 0/6] xen: Clean-up of mem_event subsystem Tamas K Lengyel
2015-04-09 14:32 ` [PATCH V9 1/6] xen: Introduce monitor_op domctl Tamas K Lengyel
2015-04-09 14:32 ` [PATCH V9 2/6] xen/vm_event: Deprecate VM_EVENT_FLAG_DUMMY flag Tamas K Lengyel
2015-04-09 14:32 ` [PATCH V9 3/6] xen/vm_event: Decouple vm_event and mem_access Tamas K Lengyel
2015-04-09 14:32 ` [PATCH V9 4/6] xen/vm_event: Relocate memop checks Tamas K Lengyel
2015-04-09 14:32 ` [PATCH V9 5/6] xen/xsm: Split vm_event_op into three separate labels Tamas K Lengyel
2015-04-09 14:32 ` [PATCH V9 6/6] xen/vm_event: Add RESUME option to vm_event_op domctl Tamas K Lengyel
2015-04-16  8:53 ` [PATCH V9 0/6] xen: Clean-up of mem_event subsystem Tim Deegan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.