From ed7240b40fb15ca2ce901b156ddd0257a4db3b5f Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Fri, 27 Sep 2019 16:24:46 +0000 Subject: [PATCH] virtcontainers: move device operations to a more generic place move device operations to a more generic place where they can be used in any hypervisor implementation. Signed-off-by: Julio Montes --- virtcontainers/hypervisor.go | 5 +++++ virtcontainers/qemu.go | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) 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 }