KVM: VMX: validate individual bits of guest MSR_IA32_FEATURE_CONTROL
authorHaozhong Zhang <haozhong.zhang@intel.com>
Wed, 22 Jun 2016 06:59:55 +0000 (14:59 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Jun 2016 17:17:29 +0000 (19:17 +0200)
commit37e4c997dadf713d5b9cb88a801eb38d61a2aefc
tree612b468041a6d3fc5234716d1869b38c94f7ada9
parent3b84080b9512bcacad3805f345fb8f092c8d3a7d
KVM: VMX: validate individual bits of guest MSR_IA32_FEATURE_CONTROL

KVM currently does not check the value written to guest
MSR_IA32_FEATURE_CONTROL, though bits corresponding to disabled features
may be set. This patch makes KVM to validate individual bits written to
guest MSR_IA32_FEATURE_CONTROL according to enabled features.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c