diff options
author | Xiao Guangrong <guangrong.xiao@linux.intel.com> | 2015-06-15 10:55:25 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-06-19 17:16:27 +0200 |
commit | 910a6aae4e2e45855efc4a268e43eed2d8445575 (patch) | |
tree | cb50d16cce0f70b0c1f5af92e850969ba17f35a4 /arch/x86 | |
parent | KVM: MTRR: remove mtrr_state.have_fixed (diff) | |
download | linux-910a6aae4e2e45855efc4a268e43eed2d8445575.tar.xz 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')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 2 |
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; |