KVM: arm/arm64: vgic: Cap SPIs to the VM-defined maximum
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 4 Dec 2018 17:11:19 +0000 (17:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jan 2019 16:38:49 +0000 (17:38 +0100)
commit6318b1b7c90cf60e2a64918734201edcc0e22b3e
treefc73f373719ab320558e018fdd02b0260b912738
parentf0fcc4d17cf46911c9609e1fc5af518864f96220
KVM: arm/arm64: vgic: Cap SPIs to the VM-defined maximum

commit bea2ef803ade3359026d5d357348842bca9edcf1 upstream.

SPIs should be checked against the VMs specific configuration, and
not the architectural maximum.

Cc: stable@vger.kernel.org
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
virt/kvm/arm/vgic/vgic.c