Cc: Ingo Molnar <mingo@...>, H. Peter Anvin <hpa@...>, Thomas Gleixner <tglx@...>, LKML <linux-kernel@...>, the arch/x86 maintainers <x86@...>, Jeremy Fitzhardinge <jeremy@...>, <avi@...>, Rusty Russell <rusty@...>, Zachary Amsden <zach@...>, Dan Hecht <dhecht@...>, <Jun.Nakajima@...>
Shouldn't you check the hypervisor signature here?
Likewise, I think this should be HYPERVISOR_VMWARE_TIMING_LEAF.
Or we need some way to
(a) standardize hypervisor cpuid leafes (or parts of it) and
(b) handle sparsely filled cpuid info.
Right now both kvm and xen use the first one or two leafes (after info),
but in incompatible ways, so for these the signature *must* be checked
before using the info found there.
0x40000010 doesn't clash with anything as far I know, so we could
attempt to make that standard accross hypervisors.
cheers,
Gerd
--