qemu_firmware: Try to autofill for old style UEFI specification
qemu_firmware: Try to autofill for old style UEFI specification

While we discourage people to use the old style of specifying
UEFI for their domains (the old style is putting path to the FW
image under /domain/os/loader/ whilst the new one is using
/domain/os/@firmware), some applications might have not adapted
yet. They still rely on libvirt autofilling NVRAM path and
figuring out NVRAM template when using the old way (notably
virt-install does this). We must preserve backcompat for this
previously supported config approach. However, since we really
want distro maintainers to leave --with-loader-nvram configure
option and rely on JSON descriptors, we need to implement
autofilling of NVRAM template for the old way too.

Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1782778
RHEL: https://bugzilla.redhat.com/show_bug.cgi?id=1776949

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>
Reviewed-by: Daniel P. Berrangé <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

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