commit | 471842ec49726bc589322e8498e6620b4d723c74 | [log] [tgz] |
---|---|---|
author | Gleb Natapov <gleb@redhat.com> | Mon Oct 15 09:49:08 2012 +0200 |
committer | Avi Kivity <avi@redhat.com> | Thu Oct 18 14:49:28 2012 +0200 |
tree | cc2aa5c32a46963dc6bf973369c4583c75c9ccf9 | |
parent | bd6360cc0a545544b5e69ae4428ac031c4e43588 [diff] [blame] |
KVM: do not de-cache cr4 bits needlessly Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 841d09b..6e5f069 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c
@@ -635,7 +635,7 @@ } 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