diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2009-04-05 17:54:46 (GMT) |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-04-22 10:52:09 (GMT) |
commit | bf47a760f66add7870fba33ab50f58b550d6bbd1 (patch) | |
tree | 17d16121192cbaafd4ff66d9e44e24df45fda87f /arch/x86/kvm/mmu.c | |
parent | d24d2c1cc4156102f9df9cd0425d58cabf955519 (diff) | |
download | linux-bf47a760f66add7870fba33ab50f58b550d6bbd1.tar.xz |
KVM: MMU: disable global page optimization
Complexity to fix it not worthwhile the gains, as discussed
in http://article.gmane.org/gmane.comp.emulators.kvm.devel/28649.
Cc: stable@kernel.org
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r-- | arch/x86/kvm/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 2a36f7f..b6caf13 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -1248,7 +1248,7 @@ static struct kvm_mmu_page *kvm_mmu_get_page(struct kvm_vcpu *vcpu, pgprintk("%s: adding gfn %lx role %x\n", __func__, gfn, role.word); sp->gfn = gfn; sp->role = role; - sp->global = role.cr4_pge; + sp->global = 0; hlist_add_head(&sp->hash_link, bucket); if (!direct) { if (rmap_write_protect(vcpu->kvm, gfn)) |