Commit 910a6aae authored by Xiao Guangrong's avatar Xiao Guangrong Committed by 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: default avatarXiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment