]> xenbits.xensource.com Git - xen.git/commit
VMX/vPMU: fix DebugCtl MSR handling
authorJan Beulich <jbeulich@suse.com>
Fri, 22 Aug 2014 12:30:27 +0000 (14:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 22 Aug 2014 12:30:27 +0000 (14:30 +0200)
commit2d9b91f1aeaa08a8cc261efae3d9c8dca56edf4d
tree6839bb0a9cb3b78e2e41c55b5fbc5fc76e713511
parentdfa625e15f3d6c374637f2bb789e1f444c2781c3
VMX/vPMU: fix DebugCtl MSR handling

- writes with one of the vPMU-supported flags and some unsupported one
  set got accepted, leading to a VM entry failure
- writes with one of the vPMU-supported flags set but the Debug Store
  feature unavailable produced a #GP (other than other writes to this
  MSR with unsupported bits set)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/svm/vpmu.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/hvm/vmx/vpmu_core2.c
xen/arch/x86/hvm/vpmu.c
xen/include/asm-x86/hvm/vpmu.h