qemu: support append param on live attaching file chardev

Currently it is simply ignored.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
Nikolay Shirokovskiy 2020-12-02 14:43:25 +03:00
parent 5f6a761899
commit 106a89fbf7

View File

@ -7457,6 +7457,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: