projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd6360c
)
KVM: do not de-cache cr4 bits needlessly
author
Gleb Natapov
<gleb@redhat.com>
Mon, 15 Oct 2012 07:49:08 +0000
(09:49 +0200)
committer
Avi Kivity
<avi@redhat.com>
Thu, 18 Oct 2012 12:49:28 +0000
(14:49 +0200)
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index
841d09b
..
6e5f069
100644
(file)
--- 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