KVM: MMU: handle page removal with shadow mapping
authorMarcelo Tosatti <marcelo@kvack.org>
Mon, 17 Mar 2008 13:08:18 +0000 (10:08 -0300)
committerAvi Kivity <avi@qumranet.com>
Tue, 25 Mar 2008 08:22:17 +0000 (10:22 +0200)
commit15aaa819e20cb183f26392ed8ea16020630ef142
tree28f7aa56ee06f60030384f2de99d10449d6e5ed8
parent4b1a80fa65aa9e2ec5696998856136c886385538
KVM: MMU: handle page removal with shadow mapping

Do not assume that a shadow mapping will always point to the same host
frame number.  Fixes crash with madvise(MADV_DONTNEED).

[avi: move after first printk(), add another printk()]

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