]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: check for ITS device on MSI injection
authorAndre Przywara <andre.przywara@arm.com>
Tue, 9 Aug 2016 09:54:29 +0000 (10:54 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Mon, 15 Aug 2016 21:00:22 +0000 (23:00 +0200)
commitf7566de3ef0f1c21d0d7133df890d0605091eb4c
treee33e93567ccb3da6236f281a892915fcf622b496
parent7aea9f52bdfbf8e43582cee6f7df8eb9688a836a
KVM: arm64: check for ITS device on MSI injection

When userspace provides the doorbell address for an MSI to be
injected into the guest, we find a KVM device which feels responsible.
Lets check that this device is really an emulated ITS before we make
real use of the container_of-ed pointer.

  [ Moved NULL-pointer check to caller of static function
    - Christoffer ]

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