Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2677 from justin-he/max_ports
Browse files Browse the repository at this point in the history
virtcontainers: Append max_ports to virtio-serial device
  • Loading branch information
Julio Montes authored Jan 11, 2021
2 parents b65dbad + a91deab commit 082291a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions virtcontainers/qemu_arch_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,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)
Expand Down
5 changes: 3 additions & 2 deletions virtcontainers/qemu_arch_base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,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,
Expand Down

0 comments on commit 082291a

Please sign in to comment.