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

Nikolay Shirokovskiy nshirokovskiy at virtuozzo.com
Wed Dec 2 12:25:09 UTC 2020


Currently it is simply ignored.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy at virtuozzo.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:
-- 
1.8.3.1




More information about the libvir-list mailing list