diff options
author | Ricardo Koller <ricarkol@google.com> | 2022-01-27 06:08:56 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-02-08 18:18:58 +0300 |
commit | 5b7898648f02083012900e48d063e51ccbdad165 (patch) | |
tree | 9584eb702f590825292f2a7e453c937944a25d47 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 11024a7a0ac26dd31ddfa0f6590e158bdf9ab858 (diff) | |
download | linux-5b7898648f02083012900e48d063e51ccbdad165.tar.xz |
kvm: selftests: aarch64: fix the failure check in kvm_set_gsi_routing_irqchip_check
kvm_set_gsi_routing_irqchip_check(expect_failure=true) is used to check
the error code returned by the kernel when trying to setup an invalid
gsi routing table. The ioctl fails if "pin >= KVM_IRQCHIP_NUM_PINS", so
kvm_set_gsi_routing_irqchip_check() should test the error only when
"intid >= KVM_IRQCHIP_NUM_PINS+32". The issue is that the test check is
"intid >= KVM_IRQCHIP_NUM_PINS", so for a case like "intid =
KVM_IRQCHIP_NUM_PINS" the test wrongly assumes that the kernel will
return an error. Fix this by using the right check.
Signed-off-by: Ricardo Koller <ricarkol@google.com>
Reported-by: Reiji Watanabe <reijiw@google.com>
Cc: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220127030858.3269036-4-ricarkol@google.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions