On Fri, Feb 28, 2025 at 10:34:34PM +0530, Ani Sinha wrote:
> Currently call to x86_firmware_configure() -> pc_system_parse_ovmf_flash()
> happens only when SEV is enabled. Fortunately, X86_FW_OVMF is turned on
> automatically when SEV is enabled and therefore,  we never end up calling
> pc_system_parse_ovmf_flash() when X86_FW_OVMF is turned off. In future,
> it is possible that users call x86_firmware_configure() or
> x86_firmware_reconfigure() without checking if SEV is enabled. Therefore,
> x86_firmware_configure() or x86_firmware_reconfigure() need to check if
> ovmf is supported before calling ovmf parsing code. Hence, this change
> introduces an api ovmf_supported() that returns true wnen ovmf is enabled
> and false otherwise. Ovmf parsing code is only called after checking if ovmf
> is supported.
> 
> Signed-off-by: Ani Sinha <anisi...@redhat.com>

Reviewed-by: Gerd Hoffmann <kra...@redhat.com>

take care,
  Gerd


Reply via email to