From: Ian Jackson Subject: Re: [PATCH OSSTEST v2 07/15] TestSupport: allow caller of prepareguest_part_xencfg to specify viftype Date: Fri, 2 May 2014 12:28:37 +0100 Message-ID: <21347.33125.470527.601890@mariner.uk.xensource.com> References: <1398681672.29700.55.camel@kazak.uk.xensource.com> <1398681696-2773-7-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1398681696-2773-7-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH OSSTEST v2 07/15] TestSupport: allow caller of prepareguest_part_xencfg to specify viftype"): > Signed-off-by: Ian Campbell > --- > Osstest/TestSupport.pm | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm > index 132e8e9..9d5762f 100644 > --- a/Osstest/TestSupport.pm > +++ b/Osstest/TestSupport.pm > @@ -1419,12 +1419,13 @@ sub prepareguest_part_xencfg ($$$$$) { > my $onpoweroff= $xopts->{OnPowerOff} || 'destroy'; > my $oncrash= $xopts->{OnCrash} || 'preserve'; > my $vcpus= guest_var($gho, 'vcpus', $xopts->{DefVcpus} || 2); > + my $viftype= "type=$xopts->{viftype}," if $xopts->{DefVcpus}; Why is this conditional on DefVcpus ? > + $xopts{'viftype'} ||= "ioemu"; The other xopts have CamelCase names. And you don't need to quote it there. Ian.