[PATCH 00/11] tools: add support for per-domain xenstore quota

Juergen Gross posted 11 patches 1 month, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20260305135208.2208663-1-jgross@suse.com
There is a newer version of this series
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                |  20 ++
tools/include/xenstore.h             |  19 ++
tools/libs/light/Makefile            |   1 +
tools/libs/light/libxl_dom.c         |   8 +
tools/libs/light/libxl_domain.c      |  10 +
tools/libs/light/libxl_types.idl     |  10 +
tools/libs/light/libxl_xsquota.c     | 102 ++++++
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             | 457 +++++++++++++++++++++------
tools/xenstored/domain.h             |  32 +-
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                  |  48 ++-
tools/xl/xl_parse.h                  |   1 +
tools/xl/xl_xsquota.c                |  88 ++++++
26 files changed, 972 insertions(+), 142 deletions(-)
create mode 100644 tools/libs/light/libxl_xsquota.c
create mode 100644 tools/xl/xl_xsquota.c
[PATCH 00/11] tools: add support for per-domain xenstore quota
Posted by Juergen Gross 1 month, 1 week ago
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.

Juergen Gross (11):
  tools/libs/store: add get- and set-quota related functions
  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: add infrastructure for per-domain quotas
  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                |  20 ++
 tools/include/xenstore.h             |  19 ++
 tools/libs/light/Makefile            |   1 +
 tools/libs/light/libxl_dom.c         |   8 +
 tools/libs/light/libxl_domain.c      |  10 +
 tools/libs/light/libxl_types.idl     |  10 +
 tools/libs/light/libxl_xsquota.c     | 102 ++++++
 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             | 457 +++++++++++++++++++++------
 tools/xenstored/domain.h             |  32 +-
 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                  |  48 ++-
 tools/xl/xl_parse.h                  |   1 +
 tools/xl/xl_xsquota.c                |  88 ++++++
 26 files changed, 972 insertions(+), 142 deletions(-)
 create mode 100644 tools/libs/light/libxl_xsquota.c
 create mode 100644 tools/xl/xl_xsquota.c

-- 
2.53.0