Legacy UEFI template configuration behavior changed in v9.2.0
Hi, it seems that in v9.2.0 the legacy UEFI template configuration behavior has changed a lot.
For example, with the below domain configuration, prior to v9.2.0, the NVRAM template will be the one provided by the user, i.e., /usr/share/OVMF/OVMF_VARS.secboot.fd:
<os firmware='efi'>
<type arch='x86_64' machine='pc-q35-rhel9.2.0'>hvm</type>
<loader readonly='yes' secure='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.secboot.fd</loader>
<nvram template='/usr/share/OVMF/OVMF_VARS.secboot.fd' type='file'>
<source file='/dir1/vars.fd'/>
</nvram>
<smbios mode='sysinfo'/>
</os>
However, starting from v9.2.0, it seems that libvirt will look for the template in the default template map instead of honoring the user provided one, and the default template is always /usr/share/OVMF/OVMF_VARS.fd.
This seems to be a breaking change?