1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-11 09:17:52 +03:00

qemuProcessPrepareDomain: pass xmlopt when creating monConfig

Pass the driver's xmlopt to allocate the chardev source private
data correctly.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Ján Tomko 2018-10-03 18:51:16 +02:00
parent 912b8a5970
commit 7c94eebfe2

View File

@ -5982,7 +5982,7 @@ qemuProcessPrepareDomain(virQEMUDriverPtr driver,
goto cleanup;
}
if (!(priv->monConfig = virDomainChrSourceDefNew(NULL)))
if (!(priv->monConfig = virDomainChrSourceDefNew(driver->xmlopt)))
goto cleanup;
VIR_DEBUG("Preparing monitor state");