Skip to content

Commit 113ee11

Browse files
authored
Merge pull request #393 from Microsoft/no_serial
Skip uart enumeration on production boot
2 parents 4b8e595 + 9720f99 commit 113ee11

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/uvm/create.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,11 @@ func Create(opts *UVMOptions) (_ *UtilityVM, err error) {
394394
vm.Devices.VideoMonitor = &hcsschema.VideoMonitor{}
395395
}
396396

397-
if !vmDebugging {
397+
if vmDebugging {
398+
kernelArgs += " 8250_core.nr_uarts=1 8250_core.skip_txen_test=1"
399+
} else {
398400
// Terminate the VM if there is a kernel panic.
399-
kernelArgs += " panic=-1"
401+
kernelArgs += " panic=-1 8250_core.nr_uarts=0"
400402
}
401403

402404
if opts.KernelBootOptions != "" {

0 commit comments

Comments
 (0)