Fix M1 QEMU flags
When calling QEMU, the CPU arch should be host, and highmem should be on, or else the VM start fails. [NO NEW TESTS NEEDED] Signed-off-by: Ashley Cui <acui@redhat.com>
This commit is contained in:
		
							parent
							
								
									874ca426eb
								
							
						
					
					
						commit
						8d3e6577ae
					
				|  | @ -15,8 +15,8 @@ func (v *MachineVM) addArchOptions() []string { | ||||||
| 	opts := []string{ | 	opts := []string{ | ||||||
| 		"-accel", "hvf", | 		"-accel", "hvf", | ||||||
| 		"-accel", "tcg", | 		"-accel", "tcg", | ||||||
| 		"-cpu", "cortex-a57", | 		"-cpu", "host", | ||||||
| 		"-M", "virt,highmem=off", | 		"-M", "virt,highmem=on", | ||||||
| 		"-drive", "file=" + getEdk2CodeFd("edk2-aarch64-code.fd") + ",if=pflash,format=raw,readonly=on", | 		"-drive", "file=" + getEdk2CodeFd("edk2-aarch64-code.fd") + ",if=pflash,format=raw,readonly=on", | ||||||
| 		"-drive", "file=" + ovmfDir + ",if=pflash,format=raw"} | 		"-drive", "file=" + ovmfDir + ",if=pflash,format=raw"} | ||||||
| 	return opts | 	return opts | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue