Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: enable suspend for QEMU hypervisor on x86-64? #6119

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

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