]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MTRR: treat memory as writeback if MTRR is disabled in guest CPUID
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Dec 2015 14:20:00 +0000 (15:20 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Dec 2015 14:29:00 +0000 (15:29 +0100)
commitf8a0dc02e4e7db310ad5bc79900a2cc271cb9aaf
tree80b972cf9cd865559d6b6aae01392bc5bc4321b3
parent31c71a4dcf9e8c5b97c8ec06a3389dc56ce3d9e0
KVM: MTRR: treat memory as writeback if MTRR is disabled in guest CPUID

Virtual machines can be run with CPUID such that there are no MTRRs.
In that case, the firmware will never enable MTRRs and it is obviously
undesirable to run the guest entirely with UC memory.  Check out guest
CPUID, and use WB memory if MTRR do not exist.

Cc: qemu-stable@nongnu.org
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=107561
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.h
arch/x86/kvm/mtrr.c