]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bhyve: restore persistent definition after process stop master
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Fri, 31 Jul 2026 18:40:01 +0000 (20:40 +0200)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 10 Aug 2026 15:53:34 +0000 (17:53 +0200)
commit10a588bda5b547ccb52cd825933a0acc9c4f94ba
treed2ff5b87ae248a505d20bd33e60f5a68ad0bca97
parente791c090ea75956aeb0663cee75d02cd3adfbeca
bhyve: restore persistent definition after process stop

The virBhyveProcessStop() function which handles bhyve process
shutdown does not remove the transient definition, meaning
that it overrides the persistent definition.

Update it to call virDomainObjRemoveTransientDef(). Also, move the body
of the code to virBhyveProcessStopImpl() which accepts 'restoreDef'
argument telling whether the transient definition should be removed.

That is necessary as reboot is implemented as stop + start, and
in this case the transient definition should not be removed.

Closes: https://gitlab.com/libvirt/libvirt/-/work_items/900
Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/bhyve/bhyve_process.c