]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: vgic-its: Interpret MAPD Size field and check related errors
authorEric Auger <eric.auger@redhat.com>
Thu, 22 Dec 2016 17:14:14 +0000 (18:14 +0100)
committerChristoffer Dall <cdall@linaro.org>
Mon, 8 May 2017 12:35:30 +0000 (14:35 +0200)
commitdd5299004358f3ea5615fa7f31d0ccc4d8c48cd2
tree16fce7bc6bf0b404843237a72040f69dd658ed3a
parent03b07bafb4f1e3793855dad07d4e0e194837280d
KVM: arm64: vgic-its: Interpret MAPD Size field and check related errors

Up to now the MAPD's ITT size field has been ignored. It encodes
the number of eventid bit minus 1. It should be used to check
the eventid when a MAPTI command is issued on a device. Let's
store the number of eventid bits in the its_device and do the
check on MAPTI. Also make sure the ITT size field does
not exceed the GITS_TYPER IDBITS field.

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