KVM: arm64: Prevent mixed-width VM creation
authorMarc Zyngier <maz@kernel.org>
Mon, 24 May 2021 17:07:52 +0000 (18:07 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 27 May 2021 09:34:33 +0000 (10:34 +0100)
commit66e94d5cafd4decd4f92d16a022ea587d7f4094f
tree2101d56ed6bae6b51d8379d0fed4f72107a8c11e
parente3e880bb1518eb10a4b4bb4344ed614d6856f190
KVM: arm64: Prevent mixed-width VM creation

It looks like we have tolerated creating mixed-width VMs since...
forever. However, that was never the intention, and we'd rather
not have to support that pointless complexity.

Forbid such a setup by making sure all the vcpus have the same
register width.

Reported-by: Steven Price <steven.price@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: stable@vger.kernel.org
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20210524170752.1549797-1-maz@kernel.org
arch/arm64/include/asm/kvm_emulate.h
arch/arm64/kvm/reset.c