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