sandbox: get and store guest details.

Get and store guest details after sandbox is completely created.
And get memory block size from sandbox state file when check
hotplug memory valid.

Signed-off-by: Clare Chen <clare.chenhui@huawei.com>
Signed-off-by: Zichang Lin <linzichang@huawei.com>
This commit is contained in:
Clare Chen
2018-09-14 22:39:13 -04:00
parent 13bf7d1bbc
commit 12a0354084
7 changed files with 63 additions and 10 deletions

View File

@@ -122,6 +122,11 @@ func createSandboxFromConfig(ctx context.Context, sandboxConfig SandboxConfig, f
return nil, err
}
// get and store guest details
if err := s.getAndStoreGuestDetails(); err != nil {
return nil, err
}
return s, nil
}