Home
last modified time | relevance | path

Searched hist:"3 e5d2fdceda172554e681b68c853bf5d08205bbf" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/x86/kvm/
H A Dmtrr.cdiff 3e5d2fdceda172554e681b68c853bf5d08205bbf Wed Jul 15 14:25:55 CDT 2015 Xiao Guangrong <guangrong.xiao@intel.com> KVM: MTRR: simplify kvm_mtrr_get_guest_memory_type

kvm_mtrr_get_guest_memory_type never returns -1 which is implied
in the current code since if @type = -1 (means no MTRR contains the
range), iter.partial_map must be true

Simplify the code to indicate this fact

Signed-off-by: Xiao Guangrong <guangrong.xiao@intel.com>
Tested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>