Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: x86: Increase the number of fixed MTRR regs to 10

Recent Intel CPUs have 10 variable range MTRRs. Since operating systems
sometime make assumptions on CPUs while they ignore capability MSRs, it is
better for KVM to be consistent with recent CPUs. Reporting more MTRRs than
actually supported has no functional implications.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

authored by

Nadav Amit and committed by
Paolo Bonzini
682367c4 7171511e

+1 -1
+1 -1
arch/x86/include/asm/kvm_host.h
··· 95 95 #define KVM_REFILL_PAGES 25 96 96 #define KVM_MAX_CPUID_ENTRIES 80 97 97 #define KVM_NR_FIXED_MTRR_REGION 88 98 - #define KVM_NR_VAR_MTRR 8 98 + #define KVM_NR_VAR_MTRR 10 99 99 100 100 #define ASYNC_PF_PER_VCPU 64 101 101