[yocto] [yocto-autobuilder][PATCH v2] enable use of kvm with qemux86*

Joshua Lock joshua.g.lock at linux.intel.com
Mon Aug 22 03:29:52 PDT 2016


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 at 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
>  



More information about the yocto mailing list