mirror of
				https://github.com/containers/podman.git
				synced 2025-10-31 01:50:50 +08:00 
			
		
		
		
	 57133bb334
			
		
	
	57133bb334
	
	
	
		
			
			Adding the `-cpu host` option to the `addArchOptions` function for darwin removes the warning message, "host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]" by qemu-system-x86_64 when using the `podman machine start` command on MacOS Closes #11421 [NO TESTS NEEDED] Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>
		
			
				
	
	
		
			19 lines
		
	
	
		
			314 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			314 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package qemu
 | |
| 
 | |
| var (
 | |
| 	QemuCommand = "qemu-system-x86_64"
 | |
| )
 | |
| 
 | |
| func (v *MachineVM) addArchOptions() []string {
 | |
| 	opts := []string{"-machine", "q35,accel=hvf:tcg", "-cpu", "host"}
 | |
| 	return opts
 | |
| }
 | |
| 
 | |
| func (v *MachineVM) prepare() error {
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (v *MachineVM) archRemovalFiles() []string {
 | |
| 	return []string{}
 | |
| }
 |