[libvirt] [PATCH] qemu: Fix segfault when CPU host is empty

Jiri Denemark jdenemar at redhat.com
Thu Feb 16 11:06:53 UTC 2012


On Wed, Feb 15, 2012 at 09:57:37 -0700, Eric Blake wrote:
> On 02/15/2012 04:33 AM, Jiri Denemark wrote:
> > In case libvirtd cannot detect host CPU model (which may happen if it
> > runs inside a virtual machine), the daemon is likely to segfault when
> > starting a new qemu domain.
> 
> Nested virt - what fun.
> 
> > It segfaults when domain XML asks for host
> > (either model or passthrough) CPU or does not ask for any specific CPU
> > model at all.
> > ---
> >  src/qemu/qemu_command.c |   24 ++++++++++++------------
> >  1 files changed, 12 insertions(+), 12 deletions(-)
> 
> ACK.

Pushed, thanks.

Jirka




More information about the libvir-list mailing list