projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e016333
)
KVM: selftests: arm64: Rename helper in set_id_regs to imply VM scope
author
Oliver Upton
<oliver.upton@linux.dev>
Thu, 2 May 2024 23:35:26 +0000
(23:35 +0000)
committer
Marc Zyngier
<maz@kernel.org>
Thu, 9 May 2024 17:41:30 +0000
(18:41 +0100)
Prepare for a later change that'll cram in per-vCPU feature ID test
cases by renaming the current test case.
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Link:
https://lore.kernel.org/r/20240502233529.1958459-5-oliver.upton@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
tools/testing/selftests/kvm/aarch64/set_id_regs.c
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/kvm/aarch64/set_id_regs.c
b/tools/testing/selftests/kvm/aarch64/set_id_regs.c
index 16e2338686c172c1e1ece67e405df3ab666f7ded..3d0ce49f9b789cbbb522fc6618696f6b4aab2b84 100644
(file)
--- a/
tools/testing/selftests/kvm/aarch64/set_id_regs.c
+++ b/
tools/testing/selftests/kvm/aarch64/set_id_regs.c
@@
-374,7
+374,7
@@
static void test_reg_set_fail(struct kvm_vcpu *vcpu, uint64_t reg,
TEST_ASSERT_EQ(val, old_val);
}
-static void test_
user_set_reg
(struct kvm_vcpu *vcpu, bool aarch64_only)
+static void test_
vm_ftr_id_regs
(struct kvm_vcpu *vcpu, bool aarch64_only)
{
uint64_t masks[KVM_ARM_FEATURE_ID_RANGE_SIZE];
struct reg_mask_range range = {
@@
-476,7
+476,7
@@
int main(void)
ksft_set_plan(ftr_cnt);
- test_
user_set_reg
(vcpu, aarch64_only);
+ test_
vm_ftr_id_regs
(vcpu, aarch64_only);
test_guest_reg_read(vcpu);
kvm_vm_free(vm);