]> git.proxmox.com Git - mirror_qemu.git/commit - tests/migration-test.c
test: port postcopy test to ppc64
authorlvivier@redhat.com <lvivier@redhat.com>
Thu, 21 Jul 2016 16:47:56 +0000 (18:47 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 29 Jul 2016 02:02:31 +0000 (12:02 +1000)
commitaaf89c8a49a8c1259b6b181d701070c6df83f3d7
tree60a2cf47f503ff65b517dc1c0c4a0113c337a5eb
parent7cdd76132a7daff30cde12ba81684741d50c4f22
test: port postcopy test to ppc64

As userfaultfd syscall is available on powerpc, migration
postcopy can be used.

This patch adds the support needed to test this on powerpc,
instead of using a bootsector to run code to modify memory,
we use a FORTH script in "boot-command" property.

As spapr machine doesn't support "-prom-env" argument
(the nvram is initialized by SLOF and not by QEMU),
"boot-command" is provided to SLOF via a file mapped nvram
(with "-drive file=...,if=pflash")

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
tests/Makefile.include
tests/postcopy-test.c