]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vz: keep subscription to performance events thru domain lifetime
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Fri, 3 Jun 2016 07:11:44 +0000 (10:11 +0300)
committerMaxim Nestratov <mnestratov@virtuozzo.com>
Sat, 11 Jun 2016 10:27:55 +0000 (13:27 +0300)
commit4f17e4d0a16aa04b5ad86c4112a5187541b5af80
tree923f63866d89e7d59690ead7c3e39cc71060181b
parent4385b86817a62e2c9731a4faad828a888511c92d
vz: keep subscription to performance events thru domain lifetime

The approach of subscribing on first stat API call and then waiting
for receiving of performance event from sdk to process the call originates
in times when every vz libvirt connections spawns its own sdk connection.
Thus without this waiting virsh stat call would return empty stats. Now
with single sdk connection this scheme is unnecessary complicated.

This patch subscribes to performance events on first domain appearence
and unsubscribe on its removing.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Signed-off-by: Maxim Nestratov <mnestratov@virtuozzo.com>
src/vz/vz_driver.c
src/vz/vz_sdk.c
src/vz/vz_sdk.h
src/vz/vz_utils.c
src/vz/vz_utils.h