diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-03-01 11:59:57 -1000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-03-07 14:32:21 +0000 |
commit | 69b2265d5fe8e0f401d75e175e0a243a7d505e53 (patch) | |
tree | 699bb64b5ded3729967cb5e032ff2f03292184f1 /tests/avocado/boot_linux.py | |
parent | 99eb313ddbbcf73c1adcdadceba1423b691c6d05 (diff) | |
download | qemu-69b2265d5fe8e0f401d75e175e0a243a7d505e53.zip qemu-69b2265d5fe8e0f401d75e175e0a243a7d505e53.tar.gz qemu-69b2265d5fe8e0f401d75e175e0a243a7d505e53.tar.bz2 |
target/arm: Provide cpu property for controling FEAT_LPA2
There is a Linux kernel bug present until v5.12 that prevents
booting with FEAT_LPA2 enabled. As a workaround for TCG, allow
the feature to be disabled from -cpu max.
Since this kernel bug is present in the Fedora 31 image that
we test in avocado, disable lpa2 on the command-line.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'tests/avocado/boot_linux.py')
-rw-r--r-- | tests/avocado/boot_linux.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/avocado/boot_linux.py b/tests/avocado/boot_linux.py index ab19146..ee584d2 100644 --- a/tests/avocado/boot_linux.py +++ b/tests/avocado/boot_linux.py @@ -79,6 +79,7 @@ class BootLinuxAarch64(LinuxTest): """ self.require_accelerator("tcg") self.vm.add_args("-accel", "tcg") + self.vm.add_args("-cpu", "max,lpa2=off") self.vm.add_args("-machine", "virt,gic-version=2") self.add_common_args() self.launch_and_wait(set_up_ssh_connection=False) @@ -91,6 +92,7 @@ class BootLinuxAarch64(LinuxTest): """ self.require_accelerator("tcg") self.vm.add_args("-accel", "tcg") + self.vm.add_args("-cpu", "max,lpa2=off") self.vm.add_args("-machine", "virt,gic-version=3") self.add_common_args() self.launch_and_wait(set_up_ssh_connection=False) |