Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@reidpr
Copy link
Contributor

@reidpr reidpr commented Feb 26, 2024

This PR attempts to enable suspend with the QEMU hypervisor on x86-64.

I'm suspicious because it seemed way too easy, but I thought worth sharing anyway. It apparently works for me on my 2019 i7 MacBook Pro running 14.3.1.

Clicking on the close box of a running VM causes the console window to show a throbber for a little while, then close. I can then quit UTM, restart UTM, and click “play” on the VM. The VM console window opens, throbs for a bit, appears to have resumed in the same place, and is responsive.

This VM has no network devices b/c I don’t have the right Apple Developer magic.

@osy
Copy link
Contributor

osy commented Feb 26, 2024

Can you test it with more VMs, especially with ones that have a VGA display? Also, please enable debug logging and confirm from the log that it's actually using HVF.

@reidpr
Copy link
Contributor Author

reidpr commented Feb 26, 2024

Something is goofy; I’m seeing a fair number of “Timed out waiting for RPC”.

I don’t have much time to dig into this, unfortunately.

That said, here is a debug.log that starts from stopped, suspends, resumes, and then stops. The video device is “VGA” in the GUI. It does say -accel hvf.

@osy osy force-pushed the main branch 7 times, most recently from cde503b to c3e08c3 Compare February 21, 2025 06:28
@osy osy force-pushed the main branch 4 times, most recently from 3fdf38c to 5c29a52 Compare July 9, 2025 07:18
@osy osy force-pushed the main branch 2 times, most recently from 3c98442 to a0978bd Compare September 14, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants