tests/migration/aarch64: Speed up the aarch64 migration testThe migration tests spend a lot of time waiting for a sign of liveof the guest on the serial console. The aarch64 migration code onlyou
tests/migration/aarch64: Speed up the aarch64 migration testThe migration tests spend a lot of time waiting for a sign of liveof the guest on the serial console. The aarch64 migration code onlyoutputs "B"s every couple of seconds (at least it takes more than 4seconds between each characeter on my x86 laptop). There are a lotof migration tests, and if each test that checks for a successfulmigration waits for these characters before and after migration, thewait time sums up to multiple minutes! Let's use a shorter delay tospeed things up.While we're at it, also remove a superfluous masking with 0xff - we'rereading and storing bytes, so the upper bits of the register do notmatter anyway.With these changes, the test runs twice as fast on my laptop, decreasingthe total run time from approx. 8 minutes to only 4 minutes!Signed-off-by: Thomas Huth <thuth@redhat.com>Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>Message-Id: <20220819053802.296584-3-thuth@redhat.com>Signed-off-by: Alex Bennée <alex.bennee@linaro.org>Message-Id: <20220822165608.2980552-4-alex.bennee@linaro.org>
show more ...
tests: Add migration test for aarch64This patch adds migration test support for aarch64. The test code, whichimplements the same functionality as x86, is booted as a kernel in qemu.Here are the d
tests: Add migration test for aarch64This patch adds migration test support for aarch64. The test code, whichimplements the same functionality as x86, is booted as a kernel in qemu.Here are the design choices we make for aarch64: * We choose this -kernel approach because aarch64 QEMU doesn't provide a built-in fw like x86 does. So instead of relying on a boot loader, we use -kernel approach for aarch64. * The serial output is sent to PL011 directly. * The physical memory base for mach-virt machine is 0x40000000. We change the start_address and end_address for aarch64.In addition to providing the binary, this patch also includes the sourcecode and the build script in tests/migration/aarch64. So users can changethe source and/or re-compile the binary as they wish.Reviewed-by: Juan Quintela <quintela@redhat.com>Reviewed-by: Andrew Jones <drjones@redhat.com>Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>Signed-off-by: Wei Huang <wei@redhat.com>Message-Id: <1538669326-28135-1-git-send-email-wei@redhat.com>Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>