KVM: fix cpuid E2BIG handling for extended request types
commitae0661773f59370f84fb3d40897c2fc399d66442
authorMark McLoughlin <markmc@redhat.com>
Fri, 18 Sep 2009 23:08:07 +0000 (18 20:08 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 15:27:57 +0000 (5 08:27 -0700)
tree76ab8801030270c37cfc9e969f13c2513188d482
parentcc335935bf2b6084f411e244ca5323b57f864855
KVM: fix cpuid E2BIG handling for extended request types

(cherry picked from commit cb007648de83cf226d69ec76e1c01848b4e8e49f)

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/x86.c