Search in sources :

Example 26 with DiskDef

use of com.cloud.hypervisor.kvm.resource.LibvirtVMDef.DiskDef in project cloudstack by apache.

the class LibvirtComputingResourceTest method setDiskIoDriverTestLibvirtSupportsIoUring.

@Test
public void setDiskIoDriverTestLibvirtSupportsIoUring() {
    DiskDef diskDef = configureAndTestSetDiskIoDriverTest(123l, HYPERVISOR_QEMU_VERSION_SUPPORTS_IOURING);
    Assert.assertNotEquals(DiskDef.IoDriver.IOURING, diskDef.getIoDriver());
}
Also used : DiskDef(com.cloud.hypervisor.kvm.resource.LibvirtVMDef.DiskDef) Test(org.junit.Test) PrepareForTest(org.powermock.core.classloader.annotations.PrepareForTest)

Example 27 with DiskDef

use of com.cloud.hypervisor.kvm.resource.LibvirtVMDef.DiskDef in project cloudstack by apache.

the class LibvirtComputingResourceTest method setDiskIoDriverTestIoUring.

public void setDiskIoDriverTestIoUring() {
    DiskDef diskDef = configureAndTestSetDiskIoDriverTest(HYPERVISOR_LIBVIRT_VERSION_SUPPORTS_IOURING, HYPERVISOR_QEMU_VERSION_SUPPORTS_IOURING);
    Assert.assertEquals(DiskDef.IoDriver.IOURING, diskDef.getIoDriver());
}
Also used : DiskDef(com.cloud.hypervisor.kvm.resource.LibvirtVMDef.DiskDef)

Aggregations

DiskDef (com.cloud.hypervisor.kvm.resource.LibvirtVMDef.DiskDef)27 Domain (org.libvirt.Domain)10 Test (org.junit.Test)8 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)8 InterfaceDef (com.cloud.hypervisor.kvm.resource.LibvirtVMDef.InterfaceDef)7 InternalErrorException (com.cloud.exception.InternalErrorException)6 LibvirtException (org.libvirt.LibvirtException)6 KVMStoragePool (com.cloud.hypervisor.kvm.storage.KVMStoragePool)4 IOException (java.io.IOException)4 ArrayList (java.util.ArrayList)4 Connect (org.libvirt.Connect)4 MigrateDiskInfo (com.cloud.agent.api.MigrateCommand.MigrateDiskInfo)3 KVMPhysicalDisk (com.cloud.hypervisor.kvm.storage.KVMPhysicalDisk)3 File (java.io.File)3 URISyntaxException (java.net.URISyntaxException)3 DomainBlockStats (org.libvirt.DomainBlockStats)3 VmStatsEntry (com.cloud.agent.api.VmStatsEntry)2 DiskTO (com.cloud.agent.api.to.DiskTO)2 DpdkTO (com.cloud.agent.api.to.DpdkTO)2 VirtualMachineTO (com.cloud.agent.api.to.VirtualMachineTO)2