diff options
author | Avi Kivity <avi@redhat.com> | 2009-01-11 10:19:35 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-03-24 05:03:04 -0400 |
commit | 5a41accd3f69c6ef1d58f0c148980bae70515937 (patch) | |
tree | fe5fe92c1e52d6a0d8ea36b4792822d2034a682a /arch/x86/kvm/x86.c | |
parent | f6e2c02b6d28ddabe99377c5640a833407a62632 (diff) |
KVM: MMU: Only enable cr4_pge role in shadow mode
Two dimensional paging is only confused by it.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-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 6fbc34603375..19ccde621cd0 100644 --- 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) | |||
364 | } | 364 | } |
365 | kvm_x86_ops->set_cr4(vcpu, cr4); | 365 | kvm_x86_ops->set_cr4(vcpu, cr4); |
366 | vcpu->arch.cr4 = cr4; | 366 | vcpu->arch.cr4 = cr4; |
367 | vcpu->arch.mmu.base_role.cr4_pge = !!(cr4 & X86_CR4_PGE); | 367 | vcpu->arch.mmu.base_role.cr4_pge = (cr4 & X86_CR4_PGE) && !tdp_enabled; |
368 | kvm_mmu_sync_global(vcpu); | 368 | kvm_mmu_sync_global(vcpu); |
369 | kvm_mmu_reset_context(vcpu); | 369 | kvm_mmu_reset_context(vcpu); |
370 | } | 370 | } |