KVM: MMU: nuke shadowed pgtable pages and ptes on memslot destruction
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 10 Jul 2008 23:49:31 +0000 (20:49 -0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 20 Jul 2008 09:42:40 +0000 (12:42 +0300)
commit34d4cb8fca1f2a31be152b74797e6cd160ec9de6
tree1e8f2c3c4feb54763fd0d8b27ef83ba546215069
parentd6e88aec07aa8f6c7e4024f5734ec659fd7c5a40
KVM: MMU: nuke shadowed pgtable pages and ptes on memslot destruction

Flush the shadow mmu before removing regions to avoid stale entries.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/ia64/kvm/kvm-ia64.c
arch/powerpc/kvm/powerpc.c
arch/s390/kvm/kvm-s390.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c