diff options
author | Oliver Upton <oliver.upton@linux.dev> | 2024-04-24 17:39:59 +0000 |
---|---|---|
committer | Oliver Upton <oliver.upton@linux.dev> | 2024-04-24 19:09:36 +0000 |
commit | 160933e330f4c5a13931d725a4d952a4b9aefa71 (patch) | |
tree | 0cf6432f9b76a46fea7f4e8e8a7de54c29668ccd /drivers/fpga/tests/fpga-mgr-test.c | |
parent | 6ddb4f372fc63210034b903d96ebbeb3c7195adb (diff) |
KVM: selftests: Add test for uaccesses to non-existent vgic-v2 CPUIF
Assert that accesses to a non-existent vgic-v2 CPU interface
consistently fail across the various KVM device attr ioctls. This also
serves as a regression test for a bug wherein KVM hits a NULL
dereference when the CPUID specified in the ioctl is invalid.
Note that there is no need to print the observed errno, as TEST_ASSERT()
will take care of it.
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240424173959.3776798-3-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions