mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-21 16:24:22 +01:00
hypervisor: Expose the hypervisor itself
Export the top level hypervisor type s/hypervisor/Hypervisor Fixes: #2880 Signed-off-by: Manohar Castelino <mcastelino@apple.com> Signed-off-by: Eric Ernst <eric_ernst@apple.com>
This commit is contained in:
committed by
Eric Ernst
parent
a72bed5b34
commit
52268d0ece
@@ -54,9 +54,9 @@ var sandboxTracingTags = map[string]string{
|
||||
}
|
||||
|
||||
const (
|
||||
// vmStartTimeout represents the time in seconds a sandbox can wait before
|
||||
// VmStartTimeout represents the time in seconds a sandbox can wait before
|
||||
// to consider the VM starting operation failed.
|
||||
vmStartTimeout = 10
|
||||
VmStartTimeout = 10
|
||||
|
||||
// DirMode is the permission bits used for creating a directory
|
||||
DirMode = os.FileMode(0750) | os.ModeDir
|
||||
@@ -171,7 +171,7 @@ type Sandbox struct {
|
||||
ctx context.Context
|
||||
devManager api.DeviceManager
|
||||
factory Factory
|
||||
hypervisor hypervisor
|
||||
hypervisor Hypervisor
|
||||
agent agent
|
||||
store persistapi.PersistDriver
|
||||
|
||||
@@ -1199,7 +1199,7 @@ func (s *Sandbox) startVM(ctx context.Context) (err error) {
|
||||
return vm.assignSandbox(s)
|
||||
}
|
||||
|
||||
return s.hypervisor.StartVM(ctx, vmStartTimeout)
|
||||
return s.hypervisor.StartVM(ctx, VmStartTimeout)
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user