KVM: MTRR: handle MSR_MTRRcap in kvm_mtrr_get_msr
authorXiao Guangrong <guangrong.xiao@linux.intel.com>
Mon, 15 Jun 2015 08:55:23 +0000 (16:55 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Jun 2015 15:16:27 +0000 (17:16 +0200)
commiteb839917a75207b89799e3500211163cb6de0dea
tree6992e709b95ec5cbabc929d59e206020bc8c3234
parentff53604b40b439cbb235f89bda99839ca81d3b9d
KVM: MTRR: handle MSR_MTRRcap in kvm_mtrr_get_msr

MSR_MTRRcap is a MTRR msr so move the handler to the common place, also
add some comments to make the hard code more readable

Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mtrr.c
arch/x86/kvm/x86.c