diff --git a/virtcontainers/hypervisor.go b/virtcontainers/hypervisor.go index e910f21864..8165e3426e 100644 --- a/virtcontainers/hypervisor.go +++ b/virtcontainers/hypervisor.go @@ -27,6 +27,11 @@ type HypervisorType string type operation int +const ( + addDevice operation = iota + removeDevice +) + const ( // FirecrackerHypervisor is the FC hypervisor. FirecrackerHypervisor HypervisorType = "firecracker" diff --git a/virtcontainers/qemu.go b/virtcontainers/qemu.go index 60ae2cd23d..c297c14c43 100644 --- a/virtcontainers/qemu.go +++ b/virtcontainers/qemu.go @@ -119,11 +119,6 @@ var defaultKernelParameters = []Param{ {"panic", "1"}, } -const ( - addDevice operation = iota - removeDevice -) - type qmpLogger struct { logger *logrus.Entry }