Skip to content
Commit 160933e3 authored by Oliver Upton's avatar Oliver Upton
Browse files

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: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240424173959.3776798-3-oliver.upton@linux.dev
Signed-off-by: default avatarOliver Upton <oliver.upton@linux.dev>
parent 6ddb4f37
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment