From: Marcelo Tosatti Date: Tue, 25 Nov 2008 14:33:10 +0000 (+0100) Subject: KVM: MMU: avoid creation of unreachable pages in the shadow X-Git-Tag: v2.6.28-rc8~71^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c475352e87224a8f0b8cc6f6cc96b30563dc5b4;p=pandora-kernel.git KVM: MMU: avoid creation of unreachable pages in the shadow It is possible for a shadow page to have a parent link pointing to a freed page. When zapping a high level table, kvm_mmu_page_unlink_children fails to remove the parent_pte link. For that to happen, the child must be unreachable via the shadow tree, which can happen in shadow_walk_entry if the guest pte was modified in between walk() and fetch(). Remove the parent pte reference in such case. Possible cause for oops in bug #2217430. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- Reading git-diff-tree failed