From 93cf76f86da808cd48dcdf83433aae37fb195f17 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Fri, 18 Jul 2025 14:22:40 +0200 Subject: sys/linux/dev_kvm_amd64.txt: fix KVM_GET_LAPIC Use output parameter instead of an input one. Use a KVM constant for array size. See https://docs.kernel.org/virt/kvm/api.html#kvm-get-lapic --- sys/linux/dev_kvm_amd64.txt | 4 ++-- sys/linux/dev_kvm_amd64.txt.const | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/linux') diff --git a/sys/linux/dev_kvm_amd64.txt b/sys/linux/dev_kvm_amd64.txt index ae56a95b6..6cba6f444 100644 --- a/sys/linux/dev_kvm_amd64.txt +++ b/sys/linux/dev_kvm_amd64.txt @@ -447,7 +447,7 @@ ioctl$KVM_SET_TSC_KHZ_cpu(fd fd_kvmcpu, cmd const[KVM_SET_TSC_KHZ], arg intptr) ioctl$KVM_SET_TSC_KHZ_vm(fd fd_kvmvm, cmd const[KVM_SET_TSC_KHZ], arg intptr) ioctl$KVM_GET_TSC_KHZ_cpu(fd fd_kvmcpu, cmd const[KVM_GET_TSC_KHZ]) ioctl$KVM_GET_TSC_KHZ_vm(fd fd_kvmvm, cmd const[KVM_GET_TSC_KHZ]) -ioctl$KVM_GET_LAPIC(fd fd_kvmcpu, cmd const[KVM_GET_LAPIC], arg ptr[in, kvm_lapic_state]) +ioctl$KVM_GET_LAPIC(fd fd_kvmcpu, cmd const[KVM_GET_LAPIC], arg ptr[out, kvm_lapic_state]) ioctl$KVM_SET_LAPIC(fd fd_kvmcpu, cmd const[KVM_SET_LAPIC], arg ptr[in, kvm_lapic_state]) ioctl$KVM_NMI(fd fd_kvmcpu, cmd const[KVM_NMI]) ioctl$KVM_SMI(fd fd_kvmcpu, cmd const[KVM_SMI]) @@ -693,7 +693,7 @@ kvm_pit_config { } kvm_lapic_state { - regs array[int8, 1024] + regs array[int8, KVM_APIC_REG_SIZE] } kvm_msr_list { diff --git a/sys/linux/dev_kvm_amd64.txt.const b/sys/linux/dev_kvm_amd64.txt.const index 7030d846c..edc8eac4e 100644 --- a/sys/linux/dev_kvm_amd64.txt.const +++ b/sys/linux/dev_kvm_amd64.txt.const @@ -1,6 +1,7 @@ # Code generated by syz-sysgen. DO NOT EDIT. arches = 386, amd64 AT_FDCWD = 18446744073709551516 +KVM_APIC_REG_SIZE = 1024 KVM_BUS_LOCK_DETECTION_EXIT = 2 KVM_BUS_LOCK_DETECTION_OFF = 1 KVM_CAP_DISABLE_QUIRKS = 116 -- cgit mrf-deployment