From 9720f99def3d978a4d9dbcec3854d41d070791b7 Mon Sep 17 00:00:00 2001 From: "Justin Terry (VM)" Date: Wed, 28 Nov 2018 15:28:18 -0800 Subject: [PATCH] Skip uart enumeration on production boot Signed-off-by: Justin Terry (VM) --- internal/uvm/create.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/uvm/create.go b/internal/uvm/create.go index a1b6bb8eec..17f0c090f2 100644 --- a/internal/uvm/create.go +++ b/internal/uvm/create.go @@ -394,9 +394,11 @@ func Create(opts *UVMOptions) (_ *UtilityVM, err error) { vm.Devices.VideoMonitor = &hcsschema.VideoMonitor{} } - if !vmDebugging { + if vmDebugging { + 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 != "" {