projectacrn / acrn-hypervisor

Project ACRN hypervisor
BSD 3-Clause "New" or "Revised" License
1.13k stars 519 forks source link

Cannot S3 resume on a Ubuntu24.04 VM #8661

Open jiayuan-intel opened 2 months ago

jiayuan-intel commented 2 months ago

Describe the bug When using Ubuntu24.04 as a User VM, it cannot resume after entering system S3 power state.

Platform ASUS minipc PN64. RPL.

Codebase ACRN-v3.3

Scenario Shared scenario.

To Reproduce

  1. Follow getting started guide, use Ubuntu24.04 as User VM and boot.
  2. Enter User VM console, type 'echo mem > /sys/power/state' to enter system S3 state.
  3. Enter Service VM console, type 'acrnd -t -d 3' to guest resume.
  4. See 'active_all_vms: Unknown vm state 2' in Service VM console. S3 resume error.

Expected behavior User VM should able to resume.

Additional context When using Ubuntu22.04 as User VM, it will resume ok.

haiwei-li commented 2 months ago

Standard ubuntu 24.04 now is using branch 6.8.0-36.36 in https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/noble. The bug is triggered in: image

This is fixed in c8fae27d141a32a1624d0d0d5419d94252824498 linux upstream.