Merge pull request #948 from justin-he/max_ports

virtcontainers: Append max_ports to virtio-serial device
This commit is contained in:
Julio Montes
2020-10-19 08:55:06 -05:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -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)

View File

@@ -240,8 +240,9 @@ func TestQemuArchBaseAppendConsoles(t *testing.T) {
expectedOut := []govmmQemu.Device{
govmmQemu.SerialDevice{
Driver: govmmQemu.VirtioSerial,
ID: "serial0",
Driver: govmmQemu.VirtioSerial,
ID: "serial0",
MaxPorts: uint(2),
},
govmmQemu.CharDevice{
Driver: govmmQemu.Console,