[PATCH v2 1/2] qemu: support append param on live attaching file chardev

Daniel Henrique Barboza danielhb413 at gmail.com
Wed Dec 2 13:55:05 UTC 2020



On 12/2/20 9:25 AM, Nikolay Shirokovskiy wrote:
> Currently it is simply ignored.
> 
> Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy at virtuozzo.com>
> ---

Reviewed-by: Daniel Henrique Barboza <danielhb413 at gmail.com>

>   src/qemu/qemu_monitor_json.c | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
> index 47ee1ff..ff03a5a 100644
> --- a/src/qemu/qemu_monitor_json.c
> +++ b/src/qemu/qemu_monitor_json.c
> @@ -7497,6 +7497,10 @@ qemuMonitorJSONAttachCharDevCommand(const char *chrID,
>           backend_type = "file";
>           if (virJSONValueObjectAppendString(data, "out", chr->data.file.path) < 0)
>               goto cleanup;
> +        if (virJSONValueObjectAdd(data,
> +                                  "T:append", chr->data.file.append,
> +                                  NULL) < 0)
> +            goto cleanup;
>           break;
>   
>       case VIR_DOMAIN_CHR_TYPE_DEV:
> 




More information about the libvir-list mailing list