mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 16:27:50 +00:00
Merge pull request #948 from justin-he/max_ports
virtcontainers: Append max_ports to virtio-serial device
This commit is contained in:
commit
f162e7e960
@ -308,6 +308,7 @@ func (q *qemuArchBase) appendConsole(devices []govmmQemu.Device, path string) ([
|
||||
Driver: govmmQemu.VirtioSerial,
|
||||
ID: "serial0",
|
||||
DisableModern: q.nestedRun,
|
||||
MaxPorts: uint(2),
|
||||
}
|
||||
|
||||
devices = append(devices, serial)
|
||||
|
@ -242,6 +242,7 @@ func TestQemuArchBaseAppendConsoles(t *testing.T) {
|
||||
govmmQemu.SerialDevice{
|
||||
Driver: govmmQemu.VirtioSerial,
|
||||
ID: "serial0",
|
||||
MaxPorts: uint(2),
|
||||
},
|
||||
govmmQemu.CharDevice{
|
||||
Driver: govmmQemu.Console,
|
||||
|
Loading…
Reference in New Issue
Block a user