Commit 45e966f
committed
KVM: x86: Do not return host topology information from KVM_GET_SUPPORTED_CPUID
Passing the host topology to the guest is almost certainly wrong
and will confuse the scheduler. In addition, several fields of
these CPUID leaves vary on each processor; it is simply impossible to
return the right values from KVM_GET_SUPPORTED_CPUID in such a way that
they can be passed to KVM_SET_CPUID2.
The values that will most likely prevent confusion are all zeroes.
Userspace will have to override it anyway if it wishes to present a
specific topology to the guest.
Cc: [email protected]
Signed-off-by: Paolo Bonzini <[email protected]>1 parent 74905e3 commit 45e966f
2 files changed
+30
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8310 | 8310 | | |
8311 | 8311 | | |
8312 | 8312 | | |
| 8313 | + | |
| 8314 | + | |
| 8315 | + | |
| 8316 | + | |
| 8317 | + | |
| 8318 | + | |
| 8319 | + | |
| 8320 | + | |
| 8321 | + | |
| 8322 | + | |
| 8323 | + | |
| 8324 | + | |
| 8325 | + | |
| 8326 | + | |
8313 | 8327 | | |
8314 | 8328 | | |
8315 | 8329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
773 | 781 | | |
774 | 782 | | |
775 | 783 | | |
776 | | - | |
| 784 | + | |
777 | 785 | | |
778 | | - | |
| 786 | + | |
779 | 787 | | |
780 | 788 | | |
781 | | - | |
782 | | - | |
783 | 789 | | |
784 | 790 | | |
785 | 791 | | |
| |||
956 | 962 | | |
957 | 963 | | |
958 | 964 | | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | 965 | | |
964 | 966 | | |
965 | 967 | | |
966 | | - | |
967 | | - | |
968 | | - | |
| 968 | + | |
| 969 | + | |
969 | 970 | | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
| 971 | + | |
975 | 972 | | |
976 | 973 | | |
977 | 974 | | |
| |||
1202 | 1199 | | |
1203 | 1200 | | |
1204 | 1201 | | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
1205 | 1205 | | |
1206 | 1206 | | |
1207 | 1207 | | |
| |||
0 commit comments