diff options
| author | Alexander Potapenko <glider@google.com> | 2025-07-18 14:22:40 +0200 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2025-07-21 09:36:32 +0000 |
| commit | 93cf76f86da808cd48dcdf83433aae37fb195f17 (patch) | |
| tree | 6979bed8171493e271eb089a2db315494f792802 | |
| parent | 60c18d31de3a281bf4efc1df98755218d280342f (diff) | |
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
| -rw-r--r-- | sys/linux/dev_kvm_amd64.txt | 4 | ||||
| -rw-r--r-- | sys/linux/dev_kvm_amd64.txt.const | 1 |
2 files changed, 3 insertions, 2 deletions
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 |
