From 7c94eebfe2b8d28552b800506ccfbb64e4d2c3bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Wed, 3 Oct 2018 18:51:16 +0200 Subject: [PATCH] qemuProcessPrepareDomain: pass xmlopt when creating monConfig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pass the driver's xmlopt to allocate the chardev source private data correctly. Signed-off-by: Ján Tomko --- src/qemu/qemu_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 9cf971808c..c698c3b29c 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -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");