qemu_firmware: Separate machine and arch matching into a function
qemu_firmware: Separate machine and arch matching into a function

This part of the code will be reused later.

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>
Acked-by: Laszlo Ersek <7437296077edea1cb64451c122c4dac071f0cfbc@redhat.com>

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