projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6e2c02
)
KVM: MMU: Only enable cr4_pge role in shadow mode
author
Avi Kivity
<avi@redhat.com>
Sun, 11 Jan 2009 15:19:35 +0000
(17:19 +0200)
committer
Avi Kivity
<avi@redhat.com>
Tue, 24 Mar 2009 09:03:04 +0000
(11:03 +0200)
Two dimensional paging is only confused by it.
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 6fbc346033752132dccd2a5227c150078bc60bb4..19ccde621cd0303a9088a87603eb714b31a598d1 100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-364,7
+364,7
@@
void kvm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4)
}
kvm_x86_ops->set_cr4(vcpu, cr4);
vcpu->arch.cr4 = cr4;
- vcpu->arch.mmu.base_role.cr4_pge =
!!(cr4 & X86_CR4_PGE)
;
+ vcpu->arch.mmu.base_role.cr4_pge =
(cr4 & X86_CR4_PGE) && !tdp_enabled
;
kvm_mmu_sync_global(vcpu);
kvm_mmu_reset_context(vcpu);
}