]> err.no Git - linux-2.6/commit
KVM: MMU: large page update_pte issue with non-PAE 32-bit guests (resend)
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 11 Jun 2008 23:32:40 +0000 (20:32 -0300)
committerAvi Kivity <avi@qumranet.com>
Tue, 24 Jun 2008 09:18:18 +0000 (12:18 +0300)
commit3094538739415a9225afd2a6c78cb0fe1c1f641b
treeb6f4b62812fd55ffa60d4383af1e7079e8b29a30
parent6597ca09e6c0e5aec7ffd2b8ab48c671d3c28414
KVM: MMU: large page update_pte issue with non-PAE 32-bit guests (resend)

kvm_mmu_pte_write() does not handle 32-bit non-PAE large page backed
guests properly. It will instantiate two 2MB sptes pointing to the same
physical 2MB page when a guest large pte update is trapped.

Instead of duplicating code to handle this, disallow directory level
updates to happen through kvm_mmu_pte_write(), so the two 2MB sptes
emulating one guest 4MB pte can be correctly created by the page fault
handling path.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/mmu.c