]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuDomainSetThrottleGroup: Don't put group name into the 'tunable' event twice
authorPeter Krempa <pkrempa@redhat.com>
Fri, 16 Jan 2026 15:39:49 +0000 (16:39 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 20 Jan 2026 16:11:53 +0000 (17:11 +0100)
'qemuDomainSetBlockIoTuneFields' already populates the contents of the
VIR_DOMAIN_EVENT_ID_TUNABLE params with the group name so there's no
need to do it explicitly. We'd report the group name twice:

 event 'tunable' for domain 'cd':
blkdeviotune.group_name: asdf
blkdeviotune.total_bytes_sec: 1234
blkdeviotune.group_name: asdf

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c

index 9addad3b9e0e11d6d708ad30402f2f65bee6b1fc..cdd333c882482bd67a9346014541e9065fd3a7cc 100644 (file)
@@ -20387,10 +20387,6 @@ qemuDomainSetThrottleGroup(virDomainPtr dom,
     if (virDomainObjGetDefs(vm, flags, &def, &persistentDef) < 0)
         goto endjob;
 
-    if (virTypedParamsAddString(&eventParams, &eventNparams, &eventMaxparams,
-                                VIR_DOMAIN_TUNABLE_BLKDEV_GROUP_NAME, groupname) < 0)
-        goto endjob;
-
     if (qemuDomainSetBlockIoTuneFields(&info,
                                        params,
                                        nparams,