Skip to content

RFC Per-domain locking in xl

Wei Liu xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4xl: move {acquire, release}_lock to xl_utils.ctools/xl/xl_utils.c tools/xl/xl_utils.h tools/xl/xl_vmcontrol.c+70 -670 replies
2/4xl: make lock functions work with arbitrary files and fdstools/xl/xl.c tools/xl/xl.h tools/xl/xl_utils.c +2 more+37 -330 replies
3/4xl: introduce facility to run function with per-domain lock heldtools/xl/xl.h tools/xl/xl_utils.c tools/xl/xl_utils.h+23 -01 reply
4/4XXX a command to test the locking facilitytools/xl/xl.h tools/xl/xl_cmdtable.c tools/xl/xl_misc.c+44 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [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 <[email protected]>
Cc Andrew Cooper <[email protected]>

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(-)
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel