546181b267
* 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>
11 lines
257 B
Plaintext
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)
|