macOS Ventura fix

I haven't tested with if check_cpu_flag sse4_1 though

This change brought by https://github.com/notAperson535/OneClick-macOS-Simple-KVM/blob/master/basic.sh
This commit is contained in:
Alexey336 2023-03-16 23:51:04 +03:00 committed by GitHub
parent c69fa6b430
commit c0c146c4a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -511,7 +511,7 @@ function vm_boot() {
case ${macos_release} in
ventura)
if check_cpu_flag sse4_1 && check_cpu_flag avx2; then
CPU="-cpu Haswell,kvm=on,vendor=GenuineIntel,+hypervisor,+invtsc,+kvm_pv_eoi,+kvm_pv_unhalt"
CPU="-cpu Haswell,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc,+avx2"
else
echo "ERROR! macOS ${macos_release} requires a CPU with SSE 4.1 and AVX2 support."
exit 1