10 Aug
2026
10 Aug
'26
3:23 p.m.
On Fri, Aug 07, 2026 at 06:55:29PM +0200, Roman Bogorodskiy wrote:
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>