Searched hist:f7bfb57b3e89ff89c0da9f93dedab89f68d6ca27 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/x86/kvm/ |
H A D | mtrr.c | diff a7f2d7865720ff13d5b0f2a3bb1fd80dc3d7a73f Mon Dec 14 08:39:34 CST 2015 Alexis Dambricourt <alexis.dambricourt@gmail.com> 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: f7bfb57b3e89ff89c0da9f93dedab89f68d6ca27 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> diff f7bfb57b3e89ff89c0da9f93dedab89f68d6ca27 Mon Jun 15 03:55:32 CDT 2015 Xiao Guangrong <guangrong.xiao@linux.intel.com> KVM: MTRR: introduce fixed_mtrr_addr_* functions
Two functions are introduced: - fixed_mtrr_addr_to_seg() translates the address to the fixed MTRR segment
- fixed_mtrr_addr_seg_to_range_index() translates the address to the index of kvm_mtrr.fixed_ranges[]
They will be used in the later patch
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com> [Adjust for range_size->range_shift change. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|