]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Init address before qemuProcessShutdownOrReboot during reconnect process
authorJiang Jiacheng <jiangjiacheng@huawei.com>
Wed, 28 Sep 2022 13:53:28 +0000 (21:53 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 12 Oct 2022 12:47:55 +0000 (14:47 +0200)
commit1241670abd12a324ff80fbbf2f490dcb32fd00b0
tree84865bf5dc2161975c5f7a398bf011ec65a2704e
parentf30843142aa0836423f5e3ff7a45707eb13ce553
qemu: Init address before qemuProcessShutdownOrReboot during reconnect process

When libvirt is restarted, the qemuProcessShutdownReboot command is
executed to restore the VM that is being restarted. In this case, a
coredump may occur when we hotplug a pci device since the PCI address
hasn't be inited yet. Moving the initialization of address to the front
of qemuProcessShutdownOrReboot to ensure that we have the address inited.

Signed-off-by: Jiang Jiacheng <jiangjiacheng@huawei.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_process.c