enable use of kvm with qemux86*
PATCH v2 1/1 enable use of kvm with qemux86*
When used with corresponding oe-core patch, this will enable the use of kvm when running qemux86* images on a x86* host that supports kvm. On the same build machine, for an x86_64 testimage run, the with and without times are:
without kvm:
core-image-sato-1.0-r0 do_testimage: Ran 43 tests in 728.726s
core-image-sato-sdk-1.0-r0 do_testimage: Ran 52 tests in 1090.838s
with kvm:
core-image-sato-1.0-r0 do_testimage: Ran 43 tests in 60.255s
core-image-sato-sdk-1.0-r0 do_testimage: Ran 52 tests in 71.719s[YOCTO #9298]
---
Change for v2: propagate the new variable to the workers.
config/autobuilder.conf.example | 3 +++ lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py | 2 ++ 2 files changed, 5 insertions(+)
config/autobuilder.conf.example +3 -0
@@ -60,6 +60,9 @@ RESOLVE_TRIGGERED_HEAD = True DEVKERNEL_MUT_REPO = "{'git://git.yoctoproject.org/poky-contrib':['stage/master_under_test', 'sgw/mut']}" DEVKERNEL = "linux-yocto-dev" +[TestSettings] +QEMU_USE_KVM = "True" + [ADTREPO Settings] ADTREPO_POPULATE = False ADTREPO_DEV_POPULATE = True
lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py +2 -0
@@ -264,6 +264,8 @@ class CreateAutoConf(ShellCommand): if self.initmgr == "sysvinit systemd": fout = fout + 'DISTRO_FEATURES_append = " systemd"\n' fout = fout + 'VIRTUAL-RUNTIME_init_manager = "sysvinit"\n' + if os.environ.get("QEMU_USE_KVM") == "True": + fout = fout + 'QEMU_USE_KVM = "True"\n' if self.atextappend: fout = fout + self.atextappend
Signature · 1 line
2.5.5
Joshua Lock
AppliedQuoted 12 lines · Bill Randle
When used with corresponding oe-core patch, this will enable the use of kvm when running qemux86* images on a x86* host that supports kvm. On the same build machine, for an
x86_64testimage run, the with and without times are:
without kvm:
core-image-sato-1.0-r0do_testimage: Ran 43 tests in 728.726s core-image-sato-sdk-1.0-r0do_testimage: Ran 52 tests in 1090.838s
with kvm:
core-image-sato-1.0-r0do_testimage: Ran 43 tests in 60.255s core-image-sato-sdk-1.0-r0do_testimage: Ran 52 tests in 71.719s
Quoted 1 line
[YOCTO #9298]
Pushed to master, thanks.
Joshua
Quoted 48 lines
Signed-off-by Bill Randle <[email protected]>---
Change for v2: propagate the new variable to the workers.
config/autobuilder.conf.example | 3 +++
lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py| 2 ++2 files changed, 5 insertions(+)config/autobuilder.conf.example +0
-0@@ -60,6 +60,9 @@ RESOLVE_TRIGGERED_HEAD = TrueDEVKERNEL_MUT_REPO = "{'
git://git.yoctoproject.org/poky-contrib':['stage/master_under_test', 'sgw/mut']}" DEVKERNEL = "linux-yocto-dev"
+[TestSettings]config/autobuilder.conf.example +2
-0+QEMU_USE_KVM = "True" +[ADTREPO Settings]
ADTREPO_POPULATE = False
ADTREPO_DEV_POPULATE = True(quoted diff) +0
-0
packages/autobuilder/buildsteps/CreateAutoConf.py
b/lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py
index 8817d69..2b086e1 100644
--- a/lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py
+++ b/lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.pyconfig/autobuilder.conf.example +0
-0@@ -264,6 +264,8 @@ class CreateAutoConf(ShellCommand):if self.initmgr == "sysvinit systemd":
fout = fout + 'DISTRO_FEATURES_append= " systemd"\n'
fout = fout + 'VIRTUAL-RUNTIME_init_manager = "sysvinit"\n'
+ ifos.environ.get("QEMU_USE_KVM")== "True":
+ fout = fout + 'QEMU_USE_KVM= "True"\n' if self.atextappend:
fout = fout + self.atextappend