s390x/kvm: make flic play well with old kernels
authorCornelia Huck <cornelia.huck@de.ibm.com>
Wed, 28 May 2014 12:15:57 +0000 (14:15 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 10 Jun 2014 07:50:26 +0000 (09:50 +0200)
commit08da527fd07cf01dc29ca60a144fbdd60b0fb7c0
tree342b82fbb14f85580a6d7a835d33738ba12ddbfd
parentf068d320def7fd83bf0fcdca37b305f1c2ac5413
s390x/kvm: make flic play well with old kernels

If we run with an old kernel that does not support KVM_CAP_IRQ_ROUTING,
we don't have to do anything in the ->register_io_adapter and
->io_adapter_map callbacks and therefore should return 0 instead of
-ENOSYS (just as the non-kvm flic does).

This fixes using adapter interrupts when running under an older kernel,
which broke with "s390x: add I/O adapter registration".

Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/intc/s390_flic_kvm.c