Work around supported cpuid ioctl() brokenness
commit8fa3b3ce6ed2a12062422b75d5b4ab9eab0ae4e9
authorMark McLoughlin <markmc@redhat.com>
Tue, 12 May 2009 11:42:42 +0000 (12 12:42 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 20 May 2009 14:32:16 +0000 (20 17:32 +0300)
treeb376b9d40ede1251863bc4751a8a0b50785aeac8
parent3f1a08eeede2f462a58f1cab0361a29418b1f6ac
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: Avi Kivity <avi@redhat.com>
kvm/libkvm/libkvm-x86.c