summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAckerley Tng <ackerleytng@google.com>2026-02-21 02:54:35 +0300
committerSean Christopherson <seanjc@google.com>2026-03-05 01:56:21 +0300
commit58f5d8eebd5c6b0c9377391d6b7bf9d321e014cc (patch)
tree93a1c87fdd94e1b0f3294eafecd2f953f0245d50 /tools
parent9396cc1e282a280bcba2e932e03994e0aada4cd8 (diff)
downloadlinux-58f5d8eebd5c6b0c9377391d6b7bf9d321e014cc.tar.xz
KVM: selftests: Wrap madvise() to assert success
Extend kvm_syscalls.h to wrap madvise() to assert success. This will be used in the next patch. Signed-off-by: Ackerley Tng <ackerleytng@google.com> Reviewed-by: David Hildenbrand (Arm) <david@kernel.org> Link: https://patch.msgid.link/455483ca29a3a3042efee0cf3bbd0e2548cbeb1c.1771630983.git.ackerleytng@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/kvm/include/kvm_syscalls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/kvm/include/kvm_syscalls.h b/tools/testing/selftests/kvm/include/kvm_syscalls.h
index d4e613162bba..843c9904c46f 100644
--- a/tools/testing/selftests/kvm/include/kvm_syscalls.h
+++ b/tools/testing/selftests/kvm/include/kvm_syscalls.h
@@ -77,5 +77,6 @@ __KVM_SYSCALL_DEFINE(munmap, 2, void *, mem, size_t, size);
__KVM_SYSCALL_DEFINE(close, 1, int, fd);
__KVM_SYSCALL_DEFINE(fallocate, 4, int, fd, int, mode, loff_t, offset, loff_t, len);
__KVM_SYSCALL_DEFINE(ftruncate, 2, unsigned int, fd, off_t, length);
+__KVM_SYSCALL_DEFINE(madvise, 3, void *, addr, size_t, length, int, advice);
#endif /* SELFTEST_KVM_SYSCALLS_H */