KVM: MMU: handle large host sptes on invlpg/resync
authorMarcelo Tosatti <mtosatti@redhat.com>
Mon, 22 Dec 2008 20:49:30 +0000 (18:49 -0200)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:55:49 +0000 (16:55 +0200)
commit87917239204d67a316cb89751750f86c9ed3640b
treef766f4ad19f08d16b87faa1de3c9ead2e6b3ea1e
parent3f353858c98dbe0240dac558a89870f4600f81bb
KVM: MMU: handle large host sptes on invlpg/resync

The invlpg and sync walkers lack knowledge of large host sptes,
descending to non-existant pagetable level.

Stop at directory level in such case.

Fixes SMP Windows XP with hugepages.

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