]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: ITS: avoid re-mapping LPIs
authorAndre Przywara <andre.przywara@arm.com>
Tue, 16 Aug 2016 16:51:06 +0000 (17:51 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Tue, 16 Aug 2016 17:27:22 +0000 (19:27 +0200)
commitab41d7dce0bffd5a89e0764cb86410824867d205
tree9fcbe7e37c7da2983b2c08fb5470ff5fd25d9673
parentf7566de3ef0f1c21d0d7133df890d0605091eb4c
KVM: arm64: ITS: avoid re-mapping LPIs

When a guest wants to map a device-ID/event-ID combination that is
already mapped, we may end up in a situation where an LPI is never
"put", thus never being freed.
Since the GICv3 spec says that mapping an already mapped LPI is
UNPREDICTABLE, lets just bail out early in this situation to avoid
any potential leaks.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/vgic/vgic-its.c