[PATCH 05/10] ch_monitor: Make use of the PTY json builder

William Douglas william.douglas at intel.com
Tue Jun 29 23:05:48 UTC 2021


Call into the PTY json builder for configured serial and console
devices though the devices themselves still aren't allowed in
configuration.

Signed-off-by: William Douglas <william.douglas at intel.com>
---
 src/ch/ch_monitor.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/ch/ch_monitor.c b/src/ch/ch_monitor.c
index d4289b75ce..2ade6967fb 100644
--- a/src/ch/ch_monitor.c
+++ b/src/ch/ch_monitor.c
@@ -429,6 +429,9 @@ virCHMonitorBuildVMJson(virDomainDef *vmdef, char **jsonstr)
         goto cleanup;
     }
 
+    if (virCHMonitorBuildPTYJson(content, vmdef) < 0)
+        goto cleanup;
+
     if (virCHMonitorBuildCPUJson(content, vmdef) < 0)
         goto cleanup;
 
-- 
2.31.1




More information about the libvir-list mailing list