KVM: vmx: obey KVM_QUIRK_CD_NW_CLEARED
authorXiao Guangrong <guangrong.xiao@intel.com>
Wed, 15 Jul 2015 19:25:56 +0000 (03:25 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Jul 2015 06:23:01 +0000 (08:23 +0200)
commitfb279950ba02e3210a16b11ecfa8871f3ee0ca49
tree6dbc46398f73292a737426a37796f0a8bbc2ef85
parent41dbc6bcd9722bba8f09256655d060af30c63d34
KVM: vmx: obey KVM_QUIRK_CD_NW_CLEARED

OVMF depends on WB to boot fast, because it only clears caches after
it has set up MTRRs---which is too late.

Let's do writeback if CR0.CD is set to make it happy, similar to what
SVM is already doing.

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/vmx.c