]> git.baikalelectronics.ru Git - kernel.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)
commitb544ec4f163a48946d7ae2ae0f0ae1129ec536f7
treebe4ad4e5b28c737053af78a950d270a657e9f628
parentf8f0898d212d38c65e15358f717237eb231989d8
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