From: Xiao Guangrong Date: Mon, 15 Jun 2015 08:55:28 +0000 (+0800) Subject: KVM: MTRR: improve kvm_mtrr_get_guest_memory_type X-Git-Tag: omap-for-v4.3/legacy-v2-signed~167^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f3f78b61462fdc62469334c259b1e5555ebd1ed;p=pandora-kernel.git KVM: MTRR: improve kvm_mtrr_get_guest_memory_type - kvm_mtrr_get_guest_memory_type() only checks one page in MTRRs so that it's unnecessary to check to see if the range is partially covered in MTRR - optimize the check of overlap memory type and add some comments to explain the precedence Signed-off-by: Xiao Guangrong Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed