]> xenbits.xensource.com Git - xen.git/commit
oxenstored: enable domain connection indexing based on eventchn port
authorZheng Li <dev@zheng.li>
Fri, 24 Mar 2017 17:02:55 +0000 (17:02 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 5 Apr 2017 14:26:37 +0000 (15:26 +0100)
commit1fb43d3e7cbec77c686eeec41c7dcb3e2c461c75
treec47acc7c91fb096d9eb7e7de7ec35e101dc0a510
parent0a8a4af826da9f8b17082370a0de42ff98b76df7
oxenstored: enable domain connection indexing based on eventchn port

Currently in xenstore connection database,  we use a hash table of
(domid -> connection) to store domain connections. This allows fast indexing
based on dom ids.

This patch adds another dimention of fast indexing that is based on eventchn
port number. This is useful when doing selective connection processing
based on the port numbers of incoming events.

Reported-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Zheng Li <dev@zheng.li>
Reviewed-by: David Scott <dave.scott@citrix.com>
tools/ocaml/xenstored/connections.ml
tools/ocaml/xenstored/domain.ml