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

[Xen-devel] [RFC PATCH 0/4] Per-domain locking in xl



It has always been the case that different xl processes can manipulate the same
domain at the same time. This could be problematic.

This series attempts to provide facility for xl to have a per-domain lock. This
lock should be used whenever xl manipulates an existing domain.

The last patch is an example on using the facility and serves as an example for
further refactoring. The refactoring is a bit tedious so I would like to know
if people are happy with this approach before working on it further.

Cc: Jan Beulich <jbeulich@xxxxxxxx>
Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

Wei Liu (4):
  xl: move {acquire,release}_lock to xl_utils.c
  xl: make lock functions work with arbitrary files and fds
  xl: introduce facility to run function with per-domain lock held
  XXX a command to test the locking facility

 tools/xl/xl.c           | 19 ++++++-----
 tools/xl/xl.h           |  6 +++-
 tools/xl/xl_cmdtable.c  |  5 +++
 tools/xl/xl_misc.c      | 37 +++++++++++++++++++++
 tools/xl/xl_utils.c     | 88 +++++++++++++++++++++++++++++++++++++++++++++++++
 tools/xl/xl_utils.h     |  6 ++++
 tools/xl/xl_vmcontrol.c | 73 ++--------------------------------------
 7 files changed, 154 insertions(+), 80 deletions(-)

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