From: Gleb Natapov Date: Mon, 15 Oct 2012 07:49:08 +0000 (+0200) Subject: KVM: do not de-cache cr4 bits needlessly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=471842ec49726bc589322e8498e6620b4d723c74;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git KVM: do not de-cache cr4 bits needlessly Signed-off-by: Gleb Natapov Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 841d09b123db..6e5f069bee30 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -635,7 +635,7 @@ int kvm_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3) } if (is_long_mode(vcpu)) { - if (kvm_read_cr4(vcpu) & X86_CR4_PCIDE) { + if (kvm_read_cr4_bits(vcpu, X86_CR4_PCIDE)) { if (cr3 & CR3_PCID_ENABLED_RESERVED_BITS) return 1; } else