Add KVM_CAP_MSR_PLATFORM_INFO so that userspace can disable guest access to reads of MSR_PLATFORM_INFO. Disabling access to reads of this MSR gives userspace the control to "expose" this platform-dependent information to guests in a clear way. As it exists today, guests that read this MSR would get unpopulated information if userspace hadn't already set it (and prior to this patch series, only the CPUID faulting information could have been populated). This existing interface could be confusing if guests don't handle the potential for incorrect/incomplete information gracefully (e.g. zero reported for base frequency).
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -952,6 +952,7 @@ struct kvm_ppc_resize_hpt { · 951 unmodified lines | ||
| 952 | 952 | #define KVM_CAP_S390_HPAGE_1M 156 |
| 953 | 953 | #define KVM_CAP_NESTED_STATE 157 |
| 954 | 954 | #define KVM_CAP_ARM_INJECT_SERROR_ESR 158 |
| 955 | +#define KVM_CAP_MSR_PLATFORM_INFO 159 | |
| 955 | 956 | |
| 956 | 957 | #ifdef KVM_CAP_IRQ_ROUTING |
| 957 | 958 | |