Skip to content

qemu: experimental support for PPC64LE #3488

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 3, 2025

Conversation

AkihiroSuda
Copy link
Member

@AkihiroSuda AkihiroSuda commented May 2, 2025

Usage:

limactl start --arch ppc64le

@AkihiroSuda AkihiroSuda added this to the v1.1.0 milestone May 2, 2025
@AkihiroSuda AkihiroSuda force-pushed the ppc64le branch 3 times, most recently from 2af5fc9 to 20cd54d Compare May 2, 2025 04:16
@AkihiroSuda AkihiroSuda marked this pull request as ready for review May 2, 2025 06:19
@AkihiroSuda AkihiroSuda requested a review from jandubois May 2, 2025 22:13
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

I have not verified if the image updater scripts will work for the new PPC64LE images or not. Please file an issue if the scripts still need updating!

@@ -540,7 +540,8 @@ func Cmdline(ctx context.Context, cfg Config) (exe string, args []string, err er
}
}
}
if !strings.Contains(string(features.CPUHelp), strings.Split(cpu, ",")[0]) {
// `qemu-system-ppc64 -help` does not show "max", but it is actually accepted
if cpu != "max" && !strings.Contains(string(features.CPUHelp), strings.Split(cpu, ",")[0]) {
Copy link
Member

Choose a reason for hiding this comment

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

Technically it should probably be:

Suggested change
if cpu != "max" && !strings.Contains(string(features.CPUHelp), strings.Split(cpu, ",")[0]) {
if (*y.arch != limayaml.PPC64LE || cpu != "max") && !strings.Contains(string(features.CPUHelp), strings.Split(cpu, ",")[0]) {

But I guess we just assume that max is valid for all CPUs now.

@AkihiroSuda
Copy link
Member Author

Thanks, LGTM

I have not verified if the image updater scripts will work for the new PPC64LE images or not. Please file an issue if the scripts still need updating!

Seems to work

@AkihiroSuda AkihiroSuda merged commit 1314e12 into lima-vm:master May 3, 2025
32 checks passed
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.

2 participants