Skip to content

Commit 910a6aa

Browse files
Xiao Guangrongbonzini
authored andcommitted
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 <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 70109e7 commit 910a6aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/include/asm/kvm_host.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ enum {
343343
};
344344

345345
struct kvm_mtrr {
346-
struct mtrr_var_range var_ranges[MTRR_MAX_VAR_RANGES];
346+
struct mtrr_var_range var_ranges[KVM_NR_VAR_MTRR];
347347
mtrr_type fixed_ranges[KVM_NR_FIXED_MTRR_REGION];
348348
unsigned char enabled;
349349
mtrr_type def_type;

0 commit comments

Comments
 (0)