Commit ac9d1b7
committed
KVM: x86: Explicitly track feature flags that are enabled at runtime
Add one last (hopefully) CPUID feature macro, RUNTIME_F(), and use it
to track features that KVM supports, but that are only set at runtime
(in response to other state), and aren't advertised to userspace via
KVM_GET_SUPPORTED_CPUID.
Currently, RUNTIME_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().
No functional change intended.
Link: https://lore.kernel.org/r/20241128013424.4096668-57-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 0fea7aa commit ac9d1b7
1 file changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
792 | 802 | | |
793 | 803 | | |
794 | 804 | | |
| |||
811 | 821 | | |
812 | 822 | | |
813 | 823 | | |
814 | | - | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
815 | 827 | | |
816 | | - | |
| 828 | + | |
817 | 829 | | |
818 | 830 | | |
819 | 831 | | |
| |||
834 | 846 | | |
835 | 847 | | |
836 | 848 | | |
837 | | - | |
| 849 | + | |
838 | 850 | | |
839 | 851 | | |
840 | 852 | | |
| |||
908 | 920 | | |
909 | 921 | | |
910 | 922 | | |
911 | | - | |
| 923 | + | |
912 | 924 | | |
913 | 925 | | |
914 | 926 | | |
| |||
1210 | 1222 | | |
1211 | 1223 | | |
1212 | 1224 | | |
| 1225 | + | |
1213 | 1226 | | |
1214 | 1227 | | |
1215 | 1228 | | |
| |||
0 commit comments