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
commit f162e7e960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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, Driver: govmmQemu.VirtioSerial,
ID: "serial0", ID: "serial0",
DisableModern: q.nestedRun, DisableModern: q.nestedRun,
MaxPorts: uint(2),
} }
devices = append(devices, serial) devices = append(devices, serial)

View File

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