summaryrefslogtreecommitdiffstats
path: root/virt/kvm/arm/vgic/vgic-irqfd.c
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2016-07-24 10:34:08 +0100
committerMarc Zyngier <marc.zyngier@arm.com>2016-07-24 10:37:38 +0100
commit3f312db6b65baf393bee02f6dfdfaa94d786dd0f (patch)
treedaa510385b0a99d81224dac0085fb89907e5aece /virt/kvm/arm/vgic/vgic-irqfd.c
parent995a0ee9809b6948bb7bfea77f129fe1d5157cc1 (diff)
downloadlinux-3f312db6b65baf393bee02f6dfdfaa94d786dd0f.tar.gz
linux-3f312db6b65baf393bee02f6dfdfaa94d786dd0f.tar.bz2
linux-3f312db6b65baf393bee02f6dfdfaa94d786dd0f.zip
KVM: arm: vgic-irqfd: Workaround changing kvm_set_routing_entry prototype
kvm_set_routing_entry is changing in -next, and causes things to explode. Add a temporary workaround that should be dropped when we hit 4.8-rc1 Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'virt/kvm/arm/vgic/vgic-irqfd.c')
-rw-r--r--virt/kvm/arm/vgic/vgic-irqfd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/virt/kvm/arm/vgic/vgic-irqfd.c b/virt/kvm/arm/vgic/vgic-irqfd.c
index 683a589711b0..b31a51a14efb 100644
--- a/virt/kvm/arm/vgic/vgic-irqfd.c
+++ b/virt/kvm/arm/vgic/vgic-irqfd.c
@@ -41,12 +41,20 @@ static int vgic_irqfd_set_irq(struct kvm_kernel_irq_routing_entry *e,
* kvm_set_routing_entry: populate a kvm routing entry
* from a user routing entry
*
+ * @kvm: the VM this entry is applied to
* @e: kvm kernel routing entry handle
* @ue: user api routing entry handle
* return 0 on success, -EINVAL on errors.
*/
+#ifdef KVM_CAP_X2APIC_API
+int kvm_set_routing_entry(struct kvm *kvm,
+ struct kvm_kernel_irq_routing_entry *e,
+ const struct kvm_irq_routing_entry *ue)
+#else
+/* Remove this version and the ifdefery once merged into 4.8 */
int kvm_set_routing_entry(struct kvm_kernel_irq_routing_entry *e,
const struct kvm_irq_routing_entry *ue)
+#endif
{
int r = -EINVAL;