mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Don't pass-through the CPU for macOS guest on Intel CPU hosts. Close #502
This commit is contained in:
		
							parent
							
								
									94ee99a48e
								
							
						
					
					
						commit
						10c35369a1
					
				
					 1 changed files with 3 additions and 8 deletions
				
			
		
							
								
								
									
										11
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -511,14 +511,9 @@ function vm_boot() { | ||||||
|       #https://www.nicksherlock.com/2020/06/installing-macos-big-sur-on-proxmox/ |       #https://www.nicksherlock.com/2020/06/installing-macos-big-sur-on-proxmox/ | ||||||
|       # A CPU with SSE4.1 support is required for >= macOS Sierra |       # A CPU with SSE4.1 support is required for >= macOS Sierra | ||||||
|       if check_cpu_flag sse4_1; then |       if check_cpu_flag sse4_1; then | ||||||
|         case ${HOST_CPU_VENDOR} in |           # Used in past versions: +movbe,+smep,+xgetbv1,+xsavec,+avx2 | ||||||
|           GenuineIntel) |           # Warn on AMD:           +fma4,+pcid | ||||||
|             CPU="-cpu host,kvm=on,vendor=GenuineIntel,+hypervisor,+invtsc,+kvm_pv_eoi,+kvm_pv_unhalt";; |           CPU="-cpu Penryn,kvm=on,vendor=GenuineIntel,+aes,+avx,+bmi1,+bmi2,+fma,+hypervisor,+invtsc,+kvm_pv_eoi,+kvm_pv_unhalt,+popcnt,+ssse3,+sse4.2,vmware-cpuid-freq=on,+xsave,+xsaveopt,check" | ||||||
|           AuthenticAMD|*) |  | ||||||
|             # Used in past versions: +movbe,+smep,+xgetbv1,+xsavec,+avx2 |  | ||||||
|             # Warn on AMD:           +fma4,+pcid |  | ||||||
|             CPU="-cpu Penryn,kvm=on,vendor=GenuineIntel,+aes,+avx,+bmi1,+bmi2,+fma,+hypervisor,+invtsc,+kvm_pv_eoi,+kvm_pv_unhalt,+popcnt,+ssse3,+sse4.2,vmware-cpuid-freq=on,+xsave,+xsaveopt,check";; |  | ||||||
|         esac |  | ||||||
|       else |       else | ||||||
|         echo "ERROR! macOS requires a CPU with SSE 4.1 support." |         echo "ERROR! macOS requires a CPU with SSE 4.1 support." | ||||||
|         exit 1 |         exit 1 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue