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:
Peng Tao
2019-06-14 00:24:26 -07:00
parent 27363b1aca
commit f695ddf8f3
4 changed files with 39 additions and 0 deletions

View File

@@ -725,6 +725,16 @@ func TestAppendIncomingExec(t *testing.T) {
testAppend(source, incomingStringExec, t)
}
var incomingStringDefer = "-S -incoming defer"
func TestAppendIncomingDefer(t *testing.T) {
source := Incoming{
MigrationType: MigrationDefer,
}
testAppend(source, incomingStringDefer, t)
}
func TestBadName(t *testing.T) {
c := &Config{}
c.appendName()