fc: update comments for startSandbox

The comment didn't reflect what the function does. Updated accordingly.

Fixes: #2277

Signed-off-by: Eric Ernst <eric.ernst@intel.com>
This commit is contained in:
Eric Ernst 2019-11-26 15:23:32 -08:00
parent d054556f60
commit 06971246ea

View File

@ -123,7 +123,7 @@ func (s *firecrackerState) set(state vmmState) {
s.state = state
}
// firecracker is an Hypervisor interface implementation for the firecracker hypervisor.
// firecracker is an Hypervisor interface implementation for the firecracker VMM.
type firecracker struct {
id string //Unique ID per pod. Normally maps to the sandbox id
vmPath string //All jailed VM assets need to be under this
@ -713,8 +713,8 @@ func (fc *firecracker) fcStartVM() error {
}
// startSandbox will start the hypervisor for the given sandbox.
// In the context of firecracker, this will start the hypervisor,
// for configuration, but not yet start the actual virtual machine
// In the context of firecracker, this will start the vmm,
// for configuration and then start the actual virtual machine.
func (fc *firecracker) startSandbox(timeout int) error {
span, _ := fc.trace("startSandbox")
defer span.Finish()