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

Michal Prívozník mprivozn at redhat.com
Mon Jul 12 12:05:23 UTC 2021


On 6/30/21 1:05 AM, William Douglas wrote:
> 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;
>  
> 

This can be merged with the previous patch.

Michal




More information about the libvir-list mailing list