diff options
author | Oliver Upton <oliver.upton@linux.dev> | 2023-10-03 23:04:00 +0000 |
---|---|---|
committer | Oliver Upton <oliver.upton@linux.dev> | 2023-10-04 17:11:39 +0000 |
commit | a9bc4a1c1e0c206838bc2d0c8621ca6df9704a2f (patch) | |
tree | 4f4283106f8cce0cae324773ebbc7ee42e9c263a /kernel/trace/trace_functions_graph.c | |
parent | 5a23e5c7cb0d5b2b38c33417579cd628be7d14c5 (diff) |
KVM: arm64: Reject attempts to set invalid debug arch version
The debug architecture is mandatory in ARMv8, so KVM should not allow
userspace to configure a vCPU with less than that. Of course, this isn't
handled elegantly by the generic ID register plumbing, as the respective
ID register fields have a nonzero starting value.
Add an explicit check for debug versions less than v8 of the
architecture.
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231003230408.3405722-5-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'kernel/trace/trace_functions_graph.c')
0 files changed, 0 insertions, 0 deletions