diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2008-11-06 00:56:21 +0100 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 15:52:24 +0100 |
commit | 0fdf8e59faa5c60e9d77c8e14abe3a0f8bfcf586 (patch) | |
tree | 4dba778281a62ab4c4927092a5017acef4fb0d7b /fs/pipe.c | |
parent | KVM: Fix cpuid leaf 0xb loop termination (diff) | |
download | linux-0fdf8e59faa5c60e9d77c8e14abe3a0f8bfcf586.tar.xz linux-0fdf8e59faa5c60e9d77c8e14abe3a0f8bfcf586.zip |
KVM: Fix cpuid iteration on multiple leaves per eac
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>
Diffstat (limited to 'fs/pipe.c')
0 files changed, 0 insertions, 0 deletions