fix(host): cancel backup guest prelaunch

This commit is contained in:
wanyaoqi
2023-09-20 22:25:01 +08:00
parent afc09054b2
commit 4b2682e353
+12 -10
View File
@@ -2446,18 +2446,20 @@ func (s *SKVMGuestInstance) doBlockIoThrottle() {
func (s *SKVMGuestInstance) onGuestPrelaunch() error {
s.LiveMigrateDestPort = nil
if options.HostOptions.SetVncPassword {
s.SetVncPassword()
}
if s.isMemcleanEnabled() {
if err := s.startMemCleaner(); err != nil {
return err
if !s.Desc.IsSlave {
if options.HostOptions.SetVncPassword {
s.SetVncPassword()
}
if s.isMemcleanEnabled() {
if err := s.startMemCleaner(); err != nil {
return err
}
}
s.OnResumeSyncMetadataInfo()
s.GuestPrelaunchSetCgroup()
s.optimizeOom()
s.doBlockIoThrottle()
}
s.OnResumeSyncMetadataInfo()
s.GuestPrelaunchSetCgroup()
s.optimizeOom()
s.doBlockIoThrottle()
return nil
}