Skip to content

tools: add support for per-domain xenstore quota

Juergen Gross xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 8 repliesIn review
  2. v111 patches 31 repliesSuperseded

Changes in v2 from the cover letter

- addressed all comments
- new patch 2

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12tools/libs/store: add get- and set-quota related functionstools/include/xenstore.h tools/libs/store/Makefile tools/libs/store/libxenstore.map +1 more+157 -11 reply
2/12tools/xenstored: add helper to parse domidtools/xenstored/domain.c+39 -81 reply
3/12tools/xenstored: add central quota check functionstools/xenstored/core.c tools/xenstored/domain.c tools/xenstored/domain.h +2 more+42 -480 replies
4/12tools/xenstored: rework hard_quotas and soft_quotas arraystools/xenstored/control.c tools/xenstored/core.c tools/xenstored/domain.c +1 more+76 -610 replies
5/12tools/xenstored: add GLOBAL_QUOTA_DATA record for live updatetools/xenstored/domain.c tools/xenstored/domain.h tools/xenstored/lu.c+140 -01 reply
6/12tools/xenstored: split acc[] array in struct domaintools/xenstored/domain.c+16 -180 replies
7/12tools/xenstored: use per-domain quota settingstools/xenstored/domain.c+45 -150 replies
8/12tools/xenstored: implement the GET/SET_QUOTA commandstools/xenstored/core.c tools/xenstored/domain.c tools/xenstored/domain.h+120 -01 reply
9/12tools/libxl: add functions for retrieving and setting xenstore quotatools/golang/xenlight/helpers.gen.go tools/golang/xenlight/types.gen.go tools/include/libxl.h +3 more+233 -01 reply
10/12tools/libxl: add support for xenstore quota in domain_configtools/golang/xenlight/helpers.gen.go tools/golang/xenlight/types.gen.go tools/include/libxl.h +3 more+28 -02 replies
11/12tools/xl: add xl commands for xenstore quota operationstools/xl/Makefile tools/xl/xl.h tools/xl/xl_cmdtable.c +3 more+132 -01 reply
12/12tools/xl: add support for xenstore quota setting via domain configdocs/man/xl.cfg.5.pod.in tools/xl/xl_parse.c+31 -10 replies

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchAnthony PERARDNick Rosbrook
1/12R-b
2/12R-b
3/12R-b
4/12R-b
5/12R-b
6/12R-b
7/12R-b
8/12R-b
9/12R-b A-b
10/12R-b A-b
11/12R-b
12/12R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/12] tools: add support for per-domain xenstore quota

This series is adding support for per-domain Xenstore quota to:

- xenstored
- libxenstore
- libxl
- xl

With this it is possible to e.g. allow larger limits for driver domains.

Changes in V2:
- addressed all comments
- new patch 2

Juergen Gross (12):
tools/libs/store: add get- and set-quota related functions tools/xenstored: add helper to parse domid tools/xenstored: add central quota check functions tools/xenstored: rework hard_quotas and soft_quotas arrays tools/xenstored: add GLOBAL_QUOTA_DATA record for live update tools/xenstored: split acc[] array in struct domain tools/xenstored: use per-domain quota settings tools/xenstored: implement the GET/SET_QUOTA commands tools/libxl: add functions for retrieving and setting xenstore quota tools/libxl: add support for xenstore quota in domain_config tools/xl: add xl commands for xenstore quota operations tools/xl: add support for xenstore quota setting via domain config

 docs/man/xl.cfg.5.pod.in             |  13 +
 tools/golang/xenlight/helpers.gen.go |  84 +++++
 tools/golang/xenlight/types.gen.go   |  10 +
 tools/include/libxl.h                |  21 ++
 tools/include/xenstore.h             |  37 ++
 tools/libs/light/Makefile            |   1 +
 tools/libs/light/libxl_dom.c         |   8 +
 tools/libs/light/libxl_domain.c      |  11 +
 tools/libs/light/libxl_types.idl     |  10 +
 tools/libs/light/libxl_xsquota.c     | 116 ++++++
 tools/libs/store/Makefile            |   2 +-
 tools/libs/store/libxenstore.map     |   8 +
 tools/libs/store/xs.c                | 111 ++++++
 tools/xenstored/control.c            |  24 +-
 tools/xenstored/core.c               |  41 ++-
 tools/xenstored/domain.c             | 519 +++++++++++++++++++++------
 tools/xenstored/domain.h             |  28 +-
 tools/xenstored/lu.c                 |   6 +
 tools/xenstored/transaction.c        |   2 +-
 tools/xenstored/watch.c              |   4 +-
 tools/xl/Makefile                    |   1 +
 tools/xl/xl.h                        |   2 +
 tools/xl/xl_cmdtable.c               |  10 +
 tools/xl/xl_parse.c                  |  47 ++-
 tools/xl/xl_parse.h                  |   1 +
 tools/xl/xl_xsquota.c                |  90 +++++
 26 files changed, 1057 insertions(+), 150 deletions(-)
 create mode 100644 tools/libs/light/libxl_xsquota.c
 create mode 100644 tools/xl/xl_xsquota.c
Signature · 1 line
2.53.0