strace/xlat/kvm_cpuid_flags.in
Pierre Marsais 546181b267 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>
2018-07-07 10:29:02 +00:00

11 lines
257 B
Plaintext

#ifndef BIT
/*
* Workaround a bug in kernel headers fixed by linux commit v4.7-rc1~32^2~42.
*/
# define BIT(nr_) (1UL << (nr_))
#endif
KVM_CPUID_FLAG_SIGNIFCANT_INDEX (1 << 0)
KVM_CPUID_FLAG_STATEFUL_FUNC (1 << 1)
KVM_CPUID_FLAG_STATE_READ_NEXT (1 << 2)