Skip to content

Commit

Permalink
KVM: arm: vgic-irqfd: Workaround changing kvm_set_routing_entry proto…
Browse files Browse the repository at this point in the history
…type

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>
  • Loading branch information
Marc Zyngier committed Jul 24, 2016
1 parent 995a0ee commit 3f312db
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions virt/kvm/arm/vgic/vgic-irqfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 3f312db

Please sign in to comment.