From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 15848E00D20; Mon, 22 Aug 2016 03:29:57 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.88 listed in list.dnswl.org] Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2EBB2E008BA for ; Mon, 22 Aug 2016 03:29:55 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP; 22 Aug 2016 03:29:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,559,1464678000"; d="scan'208";a="159278522" Received: from jlock-mobl1.ger.corp.intel.com ([10.252.24.69]) by fmsmga004.fm.intel.com with ESMTP; 22 Aug 2016 03:29:53 -0700 Message-ID: <1471861792.5256.12.camel@linux.intel.com> From: Joshua Lock To: Bill Randle , yocto@yoctoproject.org Date: Mon, 22 Aug 2016 11:29:52 +0100 In-Reply-To: <1471484985-21028-1-git-send-email-william.c.randle@intel.com> References: <1471484985-21028-1-git-send-email-william.c.randle@intel.com> X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Subject: Re: [yocto-autobuilder][PATCH v2] enable use of kvm with qemux86* X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2016 10:29:57 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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 > --- > > 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 >