qemuDomainDefPostParse: Fail if unable to fill machine type
qemuDomainDefPostParse: Fail if unable to fill machine type

Previously, we used virCapabilitiesDomainDataLookup() to fill
machine type in post parse callback if none was provided in the
domain XML. If machine type couldn't be filled in an error was
reported. After 4a4132b4625 we've changed it to
virQEMUCapsGetPreferredMachine() which returns NULL, but we no
longer report an error and proceed with the post parse callbacks
processing. This may lead to a crash because the code later on
assumes def->os.machine is not NULL.

Fixes: 4a4132b4625

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>
Reviewed-by: Pavel Mores <e8e79a41a9b826cd47122238a26f8527b5f610bc@redhat.com>

fabianfreyer/libvirt,nertpinx/libvirt,jardasgit/libvirt,jfehlig/libvirt,jfehlig/libvirt,nertpinx/libvirt,libvirt/libvirt,olafhering/libvirt,nertpinx/libvirt,zippy2/libvirt,jfehlig/libvirt,olafhering/libvirt,zippy2/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,olafhering/libvirt,libvirt/libvirt,zippy2/libvirt,crobinso/libvirt,libvirt/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,crobinso/libvirt,zippy2/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,crobinso/libvirt,nertpinx/libvirt,jardasgit/libvirt,libvirt/libvirt,olafhering/libvirt,crobinso/libvirt,jfehlig/libvirt,jardasgit/libvirt,jardasgit/libvirt