fix(host): prepare guest config on state paused (#14597)

run onGuestPrelaunch on guest state paused

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
This commit is contained in:
wanyaoqi
2022-07-08 21:35:50 +08:00
committed by GitHub
parent d8f9bb3d96
commit 2a07fc1ecb
2 changed files with 1 additions and 2 deletions
+1
View File
@@ -941,6 +941,7 @@ func (s *SGuestResumeTask) onConfirmRunning(status string) {
// handle error first, results may be 'paused (internal-error)'
s.taskFailed(status)
} else if strings.Contains(status, "paused") {
s.onGuestPrelaunch()
s.Monitor.GetBlocks(s.onGetBlockInfo)
} else if status == "postmigrate" {
s.resumeGuest()
-2
View File
@@ -525,8 +525,6 @@ func getMigrateOptions(drvOpt QemuOptions, input *GenerateStartOptionsInput) []s
}
} else if input.IsSlave {
opts = append(opts, fmt.Sprintf("-incoming tcp:0:%d", input.LiveMigratePort))
} else if input.IsMaster {
opts = append(opts, "-S")
}
return opts
}