]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: Fix cpuid leaf 0xb loop termination
authorNitin A Kamble <nitin.a.kamble@intel.com>
Mon, 23 Mar 2009 20:51:25 +0000 (17:51 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 2 May 2009 17:57:07 +0000 (10:57 -0700)
commit8e70c4b199e53b33004edbe710ca5425a4b40c94
tree194f7aa38bc3c704162527971181c9751aaefbd6
parente93d4df4cf013df5ab84c4967b9bfeecbb0f8c0d
KVM: Fix cpuid leaf 0xb loop termination

(cherry picked from 0853d2c1d849ef69884d2447d90d04007590b72b)

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