From: Wei Liu Subject: Re: [PATCH OSSTEST 09/12] ts-debian-hvm-install: stub out libvirt + ovmf / rombios Date: Fri, 10 Jul 2015 15:53:25 +0100 Message-ID: <20150710145325.GU26853@zion.uk.xensource.com> References: <1423480206-9729-1-git-send-email-wei.liu2@citrix.com> <1423480206-9729-10-git-send-email-wei.liu2@citrix.com> <1426091683.21353.317.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1426091683.21353.317.camel@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: ian.jackson@eu.citrix.com, jfehlig@suse.com, Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, Mar 11, 2015 at 04:34:43PM +0000, Ian Campbell wrote: > On Mon, 2015-02-09 at 11:10 +0000, Wei Liu wrote: > > Libvirt's configuration converter doesn't know how to deal with BIOS > > selection. The end result is it always use the default one (seabios). > > Even with qemu-trad? Does it not use rombios in that case? > I have the impression that it doesn't know how to use qemu-trad. At least not in OSSTest. Wei. > > Stub out ovmf and rombios to avoid false positive results. > > > > This restriction will be removed once libvirt's converter knows how to > > deal with BIOS selection. > > > > Signed-off-by: Wei Liu > > Cc: Ian Campbell > > Cc: Ian Jackson > > --- > > ts-debian-hvm-install | 7 +++++++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/ts-debian-hvm-install b/ts-debian-hvm-install > > index 449b96c..7fe9ca8 100755 > > --- a/ts-debian-hvm-install > > +++ b/ts-debian-hvm-install > > @@ -28,6 +28,13 @@ if (@ARGV && $ARGV[0] =~ m/^--stage(\d+)$/) { $stage=$1; shift @ARGV; } > > > > defined($r{bios}) or die "Need to define which bios to use"; > > > > +# Libvirt doesn't know anything about bios. It will always use the > > +# default one (seabios). Stub out rombios and ovmf to avoid false > > +# positive results. > > +if ($r{bios} =~ m/ovmf|rombios/ && $r{toolstack} eq 'libvirt') { > > + die "libvirt + $r{bios} is not supported yet."; > > +} > > + > > our ($whhost,$gn) = @ARGV; > > $whhost ||= 'host'; > > $gn ||= 'debianhvm'; >