diff options
author | Ricardo Koller <ricarkol@google.com> | 2021-11-08 18:39:04 -0800 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-12-28 19:24:54 +0000 |
commit | 6a5a47188caca7be4bbe28cdb31d5df09868ed5c (patch) | |
tree | 92962c7a7abc2585c23f55cbd5198a895e10c3e6 /tools/testing/selftests/kvm/include | |
parent | 88209c104e9b3e95502c0e924fb1cd8bd5a01d82 (diff) | |
download | linux-6a5a47188caca7be4bbe28cdb31d5df09868ed5c.tar.bz2 |
KVM: selftests: aarch64: Add tests for IRQFD in vgic_irq
Add injection tests for the KVM_IRQFD ioctl into vgic_irq.
Signed-off-by: Ricardo Koller <ricarkol@google.com>
Acked-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211109023906.1091208-16-ricarkol@google.com
Diffstat (limited to 'tools/testing/selftests/kvm/include')
-rw-r--r-- | tools/testing/selftests/kvm/include/aarch64/vgic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/kvm/include/aarch64/vgic.h b/tools/testing/selftests/kvm/include/aarch64/vgic.h index ce6f0383c1a1..4442081221a0 100644 --- a/tools/testing/selftests/kvm/include/aarch64/vgic.h +++ b/tools/testing/selftests/kvm/include/aarch64/vgic.h @@ -29,4 +29,6 @@ int _kvm_arm_irq_line(struct kvm_vm *vm, uint32_t intid, int level); void kvm_irq_write_ispendr(int gic_fd, uint32_t intid, uint32_t vcpu); void kvm_irq_write_isactiver(int gic_fd, uint32_t intid, uint32_t vcpu); +#define KVM_IRQCHIP_NUM_PINS (1020 - 32) + #endif // SELFTEST_KVM_VGIC_H |