]> git.openpandora.org Git - pandora-kernel.git/commitdiff
KVM: MTRR: clean up mtrr default type
authorXiao Guangrong <guangrong.xiao@linux.intel.com>
Mon, 15 Jun 2015 08:55:26 +0000 (16:55 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Jun 2015 15:16:27 +0000 (17:16 +0200)
Drop kvm_mtrr->enable, omit the decode/code workload and get rid of
all the hard code

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 fe9cbe49e272b71a285d3eb0064c505198ef2799..8d43006a6df047a0de230ad75da452293fbae2ea 100644 (file)
@@ -345,8 +345,7 @@ enum {
 struct kvm_mtrr {
        struct mtrr_var_range var_ranges[KVM_NR_VAR_MTRR];
        mtrr_type fixed_ranges[KVM_NR_FIXED_MTRR_REGION];
-       unsigned char enabled;
-       mtrr_type def_type;
+       u64 deftype;
 };
 
 struct kvm_vcpu_arch {
Simple merge