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_arm64.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/linux/dev_kvm_arm64.txt') diff --git a/sys/linux/dev_kvm_arm64.txt b/sys/linux/dev_kvm_arm64.txt index 53e2d71e8..f4c724606 100644 --- a/sys/linux/dev_kvm_arm64.txt +++ b/sys/linux/dev_kvm_arm64.txt @@ -58,6 +58,15 @@ kvm_arm_device_addr { addr flags[kvm_guest_addrs, int64] } +kvm_guest_debug_arch_arm64 { + dbg_bcr array[int64, 16] + dbg_bvr array[int64, 16] + dbg_wcr array[int64, 16] + dbg_wvr array[int64, 16] +} + +ioctl$KVM_SET_GUEST_DEBUG_arm64(fd fd_kvmcpu, cmd const[KVM_SET_GUEST_DEBUG], arg ptr[in, kvm_guest_debug[kvm_guest_debug_arch_arm64]]) + ioctl$KVM_ARM_VCPU_INIT(fd fd_kvmcpu, cmd const[KVM_ARM_VCPU_INIT], arg ptr[in, kvm_vcpu_init]) ioctl$KVM_ARM_PREFERRED_TARGET(fd fd_kvmcpu, cmd const[KVM_ARM_PREFERRED_TARGET], arg ptr[out, kvm_vcpu_init]) # KVM_ARM_VCPU_FINALIZE accepts a single CPU feature encoded as a bit number: https://docs.kernel.org/virt/kvm/api.html#kvm-arm-vcpu-finalize. -- cgit mrf-deployment