FC: remove API Ready state

Since we decide to adopt config file to configure, we could bypass
API Ready state.
Here, we also create a new config ready state: `cfReady`, to represent
configuration part is done.

Fixes: #2199

Signed-off-by: Penny Zheng <penny.zheng@arm.com>
This commit is contained in:
Penny Zheng 2019-11-15 00:25:13 -08:00
parent 62cd08044d
commit 9ce2113535

View File

@ -46,7 +46,7 @@ type vmmState uint8
const (
notReady vmmState = iota
apiReady
cfReady
vmReady
)
@ -96,8 +96,8 @@ func (s vmmState) String() string {
switch s {
case notReady:
return "FC not ready"
case apiReady:
return "FC API ready"
case cfReady:
return "FC configure ready"
case vmReady:
return "FC VM ready"
}
@ -446,7 +446,7 @@ func (fc *firecracker) fcInit(timeout int) error {
return err
}
fc.state.set(apiReady)
fc.state.set(cfReady)
// Store VMM information
if fc.store != nil {