]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix segfault when host CPU is empty
authorJiri Denemark <jdenemar@redhat.com>
Wed, 15 Feb 2012 11:18:25 +0000 (12:18 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 16 Feb 2012 09:41:13 +0000 (10:41 +0100)
commit2ccc4a607f6e122aff2e3b9d133d6e6b4b661a1e
tree8322f2b7257597c06e609af3ff5b61a78baaf859
parent286088567d3905feea62f81f1bf0ebcb5d6466b4
qemu: Fix segfault when host CPU is empty

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. 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