diff --git a/virtcontainers/hypervisor.go b/virtcontainers/hypervisor.go index 9ad51ff061..1c1b019eab 100644 --- a/virtcontainers/hypervisor.go +++ b/virtcontainers/hypervisor.go @@ -24,6 +24,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 458c48acc6..1062b41d37 100644 --- a/virtcontainers/qemu.go +++ b/virtcontainers/qemu.go @@ -117,11 +117,6 @@ var defaultKernelParameters = []Param{ {"panic", "1"}, } -const ( - addDevice operation = iota - removeDevice -) - type qmpLogger struct { logger *logrus.Entry }