summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorXiao Guangrong2015-06-15 10:55:25 +0200
committerPaolo Bonzini2015-06-19 17:16:27 +0200
commit910a6aae4e2e45855efc4a268e43eed2d8445575 (patch)
treecb50d16cce0f70b0c1f5af92e850969ba17f35a4 /arch/x86/include
parentKVM: MTRR: remove mtrr_state.have_fixed (diff)
downloadkernel-qcow2-linux-910a6aae4e2e45855efc4a268e43eed2d8445575.tar.gz
kernel-qcow2-linux-910a6aae4e2e45855efc4a268e43eed2d8445575.tar.xz
kernel-qcow2-linux-910a6aae4e2e45855efc4a268e43eed2d8445575.zip
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 <guangrong.xiao@linux.intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/kvm_host.h2
1 files changed, 1 insertions, 1 deletions
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;