diff options
author | Xiao Guangrong <guangrong.xiao@linux.intel.com> | 2015-06-15 16:55:25 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-06-19 17:16:27 +0200 |
commit | 910a6aae4e2e45855efc4a268e43eed2d8445575 (patch) | |
tree | cb50d16cce0f70b0c1f5af92e850969ba17f35a4 | |
parent | 70109e7d9d4ac7182786ddf7cd53bc651a157896 (diff) | |
download | op-kernel-dev-910a6aae4e2e45855efc4a268e43eed2d8445575.zip op-kernel-dev-910a6aae4e2e45855efc4a268e43eed2d8445575.tar.gz |
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>
-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 cbf9f07..fe9cbe4 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; |