KVM: fix cpuid E2BIG handling for extended request types
authorMark McLoughlin <markmc@redhat.com>
Tue, 12 May 2009 11:36:44 +0000 (12:36 +0100)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:32:39 +0000 (08:32 +0300)
commitcb007648de83cf226d69ec76e1c01848b4e8e49f
treeddbffb8ad08a1805200ca61ba22b98ec086d0901
parent60af2ecdc53af5b941e4a2eb99862a7ccf3ed7c8
KVM: fix cpuid E2BIG handling for extended request types

If we run out of cpuid entries for extended request types
we should return -E2BIG, just like we do for the standard
request types.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c