diff options
author | Radim Krčmář <rkrcmar@redhat.com> | 2016-07-12 22:09:26 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-07-14 09:03:56 +0200 |
commit | c63cf538eb4bf6a5ffd3750366d8d56f023645a5 (patch) | |
tree | 3f5633e4e461850ac5ff219985bf8ed3641f0e84 /virt/kvm | |
parent | 4d8e772bf8e3fcf55fe17e84ce68c20e03041efc (diff) | |
download | linux-stable-c63cf538eb4bf6a5ffd3750366d8d56f023645a5.tar.gz linux-stable-c63cf538eb4bf6a5ffd3750366d8d56f023645a5.tar.bz2 linux-stable-c63cf538eb4bf6a5ffd3750366d8d56f023645a5.zip |
KVM: pass struct kvm to kvm_set_routing_entry
Arch-specific code will use it.
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/irqchip.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/virt/kvm/irqchip.c b/virt/kvm/irqchip.c index 8db197bb6c7a..df99e9c3b64d 100644 --- a/virt/kvm/irqchip.c +++ b/virt/kvm/irqchip.c @@ -135,7 +135,8 @@ void kvm_free_irq_routing(struct kvm *kvm) free_irq_routing_table(rt); } -static int setup_routing_entry(struct kvm_irq_routing_table *rt, +static int setup_routing_entry(struct kvm *kvm, + struct kvm_irq_routing_table *rt, struct kvm_kernel_irq_routing_entry *e, const struct kvm_irq_routing_entry *ue) { @@ -154,7 +155,7 @@ static int setup_routing_entry(struct kvm_irq_routing_table *rt, e->gsi = ue->gsi; e->type = ue->type; - r = kvm_set_routing_entry(e, ue); + r = kvm_set_routing_entry(kvm, e, ue); if (r) goto out; if (e->type == KVM_IRQ_ROUTING_IRQCHIP) @@ -211,7 +212,7 @@ int kvm_set_irq_routing(struct kvm *kvm, kfree(e); goto out; } - r = setup_routing_entry(new, e, ue); + r = setup_routing_entry(kvm, new, e, ue); if (r) { kfree(e); goto out; |