Skip to content

qemu: tcg: use max by default #3487

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

Merged
merged 1 commit into from
May 2, 2025
Merged

Conversation

AkihiroSuda
Copy link
Member

The previous default value qemu64 for Intel on ARM was unable to boot recent guests as it only supports x86_64 v1 instructions.

CentOS Stream 10 is known to need x86_64 v3 or later.

Fix #3063

@jandubois
Copy link
Member

This PR is undoing the effect of #931; is that intentional?

@AkihiroSuda
Copy link
Member Author

I don't think this PR affects whpx

@jandubois
Copy link
Member

I don't think this PR affects whpx

With this PR you now unconditionally set cpuType.x86_64: max.

#931 intentionally prevented the code from setting it to max when running on Windows, and kept it at qemu64. The comment explicitly says:

// WHPX: Unexpected VP exit code 4

So maybe this is no longer needed, but maybe it should be tested?

I realize that QEMU on Windows is currently still WIP, so it won't affect actual users, but we may need to rediscover this fact if we just remove it now.

@jandubois
Copy link
Member

See also #909 (comment)

@AkihiroSuda
Copy link
Member Author

Fixed to use qemu64 on Windows

@AkihiroSuda AkihiroSuda force-pushed the fix-3063 branch 2 times, most recently from be16242 to 05f2a4f Compare May 2, 2025 04:33
The previous default value `qemu64` for Intel on ARM was unable to boot
recent guests as it only supports x86_64 v1 instructions.

CentOS Stream 10 is known to need x86_64 v3 or later.

Fix issue 3063

Signed-off-by: Akihiro Suda <[email protected]>
Copy link
Member

@jandubois jandubois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

@AkihiroSuda AkihiroSuda merged commit df13f30 into lima-vm:master May 2, 2025
32 checks passed
@chadlwilson
Copy link

Thanks for looking at this @AkihiroSuda . Looking forward to being able to build/test Almalinux 10 containers on MacOS via colima 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

qemu: Intel on ARM: change the default CPU from qemu64 to something newer
3 participants