diff options
Diffstat (limited to 'meta/lib/oeqa/targetcontrol.py')
-rw-r--r-- | meta/lib/oeqa/targetcontrol.py | 7 |
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): | |||
125 | dump_target_cmds = d.getVar("testimage_dump_target", True) | 125 | dump_target_cmds = d.getVar("testimage_dump_target", True) |
126 | dump_host_cmds = d.getVar("testimage_dump_host", True) | 126 | dump_host_cmds = d.getVar("testimage_dump_host", True) |
127 | dump_dir = d.getVar("TESTIMAGE_DUMP_DIR", True) | 127 | dump_dir = d.getVar("TESTIMAGE_DUMP_DIR", True) |
128 | if d.getVar("QEMU_USE_KVM", False) is not None \ | ||
129 | and d.getVar("QEMU_USE_KVM", False) == "True" \ | ||
130 | and "x86" in d.getVar("MACHINE", True): | ||
131 | use_kvm = True | ||
132 | else: | ||
133 | use_kvm = False | ||
128 | 134 | ||
129 | # Log QemuRunner log output to a file | 135 | # Log QemuRunner log output to a file |
130 | import oe.path | 136 | import oe.path |
@@ -153,6 +159,7 @@ class QemuTarget(BaseTarget): | |||
153 | display = d.getVar("BB_ORIGENV", False).getVar("DISPLAY", True), | 159 | display = d.getVar("BB_ORIGENV", False).getVar("DISPLAY", True), |
154 | logfile = self.qemulog, | 160 | logfile = self.qemulog, |
155 | boottime = int(d.getVar("TEST_QEMUBOOT_TIMEOUT", True)), | 161 | boottime = int(d.getVar("TEST_QEMUBOOT_TIMEOUT", True)), |
162 | use_kvm = use_kvm, | ||
156 | dump_dir = dump_dir, | 163 | dump_dir = dump_dir, |
157 | dump_host_cmds = d.getVar("testimage_dump_host", True)) | 164 | dump_host_cmds = d.getVar("testimage_dump_host", True)) |
158 | 165 | ||