]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MTRR: fix fixed MTRR segment look up
authorAlexis Dambricourt <alexis.dambricourt@gmail.com>
Mon, 14 Dec 2015 14:39:34 +0000 (15:39 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Dec 2015 14:28:37 +0000 (15:28 +0100)
commita1cd5df44945c27d62b76e7e1ee504d26c074958
treeeb056ec459bc3f15b8b4ce1c9c5ef1b5b3abffc0
parent8ae0e93b6278a51355d0275354aeee94d93e67c1
KVM: MTRR: fix fixed MTRR segment look up

This fixes the slow-down of VM running with pci-passthrough, since some MTRR
range changed from MTRR_TYPE_WRBACK to MTRR_TYPE_UNCACHABLE.  Memory in the
0K-640K range was incorrectly treated as uncacheable.

Fixes: b65c06b0e76e7c67a9b1ded82061f8539e2c35dd
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=107561
Cc: qemu-stable@nongnu.org
Signed-off-by: Alexis Dambricourt <alexis.dambricourt@gmail.com>
[Use correct BZ for "Fixes" annotation.  - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mtrr.c