Re: [PATCH] qemuPrepareNVRAMFile: Fix NVRAM image conversion check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 28, 2025 at 17:18:42 +0100, Peter Krempa wrote:
> In case when user provides custom paths (those not covered by the JSON
> firmware descriptor files or  the default locations) for the
> loader and nvram template no auto-detection will be performed and user's
> config will be taken at face value. Historically when 'templateFormat'
> didn't exist we assumed that the 'format' field covers both.
> 
> Thus if 'templateFormat' is VIR_STORAGE_FILE_NONE we need to skip the
> check forbidding image format conversion for 'file' backed to avoid
> breaking legacy configs with manual/non-detected format assuming that
> user picked the correct format.
> 
> Add a comment to the declaration of 'nvramTemplateFormat' noting the
> above for future reference.
> 
> Resolves: https://issues.redhat.com/browse/RHEL-81731
> Fixes: 2aa644a2fc8
> Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
> ---
>  src/conf/domain_conf.h  | 7 +++++++
>  src/qemu/qemu_process.c | 5 ++++-
>  2 files changed, 11 insertions(+), 1 deletion(-)

Reviewed-by: Jiri Denemark <jdenemar@xxxxxxxxxx>



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux