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: v3: patch 2&3 in v2 are corrupted. Re-format patches. 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 | 210 +++++++++++++++++++++++++++++++++++++-------------- target/i386/cpu.h | 5 ++ target/i386/kvm.c | 79 +++++++++++++++++++ 4 files changed, 238 insertions(+), 58 deletions(-) -- 1.8.3.1