KVM: MTRR: fix memory type handling if MTRR is completely disabled
authorXiao Guangrong <guangrong.xiao@intel.com>
Wed, 15 Jul 2015 19:25:54 +0000 (03:25 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Jul 2015 06:21:33 +0000 (08:21 +0200)
commit10dc331ff5e7e4668c0f0c95b1a873aba9b70826
tree969d2dea497daa3132ec97647b6c55048e4edc84
parentc5dfd654d0ec0a28fe81e7bd4d4fd984a9855e09
KVM: MTRR: fix memory type handling if MTRR is completely disabled

Currently code uses default memory type if MTRR is fully disabled,
fix it by using UC instead.

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>
arch/x86/kvm/mtrr.c