Skip to content
Commit 1cd2b08f authored by Jing Zhang's avatar Jing Zhang Committed by Oliver Upton
Browse files

KVM: arm64: selftests: Handle feature fields with nonzero minimum value correctly



There are some feature fields with nonzero minimum valid value. Make
sure get_safe_value() won't return invalid field values for them.
Also fix a bug that wrongly uses the feature bits type as the feature
bits sign causing all fields as signed in the get_safe_value() and
get_invalid_value().

Fixes: 54a9ea73 ("KVM: arm64: selftests: Test for setting ID register from usersapce")
Reported-by: default avatarZenghui Yu <yuzenghui@huawei.com>
Reported-by: default avatarItaru Kitayama <itaru.kitayama@linux.dev>
Tested-by: default avatarItaru Kitayama <itaru.kitayama@fujitsu.com>
Signed-off-by: default avatarJing Zhang <jingzhangos@google.com>
Link: https://lore.kernel.org/r/20240115220210.3966064-2-jingzhangos@google.com


Signed-off-by: default avatarOliver Upton <oliver.upton@linux.dev>
parent 6613476e
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