KVM side has added the framework (kvm.git:d1d93fa90) to support MSR based features. Here is the QEMU part, including data structure changes/expanding, referring functions changes, and the implementations on KVM_GET_MSR_FEATURE_INDEX_LIST and KVM_GET_MSRS system ioctl.
Changelog: v2: coding style changes to pass ./scripts/checkpatch.pl. ---------------- Robert Hoo (3): x86: Data structure changes to support MSR based features kvm: Add support to KVM_GET_MSR_FEATURE_INDEX_LIST and KVM_GET_MSRS system ioctl Change other funcitons referring to feature_word_info[] include/sysemu/kvm.h | 2 + target/i386/cpu.c | 209 +++++++++++++++++++++++++++++++++++++-------------- target/i386/cpu.h | 5 ++ target/i386/kvm.c | 78 +++++++++++++++++++ 4 files changed, 236 insertions(+), 58 deletions(-) -- 1.8.3.1