tools/xenstore: add control command for setting and showing quota
authorJuergen Gross <jgross@suse.com>
Tue, 13 Sep 2022 05:35:10 +0000 (07:35 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 1 Nov 2022 13:05:44 +0000 (13:05 +0000)
commit9c484bef83496b683b0087e3bd2a560da4aa37af
treebe2cd6f05b235cd8bf6139879e22f652f2eb8867
parent1da16d5990b5f7752657fca3e948f735177ea9ad
tools/xenstore: add control command for setting and showing quota

Add a xenstore-control command "quota" to:
- show current quota settings
- change quota settings
- show current quota related values of a domain

Note that in the case the new quota is lower than existing one,
Xenstored may continue to handle requests from a domain exceeding the
new limit (depends on which one has been broken) and the amount of
resource used will not change. However the domain will not be able to
create more resource (associated to the quota) until it is back to below
the limit.

This is part of XSA-326.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
docs/misc/xenstore.txt
tools/xenstore/xenstored_control.c
tools/xenstore/xenstored_domain.c
tools/xenstore/xenstored_domain.h