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
6 changes: 4 additions & 2 deletions internal/uvm/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,11 @@ func Create(opts *UVMOptions) (_ *UtilityVM, err error) {
vm.Devices.VideoMonitor = &hcsschema.VideoMonitor{}
}

if !vmDebugging {
if vmDebugging {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you only need to do this when a COM port is enabled above. So you could move this into the existing if block.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jterry75 did you see this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I am submitting another change to move it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kernelArgs += " 8250_core.nr_uarts=1 8250_core.skip_txen_test=1"
} else {
// Terminate the VM if there is a kernel panic.
kernelArgs += " panic=-1"
kernelArgs += " panic=-1 8250_core.nr_uarts=0"
}

if opts.KernelBootOptions != "" {
Expand Down