]> git.karo-electronics.de Git - linux-beck.git/commit
KVM: arm64: ITS: return 1 on successful MSI injection
authorAndre Przywara <andre.przywara@arm.com>
Mon, 8 Aug 2016 16:29:28 +0000 (17:29 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Tue, 9 Aug 2016 14:43:23 +0000 (16:43 +0200)
commitfd837b08d98c0c9f4f31998f2ed55b9d8694082c
treec589233e641273319c4dd8248ce54e6c1d4fb526
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
KVM: arm64: ITS: return 1 on successful MSI injection

According to the KVM API documentation a successful MSI injection
should return a value > 0 on success.
Return possible errors in vgic_its_trigger_msi() and report a
successful injection back to userland, while also reporting the
case where the MSI could not be delivered due to the guest not
having the LPI mapped, for instance.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
include/linux/irqchip/arm-gic-v3.h
virt/kvm/arm/vgic/vgic-its.c