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.txt.const | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/linux/dev_kvm.txt.const') diff --git a/sys/linux/dev_kvm.txt.const b/sys/linux/dev_kvm.txt.const index 7f313efdb..b43af3832 100644 --- a/sys/linux/dev_kvm.txt.const +++ b/sys/linux/dev_kvm.txt.const @@ -84,6 +84,7 @@ KVM_GUESTDBG_EXIT_PENDING = 386:amd64:arm64:mips64le:ppc64le:???, s390x:26843545 KVM_GUESTDBG_INJECT_BP = 524288, arm64:mips64le:ppc64le:s390x:??? KVM_GUESTDBG_INJECT_DB = 262144, arm64:mips64le:ppc64le:s390x:??? KVM_GUESTDBG_SINGLESTEP = 2 +KVM_GUESTDBG_USE_HW = 386:amd64:mips64le:ppc64le:s390x:???, arm64:131072 KVM_GUESTDBG_USE_HW_BP = 131072, arm64:mips64le:???, s390x:65536 KVM_GUESTDBG_USE_SW_BP = 65536, mips64le:s390x:??? KVM_HAS_DEVICE_ATTR = 1075359459, mips64le:ppc64le:2149101283 -- cgit mrf-deployment