All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH V2 0/8] xen: Clean-up of mem_event subsystem
@ 2015-01-18 15:17 Tamas K Lengyel
  2015-01-18 15:17 ` [RFC PATCH V2 1/8] xen/mem_event: Cleanup of mem_event structures Tamas K Lengyel
                   ` (8 more replies)
  0 siblings, 9 replies; 53+ messages in thread
From: Tamas K Lengyel @ 2015-01-18 15:17 UTC (permalink / raw)
  To: xen-devel
  Cc: kevin.tian, wei.liu2, ian.campbell, stefano.stabellini,
	jun.nakajima, tim, ian.jackson, eddie.dong, andres, jbeulich,
	Tamas K Lengyel, rshriram, keir, dgdegra, yanghy

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 ambigouities in the code.

In this series we convert the mem_event structures to a union of sub-structures
which clearly define the scope of information that is transmitted via the event
delivery mechanism. Afterwards, we clean up the naming of the structures and
related functions to more clearly be in line with their actual operations.

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

Razvan Cojocaru (1):
  xen/mem_event: Cleanup of mem_event structures

Tamas K Lengyel (7):
  xen/mem_event: Rename the mem_event ring from 'access' to 'monitor'
  xen/mem_paging: Convert mem_event_op to mem_paging_op
  x86/hvm: rename hvm_memory_event_* functions to hvm_event_*
  xen/mem_event: Rename mem_event to vm_event
  xen/vm_event: Decouple vm_event and mem_access.
  tools/tests: Clean-up tools/tests/xen-access
  x86/hvm: factor out vm_event related functions into separate file

 docs/misc/pvh-readme.txt            |   2 +-
 tools/libxc/Makefile                |   2 +-
 tools/libxc/xc_domain_restore.c     |  14 +-
 tools/libxc/xc_domain_save.c        |   4 +-
 tools/libxc/xc_hvm_build_x86.c      |   2 +-
 tools/libxc/xc_mem_access.c         |  10 +-
 tools/libxc/xc_mem_event.c          | 178 ---------
 tools/libxc/xc_mem_paging.c         |  38 +-
 tools/libxc/xc_memshr.c             |  12 +-
 tools/libxc/xc_private.h            |   9 +-
 tools/libxc/xc_vm_event.c           | 162 ++++++++
 tools/libxc/xg_save_restore.h       |   2 +-
 tools/tests/xen-access/xen-access.c | 210 ++++------
 tools/xenpaging/pagein.c            |   2 +-
 tools/xenpaging/xenpaging.c         | 150 ++++----
 tools/xenpaging/xenpaging.h         |   8 +-
 xen/arch/x86/domain.c               |   2 +-
 xen/arch/x86/domctl.c               |   4 +-
 xen/arch/x86/hvm/Makefile           |   3 +-
 xen/arch/x86/hvm/emulate.c          |   4 +-
 xen/arch/x86/hvm/event.c            | 195 ++++++++++
 xen/arch/x86/hvm/hvm.c              | 154 +-------
 xen/arch/x86/hvm/vmx/vmcs.c         |   4 +-
 xen/arch/x86/hvm/vmx/vmx.c          |   7 +-
 xen/arch/x86/mm/hap/nested_ept.c    |   4 +-
 xen/arch/x86/mm/hap/nested_hap.c    |   4 +-
 xen/arch/x86/mm/mem_paging.c        |  16 +-
 xen/arch/x86/mm/mem_sharing.c       |  31 +-
 xen/arch/x86/mm/p2m-pod.c           |   4 +-
 xen/arch/x86/mm/p2m-pt.c            |   4 +-
 xen/arch/x86/mm/p2m.c               | 213 ++++++-----
 xen/arch/x86/x86_64/compat/mm.c     |  12 +-
 xen/arch/x86/x86_64/mm.c            |  13 +-
 xen/common/Makefile                 |   2 +-
 xen/common/domain.c                 |  12 +-
 xen/common/domctl.c                 |   6 +-
 xen/common/mem_access.c             |  24 +-
 xen/common/mem_event.c              | 742 ------------------------------------
 xen/common/vm_event.c               | 742 ++++++++++++++++++++++++++++++++++++
 xen/drivers/passthrough/pci.c       |   2 +-
 xen/include/Makefile                |   2 +-
 xen/include/asm-arm/p2m.h           |   6 +-
 xen/include/asm-x86/domain.h        |   4 +-
 xen/include/asm-x86/hvm/emulate.h   |   2 +-
 xen/include/asm-x86/hvm/event.h     |  40 ++
 xen/include/asm-x86/hvm/hvm.h       |  11 -
 xen/include/asm-x86/mem_paging.h    |   2 +-
 xen/include/asm-x86/p2m.h           |  16 +-
 xen/include/public/domctl.h         |  44 +--
 xen/include/public/hvm/params.h     |   2 +-
 xen/include/public/mem_event.h      | 134 -------
 xen/include/public/memory.h         |   6 +-
 xen/include/public/vm_event.h       | 197 ++++++++++
 xen/include/xen/mem_access.h        |   4 +-
 xen/include/xen/mem_event.h         | 143 -------
 xen/include/xen/p2m-common.h        |   4 +-
 xen/include/xen/sched.h             |  24 +-
 xen/include/xen/vm_event.h          |  87 +++++
 xen/include/xsm/dummy.h             |   6 +-
 xen/include/xsm/xsm.h               |  14 +-
 xen/xsm/dummy.c                     |   6 +-
 xen/xsm/flask/hooks.c               |  36 +-
 xen/xsm/flask/policy/access_vectors |   2 +-
 63 files changed, 1909 insertions(+), 1892 deletions(-)
 delete mode 100644 tools/libxc/xc_mem_event.c
 create mode 100644 tools/libxc/xc_vm_event.c
 create mode 100644 xen/arch/x86/hvm/event.c
 delete mode 100644 xen/common/mem_event.c
 create mode 100644 xen/common/vm_event.c
 create mode 100644 xen/include/asm-x86/hvm/event.h
 delete mode 100644 xen/include/public/mem_event.h
 create mode 100644 xen/include/public/vm_event.h
 delete mode 100644 xen/include/xen/mem_event.h
 create mode 100644 xen/include/xen/vm_event.h

-- 
2.1.4

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

end of thread, other threads:[~2015-01-29 13:03 UTC | newest]

Thread overview: 53+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-18 15:17 [RFC PATCH V2 0/8] xen: Clean-up of mem_event subsystem Tamas K Lengyel
2015-01-18 15:17 ` [RFC PATCH V2 1/8] xen/mem_event: Cleanup of mem_event structures Tamas K Lengyel
2015-01-22 12:43   ` Tim Deegan
2015-01-22 12:50     ` Razvan Cojocaru
2015-01-22 12:50     ` Tamas K Lengyel
2015-01-22 12:53       ` Razvan Cojocaru
2015-01-22 13:11       ` Tim Deegan
2015-01-22 15:00   ` Jan Beulich
2015-01-22 15:34     ` Tamas K Lengyel
2015-01-22 16:00       ` Jan Beulich
2015-01-22 16:23         ` Tamas K Lengyel
2015-01-22 16:34           ` Jan Beulich
     [not found]             ` <CAErYnsj8B1Fbo=JD3hLz-8kjtt-FoWTrSkGnbkvVf=iR64MDBQ@mail.gmail.com>
2015-01-23  9:00               ` Jan Beulich
2015-01-23  9:18                 ` Tamas K Lengyel
2015-01-29 11:54       ` Tamas K Lengyel
2015-01-29 12:02         ` Jan Beulich
2015-01-29 12:09           ` Tamas K Lengyel
2015-01-29 12:15             ` Tamas K Lengyel
2015-01-29 12:51             ` Jan Beulich
2015-01-29 13:03               ` Tamas K Lengyel
2015-01-18 15:17 ` [RFC PATCH V2 2/8] xen/mem_event: Rename the mem_event ring from 'access' to 'monitor' Tamas K Lengyel
2015-01-22 12:53   ` Tim Deegan
2015-01-22 14:12     ` Tamas K Lengyel
2015-01-22 15:02   ` Jan Beulich
2015-01-22 15:42     ` Tamas K Lengyel
2015-01-18 15:17 ` [RFC PATCH V2 3/8] xen/mem_paging: Convert mem_event_op to mem_paging_op Tamas K Lengyel
2015-01-22 13:03   ` Tim Deegan
2015-01-22 15:09   ` Jan Beulich
2015-01-22 15:41     ` Tamas K Lengyel
2015-01-18 15:17 ` [RFC PATCH V2 4/8] x86/hvm: rename hvm_memory_event_* functions to hvm_event_* Tamas K Lengyel
2015-01-22 13:05   ` Tim Deegan
2015-01-22 15:56   ` Andrew Cooper
2015-01-22 16:34     ` Tamas K Lengyel
2015-01-18 15:17 ` [RFC PATCH V2 5/8] xen/mem_event: Rename mem_event to vm_event Tamas K Lengyel
2015-01-22 14:52   ` Tim Deegan
2015-01-22 15:02     ` Tamas K Lengyel
2015-01-18 15:17 ` [RFC PATCH V2 6/8] xen/vm_event: Decouple vm_event and mem_access Tamas K Lengyel
2015-01-22 14:56   ` Tim Deegan
2015-01-22 15:35     ` Tamas K Lengyel
2015-01-18 15:18 ` [RFC PATCH V2 7/8] tools/tests: Clean-up tools/tests/xen-access Tamas K Lengyel
2015-01-18 15:18 ` [RFC PATCH V2 8/8] x86/hvm: factor out vm_event related functions into separate file Tamas K Lengyel
2015-01-22 15:00   ` Tim Deegan
2015-01-22 15:36     ` Tamas K Lengyel
2015-01-22 16:25   ` Jan Beulich
2015-01-22 16:42     ` Tamas K Lengyel
2015-01-22 16:50       ` Tim Deegan
2015-01-23  8:56       ` Razvan Cojocaru
2015-01-23  9:03         ` Jan Beulich
2015-01-23  9:21           ` Tamas K Lengyel
2015-01-22 16:32   ` Andrew Cooper
2015-01-22 16:41     ` Tamas K Lengyel
2015-01-19 13:03 ` [RFC PATCH V2 0/8] xen: Clean-up of mem_event subsystem Andrew Cooper
2015-01-21 10:59   ` Tamas K Lengyel

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.