Provide a new KVM capability that allows bits within MSRs to be recognized as features. Two new ioctls are added to the /dev/kvm ioctl routine to retrieve the list of these MSRs and then retrieve their values. A kvm_x86_ops callback is used to determine support for the listed MSR-based features.
Showing the changes to include/uapi/linux (1 of 6 files). Show all
Unified · Split
| @@ -761,6 +761,7 @@ struct kvm_ppc_resize_hpt { · 760 unmodified lines | ||
| 761 | 761 | #define KVM_TRACE_PAUSE __KVM_DEPRECATED_MAIN_0x07 |
| 762 | 762 | #define KVM_TRACE_DISABLE __KVM_DEPRECATED_MAIN_0x08 |
| 763 | 763 | #define KVM_GET_EMULATED_CPUID _IOWR(KVMIO, 0x09, struct kvm_cpuid2) |
| 764 | +#define KVM_GET_MSR_FEATURE_INDEX_LIST _IOWR(KVMIO, 0x0a, struct kvm_msr_list) | |
| 764 | 765 | |
| 765 | 766 | /* |
| 766 | 767 | * Extension capability list. |
| @@ -934,6 +935,7 @@ struct kvm_ppc_resize_hpt { · 167 unmodified lines | ||
| 934 | 935 | #define KVM_CAP_S390_AIS_MIGRATION 150 |
| 935 | 936 | #define KVM_CAP_PPC_GET_CPU_CHAR 151 |
| 936 | 937 | #define KVM_CAP_S390_BPB 152 |
| 938 | +#define KVM_CAP_GET_MSR_FEATURES 153 | |
| 937 | 939 | |
| 938 | 940 | #ifdef KVM_CAP_IRQ_ROUTING |
| 939 | 941 | |