aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2009-03-23 17:51:26 -0300
committerGreg Kroah-Hartman <gregkh@suse.de>2009-05-02 10:57:07 -0700
commit4cb5b1f5b577184ef9d7b23b8146a25700f6d555 (patch)
tree6155cff6039fc52b66af341abc33569a0297395e /lib/debugobjects.c
parent8e70c4b199e53b33004edbe710ca5425a4b40c94 (diff)
KVM: Fix cpuid iteration on multiple leaves per eac
(cherry picked from 0fdf8e59faa5c60e9d77c8e14abe3a0f8bfcf586) The code to traverse the cpuid data array list for counting type of leaves is currently broken. This patches fixes the 2 things in it. 1. Set the 1st counting entry's flag KVM_CPUID_FLAG_STATE_READ_NEXT. Without it the code will never find a valid entry. 2. Also the stop condition in the for loop while looking for the next unflaged entry is broken. It needs to stop when it find one matching entry; and in the case of count of 1, it will be the same entry found in this iteration. 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>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions