]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Init ext devices paths on reconnect
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 5 Dec 2022 12:08:39 +0000 (13:08 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 5 Dec 2022 13:25:25 +0000 (14:25 +0100)
commit7a2034127010598b91fa576f72f330baf50c1085
tree1c195529a5c7d63669f5c99b08915ea08097b0b7
parent3458c3ff8c2c5fa071243b85aa5f3d48b31b1b28
qemu: Init ext devices paths on reconnect

Paths for external devices (well, so far only vTPM) are not
stored in the status XML. Therefore, we need to regenerate them
after we've been restarted and reconnecting to a running domain.
Otherwise these will remain NULL which may later lead to a NULL
dereference.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2150760
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_process.c