]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: process: Rename 'qemuProcessSetupDiskThrottling' to 'qemuProcessSetupDisks'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 29 Jan 2026 10:21:38 +0000 (11:21 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 16 Feb 2026 09:24:01 +0000 (10:24 +0100)
Rename the runtime disk option setup function to be universal.

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

index 417784b7589c88e80539b6daf538cb194f7e85d8..2e83b447fbd05dd148a42ab7fc7b1f1fc813cae1 100644 (file)
@@ -7968,21 +7968,19 @@ qemuProcessSetupDiskPropsRuntime(qemuMonitor *mon,
 
 
 /**
- * qemuProcessSetupDiskThrottling:
+ * qemuProcessSetupDisks:
  *
- * Sets up disk trottling for -blockdev via block_set_io_throttle monitor
- * command. This hack should be replaced by proper use of the 'throttle'
- * blockdev driver in qemu once it will support changing of the throttle group.
- * Same hack is done in qemuDomainAttachDiskGeneric.
+ * Sets up disk settings available only at runtime:
+ *  - trottling for -blockdev via block_set_io_throttle QMP command
  */
 static int
-qemuProcessSetupDiskThrottling(virDomainObj *vm,
-                               virDomainAsyncJob asyncJob)
+qemuProcessSetupDisks(virDomainObj *vm,
+                      virDomainAsyncJob asyncJob)
 {
     size_t i;
     int ret = -1;
 
-    VIR_DEBUG("Setting up disk throttling for -blockdev via block_set_io_throttle");
+    VIR_DEBUG("Setting up disk config via runtime commands");
 
     if (qemuDomainObjEnterMonitorAsync(vm, asyncJob) < 0)
         return -1;
@@ -8579,7 +8577,7 @@ qemuProcessLaunch(virConnectPtr conn,
     if (qemuProcessSetupBalloon(vm, asyncJob) < 0)
         goto cleanup;
 
-    if (qemuProcessSetupDiskThrottling(vm, asyncJob) < 0)
+    if (qemuProcessSetupDisks(vm, asyncJob) < 0)
         goto cleanup;
 
     /* Since CPUs were not started yet, the balloon could not return the memory