History

KVM: x86: Add a framework for supporting MSR-based features

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.

Tom Lendacky committed 8 years ago

Commit 801e4591 parent d4858aa6 files · +114 −17Browse files

Showing the changes to include/uapi/linux (1 of 6 files). Show all

Unified · Split

include/uapi/linux/kvm.h+2−0
@@ -761,6 +761,7 @@ struct kvm_ppc_resize_hpt { · 760 unmodified lines
761761 #define KVM_TRACE_PAUSE __KVM_DEPRECATED_MAIN_0x07
762762 #define KVM_TRACE_DISABLE __KVM_DEPRECATED_MAIN_0x08
763763 #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)
764765
765766 /*
766767 * Extension capability list.
@@ -934,6 +935,7 @@ struct kvm_ppc_resize_hpt { · 167 unmodified lines
934935 #define KVM_CAP_S390_AIS_MIGRATION 150
935936 #define KVM_CAP_PPC_GET_CPU_CHAR 151
936937 #define KVM_CAP_S390_BPB 152
938+#define KVM_CAP_GET_MSR_FEATURES 153
937939
938940 #ifdef KVM_CAP_IRQ_ROUTING
939941