]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ch: virCHProcessEvent() update domain info after reboot
authorKirill Shchetiniuk via Devel <devel@lists.libvirt.org>
Tue, 25 Mar 2025 14:11:58 +0000 (15:11 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 2 Apr 2025 15:35:28 +0000 (17:35 +0200)
commitad22460a75f8890483abd7b029c95db98357a092
tree88468164077e428287c2475ad6c354b9177c9fac
parent9d6e2d127e673642b0fb135b6d58539a8e332e08
ch: virCHProcessEvent() update domain info after reboot

When the domain was rebooted, some of its properties were changed but
not updated in the transient domain definition. This led to the
inability to connect to the serial console as its path had changed
during the reboot but was not updated in the domain definition.

Added VIR_CH_EVENT_VM_REBOOTED event handling to update the
information in transient domain definition after domain's reboot is
completed to maintain it in consistent state.

Signed-off-by: Kirill Shchetiniuk <kshcheti@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/ch/ch_events.c
src/ch/ch_process.c
src/ch/ch_process.h