From: Xiao Guangrong Date: Mon, 15 Jun 2015 08:55:25 +0000 (+0800) Subject: KVM: MTRR: exactly define the size of variable MTRRs X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=910a6aae4e2e45855efc4a268e43eed2d8445575;p=linux-beck.git KVM: MTRR: exactly define the size of variable MTRRs Only KVM_NR_VAR_MTRR variable MTRRs are available in KVM guest Signed-off-by: Xiao Guangrong Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index cbf9f076f57c..fe9cbe49e272 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -343,7 +343,7 @@ enum { }; struct kvm_mtrr { - struct mtrr_var_range var_ranges[MTRR_MAX_VAR_RANGES]; + 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;