]> granicus.if.org Git - strace/commit
kvm: decode the argument of KVM_SET_CPUID2 and KVM_GET_*_CPUID ioctl commands
authorPierre Marsais <pierre.marsais@lse.epita.fr>
Thu, 28 Jun 2018 02:37:43 +0000 (03:37 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 7 Jul 2018 10:29:02 +0000 (10:29 +0000)
commit546181b267a84c01996d43d475db747a14666b59
tree6945dcf0901c91bee1a73536cdb8ec5256be3dcf
parentda5dbc6b1f923fd649bdca29754dcee66aa3ade1
kvm: decode the argument of KVM_SET_CPUID2 and KVM_GET_*_CPUID ioctl commands

* configure.ac (AC_CHECK_TYPES): Add struct kvm_cpuid2.
* xlat/kvm_cpuid_flags.in: New file.
* kvm.c [HAVE_STRUCT_KVM_CPUID2]: Include "xlat/kvm_cpuid_flags.h".
[HAVE_STRUCT_KVM_CPUID2] (print_kvm_cpuid_entry, kvm_ioctl_decode_cpuid2):
New functions.
(kvm_ioctl) [HAVE_STRUCT_KVM_CPUID2]: Use kvm_ioctl_decode_cpuid2.
* NEWS: Mention this improvement.

Signed-off-by: Pierre Marsais <pierre.marsais@lse.epita.fr>
Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
NEWS
configure.ac
kvm.c
xlat/kvm_cpuid_flags.in [new file with mode: 0644]