mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 01:13:02 +00:00 
			
		
		
		
	qemu: Add support for socket based consoles
When we get no virtual console to plug into, we may want qemu to create a socket where we can asynchronously connect to. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
		
							
								
								
									
										4
									
								
								qemu.go
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								qemu.go
									
									
									
									
									
								
							| @@ -305,7 +305,11 @@ func (cdev CharDevice) QemuParams(config *Config) []string { | |||||||
|  |  | ||||||
| 	cdevParams = append(cdevParams, string(cdev.Backend)) | 	cdevParams = append(cdevParams, string(cdev.Backend)) | ||||||
| 	cdevParams = append(cdevParams, fmt.Sprintf(",id=%s", cdev.ID)) | 	cdevParams = append(cdevParams, fmt.Sprintf(",id=%s", cdev.ID)) | ||||||
|  | 	if cdev.Backend == Socket { | ||||||
|  | 		cdevParams = append(cdevParams, fmt.Sprintf(",path=%s,server,nowait", cdev.Path)) | ||||||
|  | 	} else { | ||||||
| 		cdevParams = append(cdevParams, fmt.Sprintf(",path=%s", cdev.Path)) | 		cdevParams = append(cdevParams, fmt.Sprintf(",path=%s", cdev.Path)) | ||||||
|  | 	} | ||||||
|  |  | ||||||
| 	qemuParams = append(qemuParams, "-device") | 	qemuParams = append(qemuParams, "-device") | ||||||
| 	qemuParams = append(qemuParams, strings.Join(deviceParams, "")) | 	qemuParams = append(qemuParams, strings.Join(deviceParams, "")) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user