From ecab01f19835ae5984daf74b219e32cf85b053c8 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Wed, 17 Sep 2025 14:46:01 +0200 Subject: sys/linux: rework ioctl$KVM_SET_GUEST_DEBUG This ioctl accepts an arch-specific struct as an argument, so better split it into several arch-specific ioctls. To avoid compilation errors on exotic arches like MIPS, this patch also adds sys/linux/dev_kvm_extra.txt that takes care of them. While at it, also define KVM_GUESTDBG_USE_HW. --- sys/linux/dev_kvm_extra.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sys/linux/dev_kvm_extra.txt (limited to 'sys/linux/dev_kvm_extra.txt') diff --git a/sys/linux/dev_kvm_extra.txt b/sys/linux/dev_kvm_extra.txt new file mode 100644 index 000000000..395ce577d --- /dev/null +++ b/sys/linux/dev_kvm_extra.txt @@ -0,0 +1,12 @@ +# Copyright 2025 syzkaller project authors. All rights reserved. +# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +# This file is used for non-x86, non-ARM definitions. + +meta arches["mips64le", "ppc64le", "s390x"] + +ioctl$KVM_SET_GUEST_DEBUG_generic(fd fd_kvmcpu, cmd const[KVM_SET_GUEST_DEBUG], arg ptr[in, kvm_guest_debug[kvm_guest_debug_arch_generic]]) + +kvm_guest_debug_arch_generic { + reg array[int64, 8] +} -- cgit mrf-deployment