Hi Igor,
On 6/3/2025 9:03 AM, Igor Mammedov wrote:
On Wed, 28 May 2025 12:42:03 -0400
Annie Li <annie...@oracle.com> wrote:
The function qemu_wakeup_suspend_enabled combines the suspend
and wakeup together. However, the microvm doesn't support
wakeup yet. Suspend is enabled here, but wakeup doesn't
actually work for microvm now.
why wakeup doesn't work?
Microvm is missing the support for wakeup now, such as, wakeup notifier,
the sleep status needs to be set, etc.
Details are in "Table 4.20: Sleep Status Register" in ACPI spec 6.5.
I've only covered the sleep support for microvm since this patch focuses
on the sleep button.
Thanks
Annie
Signed-off-by: Annie Li <annie...@oracle.com>
---
hw/i386/microvm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/i386/microvm.c b/hw/i386/microvm.c
index eba33c4365..da5d4126e5 100644
--- a/hw/i386/microvm.c
+++ b/hw/i386/microvm.c
@@ -489,6 +489,7 @@ static void microvm_machine_state_init(MachineState
*machine)
qemu_add_machine_init_done_notifier(&mms->machine_done);
mms->powerdown_req.notify = microvm_powerdown_req;
qemu_register_powerdown_notifier(&mms->powerdown_req);
+ qemu_register_wakeup_support();
microvm_memory_init(mms);