KVM: MTRR: Use default type for non-MTRR-covered gfn before WARN_ON
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 4 Aug 2015 16:58:26 +0000 (10:58 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Aug 2015 10:47:21 +0000 (12:47 +0200)
commit9c33ae0c614c7a4e64c2781f473057a273b57544
tree4acec24fbb0c8e257a2dfb7a42743b477284524b
parent71ba994c94a81c37185ef2fb5190844286ba9aca
KVM: MTRR: Use default type for non-MTRR-covered gfn before WARN_ON

The patch was munged on commit to re-order these tests resulting in
excessive warnings when trying to do device assignment.  Return to
original ordering: https://lkml.org/lkml/2015/7/15/769

Fixes: 3e5d2fdceda1 ("KVM: MTRR: simplify kvm_mtrr_get_guest_memory_type")
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mtrr.c