Skip to content

Commit 65dc2df

Browse files
committed
Merge branch '4.16'
2 parents 67002b6 + 42a92dc commit 65dc2df

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

agent/conf/agent.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,3 +288,6 @@ iscsi.session.cleanup.enabled=false
288288

289289
# Manually set the host CPU MHz, in cases where CPU scaling support detected value is wrong
290290
# host.cpu.manual.speed.mhz=0
291+
292+
# Enable/disable IO driver for Qemu / It's enabled by default on KVM agents
293+
# enable.io.uring=true

agent/src/main/java/com/cloud/agent/properties/AgentProperties.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ public class AgentProperties{
5454
*/
5555
public static final Property<Boolean> ENABLE_MANUALLY_SETTING_CPU_TOPOLOGY_ON_KVM_VM = new Property<Boolean>("enable.manually.setting.cpu.topology.on.kvm.vm", true);
5656

57+
/**
58+
* Enable manually IO driver on KVM's VM. <br>
59+
* Data type: boolean.<br>
60+
* Default value: true.
61+
*/
62+
public static final Property<Boolean> ENABLE_IO_URING = new Property<Boolean>("enable.io.uring", true);
63+
5764
public static class Property <T>{
5865
private final String name;
5966
private final T defaultValue;

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2994,7 +2994,9 @@ private KVMPhysicalDisk getPhysicalDiskPrimaryStore(PrimaryDataStoreTO primaryDa
29942994
* (ii) Libvirt >= 6.3.0
29952995
*/
29962996
protected void setDiskIoDriver(DiskDef disk) {
2997-
if (getHypervisorLibvirtVersion() >= HYPERVISOR_LIBVIRT_VERSION_SUPPORTS_IO_URING && getHypervisorQemuVersion() >= HYPERVISOR_QEMU_VERSION_SUPPORTS_IO_URING) {
2997+
if (getHypervisorLibvirtVersion() >= HYPERVISOR_LIBVIRT_VERSION_SUPPORTS_IO_URING
2998+
&& getHypervisorQemuVersion() >= HYPERVISOR_QEMU_VERSION_SUPPORTS_IO_URING
2999+
&& AgentPropertiesFileHandler.getPropertyValue(AgentProperties.ENABLE_IO_URING)) {
29983000
disk.setIoDriver(DiskDef.IoDriver.IOURING);
29993001
}
30003002
}

0 commit comments

Comments
 (0)