|
|
|
@ -855,21 +855,15 @@ def test_options(linux_platform, vm):
|
|
|
|
|
assert vm.kvm is False
|
|
|
|
|
|
|
|
|
|
vm.options = "-no-kvm"
|
|
|
|
|
assert vm.options == "-no-kvm"
|
|
|
|
|
assert vm.options == "-machine accel=tcg"
|
|
|
|
|
|
|
|
|
|
vm.options = "-enable-kvm"
|
|
|
|
|
assert vm.options == "-enable-kvm"
|
|
|
|
|
|
|
|
|
|
vm.options = "-icount 12"
|
|
|
|
|
assert vm.options == "-no-kvm -icount 12"
|
|
|
|
|
|
|
|
|
|
vm.options = "-icount 12 -no-kvm"
|
|
|
|
|
assert vm.options == "-icount 12 -no-kvm"
|
|
|
|
|
assert vm.options == "-machine accel=kvm"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_options_windows(windows_platform, vm):
|
|
|
|
|
vm.options = "-no-kvm"
|
|
|
|
|
assert vm.options == ""
|
|
|
|
|
assert vm.options == "-machine accel=tcg"
|
|
|
|
|
|
|
|
|
|
vm.options = "-enable-kvm"
|
|
|
|
|
assert vm.options == ""
|
|
|
|
@ -919,7 +913,7 @@ async def test_run_with_kvm_linux_options_no_kvm(linux_platform, vm):
|
|
|
|
|
|
|
|
|
|
with patch("os.path.exists", return_value=True) as os_path:
|
|
|
|
|
vm.manager.config.settings.Qemu.enable_hardware_acceleration = True
|
|
|
|
|
assert await vm._run_with_hardware_acceleration("qemu-system-x86_64", "-no-kvm") is False
|
|
|
|
|
assert await vm._run_with_hardware_acceleration("qemu-system-x86_64", "-machine accel=tcg") is False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.asyncio
|
|
|
|
|