Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
virtcontainers: move device operations to a more generic place
Browse files Browse the repository at this point in the history
move device operations to a more generic place where they can be used
in any hypervisor implementation.

Signed-off-by: Julio Montes <[email protected]>
  • Loading branch information
Julio Montes committed Oct 8, 2019
1 parent 1d7b7b1 commit e388cc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions virtcontainers/hypervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ type HypervisorType string

type operation int

const (
addDevice operation = iota
removeDevice
)

const (
// FirecrackerHypervisor is the FC hypervisor.
FirecrackerHypervisor HypervisorType = "firecracker"
Expand Down
5 changes: 0 additions & 5 deletions virtcontainers/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,6 @@ var defaultKernelParameters = []Param{
{"panic", "1"},
}

const (
addDevice operation = iota
removeDevice
)

type qmpLogger struct {
logger *logrus.Entry
}
Expand Down

0 comments on commit e388cc5

Please sign in to comment.