diff options
| author | Alexander Potapenko <glider@google.com> | 2025-07-18 14:19:12 +0200 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2025-07-21 09:36:32 +0000 |
| commit | 60c18d31de3a281bf4efc1df98755218d280342f (patch) | |
| tree | 431c2e192bd8ec7b75ec1e7090fe9caeae5ec3e0 /sys | |
| parent | 851662cc5e837b10910d8ad4466684cae3b8e761 (diff) | |
sys/linux/dev_kvm_amd64.txt: fix KVM_GET_XCRS
See https://docs.kernel.org/virt/kvm/api.html#kvm-get-xcrs
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/linux/dev_kvm_amd64.txt | 7 | ||||
| -rw-r--r-- | sys/linux/dev_kvm_amd64.txt.const | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/linux/dev_kvm_amd64.txt b/sys/linux/dev_kvm_amd64.txt index a25d7f4fd..ae56a95b6 100644 --- a/sys/linux/dev_kvm_amd64.txt +++ b/sys/linux/dev_kvm_amd64.txt @@ -438,7 +438,7 @@ ioctl$KVM_GET_FPU(fd fd_kvmcpu, cmd const[KVM_GET_FPU], arg ptr[out, kvm_fpu]) ioctl$KVM_SET_FPU(fd fd_kvmcpu, cmd const[KVM_SET_FPU], arg ptr[in, kvm_fpu]) ioctl$KVM_GET_DEBUGREGS(fd fd_kvmcpu, cmd const[KVM_GET_DEBUGREGS], arg ptr[out, kvm_debugregs]) ioctl$KVM_SET_DEBUGREGS(fd fd_kvmcpu, cmd const[KVM_SET_DEBUGREGS], arg ptr[in, kvm_debugregs]) -ioctl$KVM_GET_XCRS(fd fd_kvmcpu, cmd const[KVM_GET_XCRS], arg ptr[in, kvm_xcrs]) +ioctl$KVM_GET_XCRS(fd fd_kvmcpu, cmd const[KVM_GET_XCRS], arg ptr[out, kvm_xcrs]) ioctl$KVM_SET_XCRS(fd fd_kvmcpu, cmd const[KVM_SET_XCRS], arg ptr[in, kvm_xcrs]) ioctl$KVM_GET_XSAVE(fd fd_kvmcpu, cmd const[KVM_GET_XSAVE], arg ptr[out, kvm_xsave]) ioctl$KVM_SET_XSAVE(fd fd_kvmcpu, cmd const[KVM_SET_XSAVE], arg ptr[in, kvm_xsave]) @@ -581,9 +581,10 @@ kvm_xcr { } kvm_xcrs { - nr len[xcrs, int32] + nr int32[0:KVM_MAX_XCRS] flags int32 - xcrs array[kvm_xcr] + xcrs array[kvm_xcr, KVM_MAX_XCRS] + pad array[const[0, int64], 16] } kvm_xsave { diff --git a/sys/linux/dev_kvm_amd64.txt.const b/sys/linux/dev_kvm_amd64.txt.const index 4739db1f8..7030d846c 100644 --- a/sys/linux/dev_kvm_amd64.txt.const +++ b/sys/linux/dev_kvm_amd64.txt.const @@ -75,6 +75,7 @@ KVM_IRQCHIP_IOAPIC = 2 KVM_IRQCHIP_PIC_MASTER = 0 KVM_IRQCHIP_PIC_SLAVE = 1 KVM_MAX_IRQ_ROUTES = 4096 +KVM_MAX_XCRS = 16 KVM_MEMORY_ATTRIBUTE_PRIVATE = 8 KVM_MEMORY_ENCRYPT_OP = 386:3221532346, amd64:3221794490 KVM_MEMORY_ENCRYPT_REG_REGION = 2148576955 |
