target/arm: Provide cpu property for controling FEAT_LPA2
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 1 Mar 2022 21:59:57 +0000 (11:59 -1000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 7 Mar 2022 14:32:21 +0000 (14:32 +0000)
commit69b2265d5fe8e0f401d75e175e0a243a7d505e53
tree699bb64b5ded3729967cb5e032ff2f03292184f1
parent99eb313ddbbcf73c1adcdadceba1423b691c6d05
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>
target/arm/cpu.c
target/arm/cpu.h
target/arm/cpu64.c
tests/avocado/boot_linux.py