]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: move state stop into virNetDaemon class
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 7 Jan 2025 10:27:01 +0000 (10:27 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 20 Mar 2025 14:55:17 +0000 (14:55 +0000)
commit1cad0a1c78ceffd6c1fa452881e045f9e5610ec9
tree8bea83c5c27e9d3c9f37db71ae5e305b5d6dc275
parent77c32d2d533c4d96f7509828f4fe4ed8a932f0e9
rpc: move state stop into virNetDaemon class

Currently the remote daemon code is responsible for calling virStateStop
in a background thread. The virNetDaemon code wants to synchronize with
this during shutdown, however, so the virThreadPtr must be passed over.

Even the limited synchronization done currently, however, is flawed and
to fix this requires the virNetDaemon code to be responsible for calling
virStateStop in a thread more directly.

Thus the logic is moved over into virStateStop via a further callback
to be registered by the remote daemon.

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/libvirt_remote.syms
src/remote/remote_daemon.c
src/rpc/virnetdaemon.c
src/rpc/virnetdaemon.h