From c1fff858058bc4527932a60162b048344a85c90f Mon Sep 17 00:00:00 2001 From: Georgina Kinge Date: Wed, 5 Oct 2022 19:56:57 +0100 Subject: [PATCH] fix syntax error Signed-off-by: Georgina Kinge --- src/runtime/virtcontainers/qemu.go | 2 +- src/runtime/virtcontainers/qemu_amd64.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/virtcontainers/qemu.go b/src/runtime/virtcontainers/qemu.go index fe4ea56e5f..1ada73da69 100644 --- a/src/runtime/virtcontainers/qemu.go +++ b/src/runtime/virtcontainers/qemu.go @@ -100,7 +100,7 @@ type qemu struct { // if in memory dump progress memoryDumpFlag sync.Mutex stopped bool - mu sync.Mutex + mu sync.Mutex } const ( diff --git a/src/runtime/virtcontainers/qemu_amd64.go b/src/runtime/virtcontainers/qemu_amd64.go index 95f6034bed..bf7c31652a 100644 --- a/src/runtime/virtcontainers/qemu_amd64.go +++ b/src/runtime/virtcontainers/qemu_amd64.go @@ -314,6 +314,7 @@ func (q *qemuAmd64) appendProtectionDevice(devices []govmmQemu.Device, firmware, default: return devices, "", fmt.Errorf("Unsupported guest protection technology: %v", q.protection) + } } // Add the SEV Object qemu parameters for sev guest protection