]> git.openpandora.org Git - pandora-kernel.git/commitdiff
KVM: MTRR: do not split 64 bits MSR content
authorXiao Guangrong <guangrong.xiao@linux.intel.com>
Mon, 15 Jun 2015 08:55:27 +0000 (16:55 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Jun 2015 15:16:27 +0000 (17:16 +0200)
Variable MTRR MSRs are 64 bits which are directly accessed with full length,
no reason to split them to two 32 bits

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

index 8d43006a6df047a0de230ad75da452293fbae2ea..f735548748450ea8843af48b9cb8f4e6f265ff4c 100644 (file)
@@ -342,8 +342,13 @@ enum {
        KVM_DEBUGREG_RELOAD = 4,
 };
 
+struct kvm_mtrr_range {
+       u64 base;
+       u64 mask;
+};
+
 struct kvm_mtrr {
-       struct mtrr_var_range var_ranges[KVM_NR_VAR_MTRR];
+       struct kvm_mtrr_range var_ranges[KVM_NR_VAR_MTRR];
        mtrr_type fixed_ranges[KVM_NR_FIXED_MTRR_REGION];
        u64 deftype;
 };
Simple merge