kvm: work around supported cpuid ioctl() brokenness
commit0926c7a4e5abd3cfebec3a6e35617730577ce932
authorMark McLoughlin <markmc@redhat.com>
Wed, 20 May 2009 18:36:18 +0000 (20 15:36 -0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 20 May 2009 20:21:28 +0000 (20 15:21 -0500)
treeed21db957f74aa0f0c9fbd8612ef495bdaf6c299
parenta02ba54eed0bcb588a4746a2702f1337cbfe54f8
kvm: work around supported cpuid ioctl() brokenness

KVM_GET_SUPPORTED_CPUID has been known to fail to return -E2BIG
when it runs out of entries. Detect this by always trying again
with a bigger table if the ioctl() fills the table.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
target-i386/kvm.c