|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 03/27] Guest setup: allow the amount of RAM to be a runvar
On Thu, 2014-12-11 at 12:05 +0000, Wei Liu wrote:
> On Wed, Dec 10, 2014 at 07:09:18PM +0100, Dario Faggioli wrote:
> > diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
> > index a3b6936..cdff8d5 100644
> > --- a/Osstest/TestSupport.pm
> > +++ b/Osstest/TestSupport.pm
> > @@ -1460,11 +1460,12 @@ sub prepareguest_part_xencfg ($$$$$) {
> > my ($ho, $gho, $ram_mb, $xopts, $cfgrest) = @_;
> > my $onreboot= $xopts->{OnReboot} || 'restart';
> > my $vcpus= guest_var($gho, 'vcpus', $xopts->{DefVcpus} || 2);
> > + my $memory= guest_var($gho, 'memory', $xopts->{DefMem} || $ram_mb);
> > my $xoptcfg= $xopts->{ExtraConfig};
> > $xoptcfg='' unless defined $xoptcfg;
> > my $xencfg= <<END;
> > name = '$gho->{Name}'
> > -memory = ${ram_mb}
> > +memory = ${memory}
>
> You made ram_mb redundant.
>
Did I? My idea was to use it as default, if the runvar is not defined...
That is what I though this line does (and I'm quite sure I tested it
actually does that):
my $memory= guest_var($gho, 'memory', $xopts->{DefMem} || $ram_mb);
But, perhaps, I'm not getting what you mean by "redundant"...
> And this seems to be deep in the call chain
> which has subtle knock on effect.
>
Sorry, I don't get what you mean here.
Thanks and Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
Attachment:
signature.asc _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |