summary refs log tree commit diff stats
path: root/hw/uefi/var-service-vars.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2025-08-11 15:01:08 +0200
committerGerd Hoffmann <kraxel@redhat.com>2025-08-12 08:03:16 +0200
commit88e5a28d5aabb57f44c1805fbba0a458023f5106 (patch)
treee4f9a12e2cfb0cf0505e7d74cbcceef77b141aa7 /hw/uefi/var-service-vars.c
parentf757d9d90d19b914d4023663bfc4da73bbbf007e (diff)
downloadfocaccia-qemu-88e5a28d5aabb57f44c1805fbba0a458023f5106.tar.gz
focaccia-qemu-88e5a28d5aabb57f44c1805fbba0a458023f5106.zip
hw/uefi: return success for notifications
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>
Diffstat (limited to 'hw/uefi/var-service-vars.c')
-rw-r--r--hw/uefi/var-service-vars.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/uefi/var-service-vars.c b/hw/uefi/var-service-vars.c
index 37d05b71cf..cbeccdbd26 100644
--- a/hw/uefi/var-service-vars.c
+++ b/hw/uefi/var-service-vars.c
@@ -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;