]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
KVM: arm/arm64: Advertise support for KVM_CAP_ARM_USER_IRQ
authorChristoffer Dall <christoffer.dall@linaro.org>
Wed, 1 Feb 2017 11:54:11 +0000 (12:54 +0100)
committerChristoffer Dall <cdall@linaro.org>
Sun, 9 Apr 2017 14:49:40 +0000 (07:49 -0700)
Now that we support both timers and PMU reporting interrupts
to userspace, we can advertise this support.

Reviewed-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/arm.c

index 9eda2932f686c2dc7748913def6d8a26351bed7a..7941699a766d43c4d3372839a7b360815f387511 100644 (file)
@@ -229,6 +229,13 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
                else
                        r = kvm->arch.vgic.msis_require_devid;
                break;
+       case KVM_CAP_ARM_USER_IRQ:
+               /*
+                * 1: EL1_VTIMER, EL1_PTIMER, and PMU.
+                * (bump this number if adding more devices)
+                */
+               r = 1;
+               break;
        default:
                r = kvm_arch_dev_ioctl_check_extension(kvm, ext);
                break;