]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: vgic-its: Check the device id matches TYPER DEVBITS range
authorEric Auger <eric.auger@redhat.com>
Thu, 2 Feb 2017 13:37:33 +0000 (14:37 +0100)
committerChristoffer Dall <cdall@linaro.org>
Mon, 8 May 2017 12:35:42 +0000 (14:35 +0200)
commitef4f89f0dd74a89de9389fb20a12f7f64ba7409e
treeab89be86407d99ffcd9e171d4ae412e91468e8c4
parent28d9b94587e70fedbdd12785cd7080605f749fb3
KVM: arm64: vgic-its: Check the device id matches TYPER DEVBITS range

On MAPD we currently check the device id can be stored in the device table.
Let's first check it can be encoded within the range defined by TYPER
DEVBITS.

Also check the collection ID belongs to the 16 bit range as GITS_TYPER
CIL field equals to 0.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Christoffer Dall <cdall@linaro.org>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/vgic/vgic-its.c