KVM: use rcu access function for irq routing
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 6 Jul 2017 18:31:11 +0000 (20:31 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 7 Jul 2017 13:24:15 +0000 (15:24 +0200)
commit5535f800b0e1533e5f3a1428f6ef25eb29eccc0f
tree98aa5a717db281a48dc3b794dd5af16f24b844e1
parent0e4524a5d341e719e8ee9ee7db5d58e2c5a4c10e
KVM: use rcu access function for irq routing

irq routing is rcu protected. Use the proper access functions.
Found by sparse

virt/kvm/irqchip.c:233:13: warning: incorrect type in assignment (different address spaces)
virt/kvm/irqchip.c:233:13:    expected struct kvm_irq_routing_table *old
virt/kvm/irqchip.c:233:13:    got struct kvm_irq_routing_table [noderef] <asn:4>*irq_routing

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/irqchip.c