From: Wei Liu Subject: Re: [PATCH 22/27] ts-bench-hostcmp-host-prep: new script Date: Thu, 11 Dec 2014 12:32:58 +0000 Message-ID: <20141211123258.GJ21659@zion.uk.xensource.com> References: <20141210180651.26400.13356.stgit@Abyss.station> <20141210181152.26400.21301.stgit@Abyss.station> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20141210181152.26400.21301.stgit@Abyss.station> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: Wei Liu , Ian Jackson , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, Dec 10, 2014 at 07:11:52PM +0100, Dario Faggioli wrote: [...] > + > + logm("Will run the benchmark on host with: $bcpus vcpus and $bmem MB RAM"); > + > + my $kernver= get_runvar('kernel_ver',$r{'kernbuildjob'}); > + my $kopt= "maxcpus=$bcpus mem=$bmem" . "M"; > + > + if ($ho->{Flags}{'need-uboot-bootscr'}) { > + $bl= setupboot_uboot($ho,$kernver,undef,$kopt); > + } elsif ($ho->{Suite} =~ m/lenny/) { > + $bl= setupboot_grub1($ho,$kernver,undef,$kopt); > + } else { > + $bl= setupboot_grub2($ho,$kernver,undef,$kopt); > + } > + > + $bootkern= $bl->{PreFinalUpdate}(); > + $bl->{UpdateConfig}($ho); > + > + $bootkern= $bl->{GetBootKern}(); > + logm("$ho->{Name} will reboot on kernel $bootkern with '$kopt' as options"); Can you refactor debian_setup_boot to achieve your goal? > +} > + > +fixup(); > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel