diff options
author | Gleb Natapov <gleb@redhat.com> | 2012-10-15 09:49:08 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-10-18 14:49:28 +0200 |
commit | 471842ec49726bc589322e8498e6620b4d723c74 (patch) | |
tree | cc2aa5c32a46963dc6bf973369c4583c75c9ccf9 /arch/x86/kvm | |
parent | bd6360cc0a545544b5e69ae4428ac031c4e43588 (diff) | |
download | linux-471842ec49726bc589322e8498e6620b4d723c74.tar.gz linux-471842ec49726bc589322e8498e6620b4d723c74.tar.bz2 linux-471842ec49726bc589322e8498e6620b4d723c74.zip |
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')
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
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) } 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 |