Commit 0fea7aa
committed
KVM: x86: Explicitly track feature flags that require vendor enabling
Add another CPUID feature macro, VENDOR_F(), and use it to track features
that KVM supports, but that need additional vendor support and so are
conditionally enabled in vendor code.
Currently, VENDOR_F() is mostly just documentation, but tracking all
KVM-supported features will allow for asserting, at build time, take),
that all features that are set, cleared, *or* checked by KVM are known to
kvm_set_cpu_caps().
To fudge around a macro collision on 32-bit kernels, #undef DS to be able
to get at X86_FEATURE_DS.
No functional change intended.
Link: https://lore.kernel.org/r/20241128013424.4096668-56-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 9b2776c commit 0fea7aa
1 file changed
Lines changed: 43 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
782 | 792 | | |
783 | 793 | | |
784 | 794 | | |
785 | 795 | | |
786 | 796 | | |
787 | 797 | | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
788 | 801 | | |
789 | 802 | | |
790 | 803 | | |
| |||
795 | 808 | | |
796 | 809 | | |
797 | 810 | | |
798 | | - | |
| 811 | + | |
799 | 812 | | |
800 | 813 | | |
801 | 814 | | |
802 | 815 | | |
803 | 816 | | |
804 | | - | |
| 817 | + | |
| 818 | + | |
805 | 819 | | |
806 | 820 | | |
807 | 821 | | |
| |||
848 | 862 | | |
849 | 863 | | |
850 | 864 | | |
851 | | - | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
852 | 868 | | |
853 | 869 | | |
854 | 870 | | |
| |||
871 | 887 | | |
872 | 888 | | |
873 | 889 | | |
874 | | - | |
| 890 | + | |
875 | 891 | | |
876 | 892 | | |
877 | 893 | | |
| |||
880 | 896 | | |
881 | 897 | | |
882 | 898 | | |
883 | | - | |
| 899 | + | |
884 | 900 | | |
885 | 901 | | |
886 | 902 | | |
| |||
905 | 921 | | |
906 | 922 | | |
907 | 923 | | |
908 | | - | |
| 924 | + | |
909 | 925 | | |
910 | 926 | | |
911 | 927 | | |
| |||
1001 | 1017 | | |
1002 | 1018 | | |
1003 | 1019 | | |
1004 | | - | |
| 1020 | + | |
1005 | 1021 | | |
1006 | 1022 | | |
1007 | 1023 | | |
| |||
1015 | 1031 | | |
1016 | 1032 | | |
1017 | 1033 | | |
1018 | | - | |
| 1034 | + | |
1019 | 1035 | | |
1020 | 1036 | | |
1021 | 1037 | | |
| |||
1101 | 1117 | | |
1102 | 1118 | | |
1103 | 1119 | | |
1104 | | - | |
1105 | | - | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
1109 | 1135 | | |
1110 | 1136 | | |
1111 | | - | |
1112 | | - | |
| 1137 | + | |
| 1138 | + | |
1113 | 1139 | | |
1114 | | - | |
| 1140 | + | |
1115 | 1141 | | |
1116 | 1142 | | |
1117 | 1143 | | |
| |||
1183 | 1209 | | |
1184 | 1210 | | |
1185 | 1211 | | |
| 1212 | + | |
1186 | 1213 | | |
1187 | 1214 | | |
1188 | 1215 | | |
| |||
0 commit comments