1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 16:28:11 +00:00

Fix "-machine accel=tcg" check

This commit is contained in:
grossmj 2021-08-10 15:41:05 +09:30
parent c5c95979c2
commit 3ae7783360

View File

@ -139,7 +139,7 @@ async def start_qemu_node(node: QemuVM = Depends(dep_node)) -> None:
qemu_manager = Qemu.instance()
hardware_accel = qemu_manager.config.settings.Qemu.enable_hardware_acceleration
if hardware_accel and "-no-kvm" not in node.options and "-no-hax" not in node.options:
if hardware_accel and "-machine accel=tcg" not in node.options:
pm = ProjectManager.instance()
if pm.check_hardware_virtualization(node) is False:
pass # FIXME: check this