Fix virt-what-cpuid-helper.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 4 Oct 2019 12:57:42 +0000 (15:57 +0300)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 4 Oct 2019 13:16:50 +0000 (16:16 +0300)
commit0a0d9fa7c85c5474870cae37832d28ccd899d4ee
tree378661ffd0392a41d81ac0e270a68de72a168679
parentfd42f87e558b66d3a99551edacaa93efe655d9e5
Fix virt-what-cpuid-helper.

The value returned in %eax is the max_entry (eg. 0x40000000
if there are no further leafs).  However it is not reliable.
In addition if there are multiple leafs we should probably
only print the highest one.

Also use uint32_t instead of unsigned int.

Thanks: Paolo Bonzini.
virt-what-cpuid-helper.c