aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Upton <oliver.upton@linux.dev>2024-04-15 14:21:25 -0700
committerOliver Upton <oliver.upton@linux.dev>2024-04-15 14:31:16 -0700
commit0f7ddabfb8601a1e13798890dd506611e30b97f2 (patch)
tree11e4b54574a9284ceed23b79791e9f462fa3ddf2
parent0c448ad0eb243078e1c699410f41a9594a9a3eb2 (diff)
downloadlinux-kvm-arm64/gicv4-unmapped-msis.tar.gz
KVM: arm64: vgic-v4: Don't fail irqbypass for unmapped MSIskvm-arm64/gicv4-unmapped-msis
There exists a subtle difference in KVM between emulated and hardware-virtualized LPI injection where in the latter case MSIs that lack an ITS translation fail the whole irqbypass registration. This is no good, and is entirely out of userspace's control in the first place. Stop silently failing irqbypass registration and fall back to software routing, for now. Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
-rw-r--r--arch/arm64/kvm/vgic/vgic-v4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/vgic/vgic-v4.c b/arch/arm64/kvm/vgic/vgic-v4.c
index 74a67ad87f29de..69bfb96d5dafd4 100644
--- a/arch/arm64/kvm/vgic/vgic-v4.c
+++ b/arch/arm64/kvm/vgic/vgic-v4.c
@@ -484,7 +484,7 @@ int kvm_vgic_v4_set_forwarding(struct kvm *kvm, int virq,
out:
mutex_unlock(&its->its_lock);
- return ret;
+ return 0;
}
int kvm_vgic_v4_unset_forwarding(struct kvm *kvm, int virq,