From: Peter Krempa Date: Thu, 29 Jan 2026 10:21:38 +0000 (+0100) Subject: qemu: process: Rename 'qemuProcessSetupDiskThrottling' to 'qemuProcessSetupDisks' X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42a39d703d98e4e48f0f9c8779884b6ac107de26;p=thirdparty%2Flibvirt.git qemu: process: Rename 'qemuProcessSetupDiskThrottling' to 'qemuProcessSetupDisks' Rename the runtime disk option setup function to be universal. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 417784b758..2e83b447fb 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -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