Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,10 @@ func (vios *virtioSerialPorts) Cmdline() []string {

args := []string{
// There seems to be an off by one error with max_ports.
"-device", fmt.Sprintf("virtio-serial,max_ports=%d", len(vios.Chardevs)+1),
//
// ioeventfd=off works around a weird race condition where writing to the serial
// console from inside the guest may get stuck waiting for a wakeup.
"-device", fmt.Sprintf("virtio-serial,max_ports=%d,ioeventfd=off", len(vios.Chardevs)+1),
}
for dev, name := range vios.Chardevs {
args = append(args,
Expand Down
Loading