]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/uefi: return success for notifications
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 11 Aug 2025 13:01:08 +0000 (15:01 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 14 Aug 2025 06:13:02 +0000 (09:13 +0300)
Set status to SUCCESS for ready-to-boot and exit-boot-services
notification calls.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-ID: <20250811130110.820958-2-kraxel@redhat.com>
(cherry picked from commit 88e5a28d5aabb57f44c1805fbba0a458023f5106)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/uefi/var-service-vars.c

index 7f98d77a38d13559f2d851650f76f0ea86ecedef..58ae560d6e5c4d09c4e3a40e7ef5d48cfd2a3065 100644 (file)
@@ -702,12 +702,14 @@ uint32_t uefi_vars_mm_vars_proto(uefi_vars_state *uv)
     case SMM_VARIABLE_FUNCTION_READY_TO_BOOT:
         trace_uefi_event("ready-to-boot");
         uv->ready_to_boot = true;
+        mvar->status = EFI_SUCCESS;
         length = 0;
         break;
 
     case SMM_VARIABLE_FUNCTION_EXIT_BOOT_SERVICE:
         trace_uefi_event("exit-boot-service");
         uv->exit_boot_service = true;
+        mvar->status = EFI_SUCCESS;
         length = 0;
         break;