[libvirt] [PATCH] qemu: Don't fail driver startup with ancient qemu

Dave Allan dallan at redhat.com
Mon Apr 4 18:24:37 UTC 2011


On Mon, Apr 04, 2011 at 03:37:32PM +0200, Jiri Denemark wrote:
> On Mon, Apr 04, 2011 at 14:23:59 +0100, Daniel P. Berrange wrote:
> > On Mon, Apr 04, 2011 at 03:18:59PM +0200, Jiri Denemark wrote:
> > > Failure to extract version info (e.g., because qemu binary is so ancient
> > > that it doesn't even support -help) shouldn't be considered fatal since
> > > we only need it to detect whether qemu supports bootindex option.
> > > ---
> > >  src/qemu/qemu_capabilities.c |    7 ++++---
> > >  1 files changed, 4 insertions(+), 3 deletions(-)
> > 
> > What version QEMU doesn't support -help ?
> > 
> > We only aim to work with QEMU >= 0.9.0 and I'm fairly sure
> > that has -help support.
> 
> An ancient one, 0.6.0. But that was just an example. Extracting version info
> may fail for a bunch of reasons. The main thing is that it shouldn't fail qemu
> driver startup since that results in libvirtd startup failure.

Why does driver startup failure result in libvirtd startup failure?
Shouldn't it only result in the lack of availability of the driver?

Dave




More information about the libvir-list mailing list