mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
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>
This commit is contained in:
parent
70109e7d9d
commit
910a6aae4e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue