From c8c564bdd6b88eb95f7202beb655c8ef2c0321be Mon Sep 17 00:00:00 2001 From: Penny Zheng Date: Mon, 17 Dec 2018 10:59:06 +0800 Subject: [PATCH] qemu-arm64: refactor 'console=hvc0,hvc1' for kata-agent debugging Since kata-agent is using virtio-console to output debugging info and the console ports are available in the guest as /dev/hvc0 and /dev/hvc1, we should swap origin console type 'console=ttyAMA0' with 'console=hvc0,hvc1'. Fixes: #1033 Signed-off-by: Penny Zheng Signed-off-by: Wei Chen --- virtcontainers/qemu_arm64.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virtcontainers/qemu_arm64.go b/virtcontainers/qemu_arm64.go index 9385a533b..64fb28582 100644 --- a/virtcontainers/qemu_arm64.go +++ b/virtcontainers/qemu_arm64.go @@ -33,7 +33,8 @@ var qemuPaths = map[string]string{ } var kernelParams = []Param{ - {"console", "ttyAMA0"}, + {"console", "hvc0"}, + {"console", "hvc1"}, {"iommu.passthrough", "0"}, }