* [yocto-autobuilder][PATCH v2] enable use of kvm with qemux86*
@ 2016-08-18 1:49 Bill Randle
2016-08-22 10:29 ` Joshua Lock
0 siblings, 1 reply; 2+ messages in thread
From: Bill Randle @ 2016-08-18 1:49 UTC (permalink / raw)
To: yocto
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]
Signed-off-by: Bill Randle <william.c.randle@intel.com>
---
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(+)
diff --git a/config/autobuilder.conf.example b/config/autobuilder.conf.example
index 9179d14..96bc4c6 100644
--- a/config/autobuilder.conf.example
+++ b/config/autobuilder.conf.example
@@ -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
diff --git a/lib/python2.7/site-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.py
@@ -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
--
2.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [yocto-autobuilder][PATCH v2] enable use of kvm with qemux86*
2016-08-18 1:49 [yocto-autobuilder][PATCH v2] enable use of kvm with qemux86* Bill Randle
@ 2016-08-22 10:29 ` Joshua Lock
0 siblings, 0 replies; 2+ messages in thread
From: Joshua Lock @ 2016-08-22 10:29 UTC (permalink / raw)
To: Bill Randle, yocto
On Wed, 2016-08-17 at 18:49 -0700, Bill Randle wrote:
> 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]
Pushed to master, thanks.
Joshua
>
> Signed-off-by: Bill Randle <william.c.randle@intel.com>
> ---
>
> 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(+)
>
> diff --git a/config/autobuilder.conf.example
> b/config/autobuilder.conf.example
> index 9179d14..96bc4c6 100644
> --- a/config/autobuilder.conf.example
> +++ b/config/autobuilder.conf.example
> @@ -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
>
> diff --git a/lib/python2.7/site-
> 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.py
> @@ -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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-22 10:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-18 1:49 [yocto-autobuilder][PATCH v2] enable use of kvm with qemux86* Bill Randle
2016-08-22 10:29 ` Joshua Lock
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.