提交 910a6aae 编写于 作者: X Xiao Guangrong 提交者: Paolo Bonzini

KVM: MTRR: exactly define the size of variable MTRRs

Only KVM_NR_VAR_MTRR variable MTRRs are available in KVM guest
Signed-off-by: NXiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 70109e7d
...@@ -343,7 +343,7 @@ enum { ...@@ -343,7 +343,7 @@ enum {
}; };
struct kvm_mtrr { 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]; mtrr_type fixed_ranges[KVM_NR_FIXED_MTRR_REGION];
unsigned char enabled; unsigned char enabled;
mtrr_type def_type; mtrr_type def_type;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册