qemu: allow hypervisor-cpu-baseline with single cpu
qemu: allow hypervisor-cpu-baseline with single cpu

When executing the hypervisor-cpu-baseline command and if there is
only a single CPU definition present in the XML file, then the
baseline handler will exit early and libvirt will print an unhelpful
message:

"error: An error occurred, but the cause is unknown"

This is due to no CPU definition ever being "baselined", since the
handler expects at least two CPU models.

Let's fix this by performing a CPU model expansion on the single CPU
definition and returning the result to the caller. This will also
ensure the CPU model's feature set is sane if any were provided in
the file.

Signed-off-by: Collin Walling <6a8456d624ba23d3de7a39e51739b800eab4ccb7@linux.ibm.com>
Reviewed-by: Jiri Denemark <62bdf77dc47919a4d59a91822129d14633cfca81@redhat.com>

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