aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/targetcontrol.py
diff options
context:
space:
mode:
authorBill Randle <william.c.randle@intel.com>2016-08-16 16:08:11 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-18 09:27:14 +0100
commitebac2c8d1fcd09ebce0659a4abb445e4f1c18571 (patch)
tree826ed4d2eff853cd077a047f5394d4eaf52bbb1d /meta/lib/oeqa/targetcontrol.py
parent9d68c024790850cab72ead1e3372a5fcec4ef7b0 (diff)
downloadopenembedded-core-contrib-ebac2c8d1fcd09ebce0659a4abb445e4f1c18571.tar.gz
openembedded-core-contrib-ebac2c8d1fcd09ebce0659a4abb445e4f1c18571.tar.bz2
openembedded-core-contrib-ebac2c8d1fcd09ebce0659a4abb445e4f1c18571.zip
testimage: allow using kvm when running qemux86* machines
Using kvm can provide significant speedups when running qemux86* machines on an x86* host. Enabled by using the new QEMU_USE_KVM variable. [YOCTO #9298] Signed-off-by: Bill Randle <william.c.randle@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/targetcontrol.py')
-rw-r--r--meta/lib/oeqa/targetcontrol.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py
index 768c463076..3209ef0430 100644
--- a/meta/lib/oeqa/targetcontrol.py
+++ b/meta/lib/oeqa/targetcontrol.py
@@ -125,6 +125,12 @@ class QemuTarget(BaseTarget):
dump_target_cmds = d.getVar("testimage_dump_target", True)
dump_host_cmds = d.getVar("testimage_dump_host", True)
dump_dir = d.getVar("TESTIMAGE_DUMP_DIR", True)
+ if d.getVar("QEMU_USE_KVM", False) is not None \
+ and d.getVar("QEMU_USE_KVM", False) == "True" \
+ and "x86" in d.getVar("MACHINE", True):
+ use_kvm = True
+ else:
+ use_kvm = False
# Log QemuRunner log output to a file
import oe.path
@@ -153,6 +159,7 @@ class QemuTarget(BaseTarget):
display = d.getVar("BB_ORIGENV", False).getVar("DISPLAY", True),
logfile = self.qemulog,
boottime = int(d.getVar("TEST_QEMUBOOT_TIMEOUT", True)),
+ use_kvm = use_kvm,
dump_dir = dump_dir,
dump_host_cmds = d.getVar("testimage_dump_host", True))