KVM: selftests: arm64: Initialise default guest mode at test startup time
authorMarc Zyngier <maz@kernel.org>
Mon, 27 Dec 2021 12:48:04 +0000 (12:48 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 28 Dec 2021 11:04:19 +0000 (11:04 +0000)
commitcb7c4f364abd09abd1865fa049ef492fb43e6bf3
treea9365479a838f207985fdc56563166938d1b91dd
parentd58071a8a76d779eedab38033ae4c821c30295a5
KVM: selftests: arm64: Initialise default guest mode at test startup time

As we are going to add support for a variable default mode on arm64,
let's make sure it is setup first by using a constructor that gets
called before the actual test runs.

Suggested-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Link: https://lore.kernel.org/r/20211227124809.1335409-2-maz@kernel.org
tools/testing/selftests/kvm/lib/aarch64/processor.c