]> xenbits.xensource.com Git - libvirt.git/commit
S390: Assign default model "virtio" for network interfaces
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Mon, 10 Dec 2012 10:00:05 +0000 (11:00 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 10 Dec 2012 13:57:17 +0000 (14:57 +0100)
commit539d73dbf64cb35558ffd3992f82e0b482cd0e70
tree44cd208fac72278dd8d9d3bc4e46d0728c91aeda
parent28de5479972900d2300d7f8d94fc228870360a10
S390: Assign default model "virtio" for network interfaces

If a network interface model is not specified, libvirt will run
into an unchecked NULL pointer coredump. On the other hand if
the empty model is ignored, a PCI bus address would be generated,
which is not supported by S390.
Since the only valid network type model for S390 is virtio,
we use this as the default value, which is the same for QEMU.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
src/qemu/qemu_command.c