kvmtool's include/linux/types.h shadows the kernel UAPI , so the __s128/__u128 types it provides are missing. Starting with Linux 7.x headers, arm64 and use __u128 instead of __uint128_t, so building kvmtool against them, where pulls in, fails with: .../sysroot/usr/include/asm/sigcontext.h:81:9: error: unknown type name '__u128'; did you mean '__u32'? 81 | __u128 vregs[32]; | ^~~~~~ So let's add the __s128 and __u128 types the same way the kernel UAPI does. Signed-off-by: Giulio Benetti --- include/linux/types.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/types.h b/include/linux/types.h index 5e20f10..039174c 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -17,6 +17,11 @@ typedef __s16 s16; typedef __u8 u8; typedef __s8 s8; +#ifdef __SIZEOF_INT128__ +typedef __signed__ __int128 __s128 __attribute__((aligned(16))); +typedef unsigned __int128 __u128 __attribute__((aligned(16))); +#endif + #ifdef __CHECKER__ #define __bitwise__ __attribute__((bitwise)) #else -- 2.47.3