This variable when set to 1 will cause QEMU/kvmtool to start at EL2. --- arm/run | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arm/run b/arm/run index 858333fc..2a9c0de0 100755 --- a/arm/run +++ b/arm/run @@ -59,6 +59,10 @@ function arch_run_qemu() M+=",highmem=off" fi + if [ "$EL2" = "1" ]; then + M+=",virtualization=on" + fi + if ! $qemu $M -device '?' | grep -q virtconsole; then echo "$qemu doesn't support virtio-console for chr-testdev. Exiting." exit 2 @@ -116,6 +120,9 @@ function arch_run_kvmtool() fi command="$(timeout_cmd) $kvmtool run" + if [ "$EL2" = "1" ]; then + command+=" --nested" + fi if [ "$HOST" = "aarch64" ] && [ "$ARCH" = "arm" ]; then run_test_status $command --kernel "$@" --aarch32 else -- 2.25.1