Commit ff402f5
committed
KVM: x86: Extract code for generating per-entry emulated CPUID information
Extract the meat of __do_cpuid_func_emulated() into a separate helper,
cpuid_func_emulated(), so that cpuid_func_emulated() can be used with a
single CPUID entry. This will allow marking emulated features as fully
supported in the guest cpu_caps without needing to hardcode the set of
emulated features in multiple locations.
No functional change intended.
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20241128013424.4096668-43-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent a7a308f commit ff402f5
1 file changed
Lines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1213 | 1213 | | |
1214 | 1214 | | |
1215 | 1215 | | |
1216 | | - | |
| 1216 | + | |
1217 | 1217 | | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
| 1218 | + | |
1222 | 1219 | | |
1223 | | - | |
1224 | 1220 | | |
1225 | 1221 | | |
1226 | 1222 | | |
1227 | 1223 | | |
1228 | 1224 | | |
1229 | 1225 | | |
1230 | 1226 | | |
1231 | | - | |
1232 | | - | |
| 1227 | + | |
1233 | 1228 | | |
1234 | 1229 | | |
1235 | | - | |
1236 | | - | |
| 1230 | + | |
1237 | 1231 | | |
1238 | 1232 | | |
1239 | 1233 | | |
1240 | 1234 | | |
1241 | 1235 | | |
1242 | | - | |
1243 | | - | |
| 1236 | + | |
1244 | 1237 | | |
1245 | | - | |
| 1238 | + | |
1246 | 1239 | | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
1247 | 1246 | | |
| 1247 | + | |
1248 | 1248 | | |
1249 | 1249 | | |
1250 | 1250 | | |
| |||
0 commit comments