KVM: Fix cpuid leaf 0xb loop termination
authorNitin A Kamble <nitin.a.kamble@intel.com>
Wed, 5 Nov 2008 23:37:36 +0000 (15:37 -0800)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:52:24 +0000 (16:52 +0200)
commit0853d2c1d849ef69884d2447d90d04007590b72b
tree6501a31cffdc2fcb992d66173ad799439b73d118
parentfcfdbd266a41d3e41d17666de410a24995fde03a
KVM: Fix cpuid leaf 0xb loop termination

For cpuid leaf 0xb the bits 8-15 in ECX register define the end of counting
leaf.      The previous code was using bits 0-7 for this purpose, which is
a bug.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c