mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 06:44:23 +01:00
qemu: add migration incoming defer support
qemu commandline supports -incoming defer and qmp supports migrate-incoming uri. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
@@ -1397,6 +1397,8 @@ const (
|
||||
MigrationFD = 1
|
||||
// MigrationExec is the migration incoming type based on commands.
|
||||
MigrationExec = 2
|
||||
// MigrationDefer is the defer incoming type
|
||||
MigrationDefer = 3
|
||||
)
|
||||
|
||||
// Incoming controls migration source preparation
|
||||
@@ -1779,6 +1781,8 @@ func (config *Config) appendIncoming() {
|
||||
case MigrationFD:
|
||||
chFDs := config.appendFDs([]*os.File{config.Incoming.FD})
|
||||
uri = fmt.Sprintf("fd:%d", chFDs[0])
|
||||
case MigrationDefer:
|
||||
uri = "defer"
|
||||
default:
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user