kvm: work around supported cpuid ioctl() brokenness
commit76ae317f7c16aec6b469604b1764094870a75470
authorMark McLoughlin <markmc@redhat.com>
Tue, 19 May 2009 17:55:21 +0000 (19 18:55 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 20 May 2009 14:12:57 +0000 (20 09:12 -0500)
tree41a937d49a1fce0c4face186de07fecb24766fee
parente561a2809fc63b77b05075b10b713749edf93e25
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>
target-i386/kvm.c