mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 16:27:50 +00:00
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 <julio.montes@intel.com>
This commit is contained in:
parent
46d1957e0f
commit
ed7240b40f
@ -27,6 +27,11 @@ type HypervisorType string
|
||||
|
||||
type operation int
|
||||
|
||||
const (
|
||||
addDevice operation = iota
|
||||
removeDevice
|
||||
)
|
||||
|
||||
const (
|
||||
// FirecrackerHypervisor is the FC hypervisor.
|
||||
FirecrackerHypervisor HypervisorType = "firecracker"
|
||||
|
@ -119,11 +119,6 @@ var defaultKernelParameters = []Param{
|
||||
{"panic", "1"},
|
||||
}
|
||||
|
||||
const (
|
||||
addDevice operation = iota
|
||||
removeDevice
|
||||
)
|
||||
|
||||
type qmpLogger struct {
|
||||
logger *logrus.Entry
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user