From: Peter Krempa <[email protected]>

Rename the runtime disk option setup function to be universal.

Signed-off-by: Peter Krempa <[email protected]>
---
 src/qemu/qemu_process.c | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 8708c2d66b..411c5b3b88 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -7963,21 +7963,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;
@@ -8574,7 +8572,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
-- 
2.52.0

Reply via email to