Skip to content

Commit 559ead5

Browse files
committed
qemu: revert "Restrict pessimization of M4 arch to macOS 15.2"
This commit reverts the substantial part of PR 3197. SME got broken again after upgrading QEMU from 9.2.0 to 9.2.1 (Homebrew bottle). Possibly this regression happened in some build process rather than in QEMU itself? See issue 3226. Signed-off-by: Akihiro Suda <[email protected]>
1 parent b3c2590 commit 559ead5

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

Diff for: pkg/limayaml/defaults.go

+13-10
Original file line numberDiff line numberDiff line change
@@ -1203,16 +1203,19 @@ func HasHostCPU() bool {
12031203
switch runtime.GOOS {
12041204
case "darwin":
12051205
if hasSMEDarwin() {
1206-
macOSProductVersion, err := osutil.ProductVersion()
1207-
if err != nil || (macOSProductVersion.Major == 15 && macOSProductVersion.Minor == 2) {
1208-
// SME is available since Apple M4 running macOS 15.2, but it was broken on macOS 15.2.
1209-
// It has been fixed in 15.3.
1210-
//
1211-
// https://github.com/lima-vm/lima/issues/3032
1212-
// https://gitlab.com/qemu-project/qemu/-/issues/2665
1213-
// https://gitlab.com/qemu-project/qemu/-/issues/2721
1214-
return false
1215-
}
1206+
// [2025-02-05]
1207+
// SME is available since Apple M4 running macOS 15.2, but it was broken on macOS 15.2.
1208+
// It has been fixed in 15.3.
1209+
//
1210+
// https://github.com/lima-vm/lima/issues/3032
1211+
// https://gitlab.com/qemu-project/qemu/-/issues/2665
1212+
// https://gitlab.com/qemu-project/qemu/-/issues/2721
1213+
1214+
// [2025-02-12]
1215+
// SME got broken again after upgrading QEMU from 9.2.0 to 9.2.1 (Homebrew bottle).
1216+
// Possibly this regression happened in some build process rather than in QEMU itself?
1217+
// https://github.com/lima-vm/lima/issues/3226
1218+
return false
12161219
}
12171220
return true
12181221
case "linux":

0 commit comments

Comments
 (0)