mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 08:47:56 +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,
|
Driver: govmmQemu.VirtioSerial,
|
||||||
ID: "serial0",
|
ID: "serial0",
|
||||||
DisableModern: q.nestedRun,
|
DisableModern: q.nestedRun,
|
||||||
|
MaxPorts: uint(2),
|
||||||
}
|
}
|
||||||
|
|
||||||
devices = append(devices, serial)
|
devices = append(devices, serial)
|
||||||
|
@ -242,6 +242,7 @@ func TestQemuArchBaseAppendConsoles(t *testing.T) {
|
|||||||
govmmQemu.SerialDevice{
|
govmmQemu.SerialDevice{
|
||||||
Driver: govmmQemu.VirtioSerial,
|
Driver: govmmQemu.VirtioSerial,
|
||||||
ID: "serial0",
|
ID: "serial0",
|
||||||
|
MaxPorts: uint(2),
|
||||||
},
|
},
|
||||||
govmmQemu.CharDevice{
|
govmmQemu.CharDevice{
|
||||||
Driver: govmmQemu.Console,
|
Driver: govmmQemu.Console,
|
||||||
|
Loading…
Reference in New Issue
Block a user