forked from Mirror/pmbootstrap
pmb.qemu: add --no-kvm to disable KVM even when available (!1886)
To test QEMU's CPU emulation it is useful to have a switch to disable KVM, even when it is available (and potentially working fine). Add --no-kvm for that purpose.
This commit is contained in:
parent
903491f518
commit
76dcf8aa0b
2 changed files with 5 additions and 1 deletions
|
@ -144,7 +144,7 @@ def command_qemu(args, arch, img_path):
|
|||
|
||||
# Kernel Virtual Machine (KVM) support
|
||||
native = args.arch_native == args.deviceinfo["arch"]
|
||||
if native and os.path.exists("/dev/kvm"):
|
||||
if args.qemu_kvm and native and os.path.exists("/dev/kvm"):
|
||||
command += ["-enable-kvm"]
|
||||
else:
|
||||
logging.info("WARNING: QEMU is not using KVM and will run slower!")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue