]> xenbits.xensource.com Git - xen.git/commit
oxenstored: ignore domains with no conflict-credit
authorThomas Sanders <thomas.sanders@citrix.com>
Tue, 14 Mar 2017 12:15:52 +0000 (12:15 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 5 Apr 2017 14:22:33 +0000 (15:22 +0100)
commitbc01e2dc66132f84840b020e2146e26f0ba1b2a4
treed7433bf7f8146fab5aea673f7796d15b54759a7f
parentda50922f7d84c777dbf79af930110edf8983fc1e
oxenstored: ignore domains with no conflict-credit

When processing connections, skip those from domains with no remaining
conflict-credit.

Also, issue a point of conflict-credit at regular intervals, the
period being set by the configuration option "conflict-max-history-
seconds".  When issuing conflict-credit, we give a point either to
every domain at once (one each) or only to the single domain at the
front of the queue, depending on the configuration option
"conflict-rate-limit-is-aggregate".

Reported-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Reviewed-by: Jonathan Davies <jonathan.davies@citrix.com>
Reviewed-by: Christian Lindig <christian.lindig@citrix.com>
tools/ocaml/xenstored/connections.ml
tools/ocaml/xenstored/define.ml
tools/ocaml/xenstored/domains.ml
tools/ocaml/xenstored/oxenstored.conf
tools/ocaml/xenstored/xenstored.ml