Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

KVM: selftests: Fix typos and stale comments in kvm_util

Fix minor documentation errors in `kvm_util.h` and `kvm_util.c`.

- Correct the argument description for `vcpu_args_set` in `kvm_util.h`,
which incorrectly listed `vm` instead of `vcpu`.
- Fix a typo in the comment for `kvm_selftest_arch_init` ("exeucting" ->
"executing").
- Correct the return value description for `vm_vaddr_unused_gap` in
`kvm_util.c` to match the implementation, which returns an address "at
or above" `vaddr_min`, not "at or below".

No functional change intended.

Reviewed-by: Andrew Jones <andrew.jones@linux.dev>
Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260109082218.3236580-6-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>

authored by

Fuad Tabba and committed by
Marc Zyngier
e0a99a2b de00d073

+3 -3
+2 -2
tools/testing/selftests/kvm/include/kvm_util.h
··· 939 939 * VM VCPU Args Set 940 940 * 941 941 * Input Args: 942 - * vm - Virtual Machine 942 + * vcpu - vCPU 943 943 * num - number of arguments 944 944 * ... - arguments, each of type uint64_t 945 945 * ··· 1264 1264 } 1265 1265 1266 1266 /* 1267 - * Arch hook that is invoked via a constructor, i.e. before exeucting main(), 1267 + * Arch hook that is invoked via a constructor, i.e. before executing main(), 1268 1268 * to allow for arch-specific setup that is common to all tests, e.g. computing 1269 1269 * the default guest "mode". 1270 1270 */
+1 -1
tools/testing/selftests/kvm/lib/kvm_util.c
··· 1351 1351 * Output Args: None 1352 1352 * 1353 1353 * Return: 1354 - * Lowest virtual address at or below vaddr_min, with at least 1354 + * Lowest virtual address at or above vaddr_min, with at least 1355 1355 * sz unused bytes. TEST_ASSERT failure if no area of at least 1356 1356 * size sz is available. 1357 1357 *