]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: MMU: ignore zapped root pagetables
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 20 Feb 2008 19:47:24 +0000 (14:47 -0500)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 08:53:25 +0000 (11:53 +0300)
commit2e53d63acba75795aa226febd140f67c58c6a353
treebe4ad4e5b28c737053af78a950d270a657e9f628
parent847f0ad8cbfa70c1af6948025836dfbd9ed6da1e
KVM: MMU: ignore zapped root pagetables

Mark zapped root pagetables as invalid and ignore such pages during lookup.

This is a problem with the cr3-target feature, where a zapped root table fools
the faulting code into creating a read-only mapping. The result is a lockup
if the instruction can't be emulated.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c
include/asm-x86/kvm_host.h
include/linux/kvm_host.h
virt/kvm/kvm_main.c