aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2012-10-15 03:49:08 -0400
committerAvi Kivity <avi@redhat.com>2012-10-18 08:49:28 -0400
commit471842ec49726bc589322e8498e6620b4d723c74 (patch)
treecc2aa5c32a46963dc6bf973369c4583c75c9ccf9 /arch/x86/kvm/x86.c
parentbd6360cc0a545544b5e69ae4428ac031c4e43588 (diff)
KVM: do not de-cache cr4 bits needlessly
Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 1 insertions, 1 deletions
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)
635 } 635 }
636 636
637 if (is_long_mode(vcpu)) { 637 if (is_long_mode(vcpu)) {
638 if (kvm_read_cr4(vcpu) & X86_CR4_PCIDE) { 638 if (kvm_read_cr4_bits(vcpu, X86_CR4_PCIDE)) {
639 if (cr3 & CR3_PCID_ENABLED_RESERVED_BITS) 639 if (cr3 & CR3_PCID_ENABLED_RESERVED_BITS)
640 return 1; 640 return 1;
641 } else 641 } else