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>
Tue, 10 Dec 2019 12:49:28 +0000 (12:49 +0000)
commita5471559e7398418f1bb9c538a7bfc8f39e9ae98
tree4b7ab54bcddda4d8c217d600825be970c853f94a
parentb6161b67b0bd542169e13cdfa0488a0266e3ae7a
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