domcaps: Check for architecture more wisely
domcaps: Check for architecture more wisely

https://bugzilla.redhat.com/show_bug.cgi?id=1209948

So we have this bug. The virConnectGetDomainCapabilities() API
performs a couple of checks before it produces any result. One of
the checks is if the architecture requested by user can be run by
the binary (again user provided). However, the check is pretty
dumb. It merely compares if the default binary architecture
matches the one provided by user. However, a qemu binary can run
multiple architectures. For instance: qemu-system-ppc64 can run:
ppc, ppcle, ppc64, ppc64le and ppcemb. The default is ppc64, so
if user requested something else, like ppc64le, the check would
have failed without obvious reason.

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>

jardasgit/libvirt,olafhering/libvirt,jfehlig/libvirt,agx/libvirt,taget/libvirt,datto/libvirt,VenkatDatta/libvirt,zippy2/libvirt,libvirt/libvirt,nertpinx/libvirt,jardasgit/libvirt,eskultety/libvirt,VenkatDatta/libvirt,zippy2/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,datto/libvirt,taget/libvirt,olafhering/libvirt,eskultety/libvirt,andreabolognani/libvirt,rlaager/libvirt,datto/libvirt,olafhering/libvirt,libvirt/libvirt,andreabolognani/libvirt,agx/libvirt,datto/libvirt,agx/libvirt,rlaager/libvirt,crobinso/libvirt,nertpinx/libvirt,jfehlig/libvirt,zippy2/libvirt,olafhering/libvirt,taget/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,taget/libvirt,rlaager/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,eskultety/libvirt,andreabolognani/libvirt,jardasgit/libvirt,crobinso/libvirt,VenkatDatta/libvirt,libvirt/libvirt,zippy2/libvirt,fabianfreyer/libvirt,agx/libvirt,jfehlig/libvirt,rlaager/libvirt,eskultety/libvirt,libvirt/libvirt,taget/libvirt,nertpinx/libvirt,crobinso/libvirt,VenkatDatta/libvirt,crobinso/libvirt,fabianfreyer/libvirt,agx/libvirt,jardasgit/libvirt,eskultety/libvirt,andreabolognani/libvirt,datto/libvirt,nertpinx/libvirt,jfehlig/libvirt,rlaager/libvirt